BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
@(Html.EJ().Grid<SelectRowGrid.OrdersView>("FlatGrid") -------- -------- .ClientSideEvents(eve=>eve.ActionComplete("onActionComplete")) )
<script type="text/javascript"> function onActionComplete(args) { if (args.requestType == "searching") this.selectRows(0); // Select first row on search data } |
<script type="text/javascript"> function onActionComplete(args) { if (args.requestType == "searching") { this.selectPage(2); //want to do something like this this.selectRows(4); } } </script>
<script type="text/javascript"> function onActionComplete(args) { if (args.requestType == "searching") { if (this.model.pageSettings.pageCount > 1 && this.model.currentViewData.length >= 4) { this.gotoPage(2) // Go to page 2 this.selectRows(3); // Select fourth row } } } |