Hello, I would like that my just inserted row in the grid was automatically selected after refreshing the grid. How to make this?
Hi,
It's not supported now. I'll check if we can highlight the newly inserted row so as to show the change in listing.
If you wish to show highlight effect, you can include jquery ui script,
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
And have highlight code in afterComplete:
$opt["add_options"]["afterComplete"] = "function (response, postdata) { r = JSON.parse(response.responseText); jQuery('#'+r.id,'#list1').effect('highlight', {color:'yellow'}, 2000); }";
$grid->set_options($opt);
A condition that new record should come in grid list, You can sort grid to decending id, to show newly added record on top of grid.