Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqgrid hide row inside grid

Tags:

jqgrid

How can I hide a row inside my grid? ( not delete it).

like image 576
user590586 Avatar asked Feb 22 '11 16:02

user590586


2 Answers

It is not directly supported. You can use just $("#"+rowid).hide() to hide row with id="rowid", but some small things in the grid can be not so nice as before. For example it you use rownumbers:true the user will see that row numbers are not sequential. Moreover if you not use height:'auto' the table height will be not perfect. All the problem if needed you can fix manually.

like image 66
Oleg Avatar answered Nov 16 '22 00:11

Oleg


Try this:

$("#row_with_row_id","#mygrid").css({display:"none"});

Found here: Trirand: Hide a row to certain conditions

like image 1
HaMe Avatar answered Nov 15 '22 23:11

HaMe