jqwidgets jqxGrid go to the page of a specific row - jqxgrid

My jqxgrid has paging, and assume I call
$('#jqxGrid').jqxGrid('selectrow', 20);
I want the grid can go to the page with the selected row, but I don't know which page contains the selected row (bound index 20), so how to do it?
need manual calculate which page contains the selected row first?

Related

Vaadin23 refresh/re-render Grid column row on demand

I use Grid component with 1 column and have a lot of information in such column in each row. Also, I use Grid Details and show specific form there. After the user action in the form, I need to refresh/re-render the Grid row in order to reflect the most recent changes. Please advise how to let the Grid know in order to refresh/re-render the specific row.

Focused Row by value DevExpress ASP.NET MVC Grid View

I need to have a focus on the Grid View but I would like to get it by value, for example if I have a Names column and I want to get the row for the name 'Walter' I would like to get the focus for that row.
In this case, this is done by key of the row, but I need it by value.
var sender = (MVCxGridView)s;
// Set the zero-based index of the focused row.
sender.FocusedRowIndex = 6;
As i know you cannot focus with value in a gridview. When I need to do this scenario I do it this way,follow the steps bellow using asp.net:
1. For i=0 to gridview.RowCount-1
2.If gridview.getrowcellvalue(i,gridview.columns("Name")
3. gridview.FocusedRowHandle=i
End If
Next

Expand row in Vaadin

Requirement is to provide through Vaadin Table , like row expand. On Click of the more detail which available in Every Column should add the component and show below the row.
I have same like requirement as shown in grid3.js through Sencha, but need a table.

Display summation of columns in the footer of jqxgrid

I need to display a footer row at the very bottom of the Jqxgrid, in which sum of the columns in the grid should get dynamically calculated as and when the values of the columns are getting in the grid.
I am using a Keyboard Navigation Jqxgrid which is being present in the following link 'http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/rowdetails.htm'. I checked out the API references for the same to try out this, but dint get any fruitful results.
Here's a sample with Grid Aggregates: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/aggregates.htm?classic

how to delete a row in a gridview using delete button outside the grid?

i have a grid in which there are various records. On my form i have a Update and Delete button outside the grid. there are different textbox. when i selected a row in a grid its value appear in these textbox from where i can update these value. thats work fine for me. Now i want to delete the selected row?
i dont want to delete a record using delete button in the grid. i want when i select a row and press a delete button then the selected row should delete from grid as well from database.
I guess if you have already done the update part then you can easily delete the selected row. Just call a delete function, instead of the update one, and then call the DataBind() function of the GridView.

Resources