开发者

jqgrid hide row inside grid

开发者 https://www.devze.com 2023-02-12 21:57 出处:网络
How can I h开发者_JAVA百科ide a row inside my grid? ( not delete it).It is not directly supported. You can use just $(\"#\"+rowid).hide() to hide row with id=\"rowid\", but some small things in the gr

How can I h开发者_JAVA百科ide a row inside my grid? ( not delete it).


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.


Try this:

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

Found here: Trirand: Hide a row to certain conditions

0

精彩评论

暂无评论...
验证码 换一张
取 消