How can I set the selected row (first row) on load page? I want the first row be selected in order to show the data in subgrid.
Thanks in advance
Following config will open the first row of subgrid on load event. You can customize as per your need.
$e["js_on_load_complete"] = "grid_onload";
var ids = $("#list1").jqGrid('getDataIDs');
Hi. Sorry my english is very poor. I have a next code:
$g = new jqgrid();
$e["js_on_select_row"] = "do_onselect";
This dont work. I write the script do_onselect in <body>, but the page not show.
If iam comment the line $g->set_events($e), the contennt of page is show.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!