May 24, 2012, 7:39 AM
GridPanel: jump to the page that has newly inserted record.
Hi everyone,
My concept.
input New form --> Save (to database) --> highlight new record (in GridPanel).
If new record must be in current page (page 2), row of new record will be highlight.
but
If new record must be in another page (current page is page 1, new record is in page 2 ),
no highlight, does not jump to page 2.
I use below command for highlight row
My concept.
input New form --> Save (to database) --> highlight new record (in GridPanel).
If new record must be in current page (page 2), row of new record will be highlight.
but
If new record must be in another page (current page is page 1, new record is in page 2 ),
no highlight, does not jump to page 2.
I use below command for highlight row
RowSelectionModel sm = this.GridPanel1.SelectionModel.Primary as RowSelectionModel;
sm.SelectedRows.Clear();
sm.SelectedRows.Add(new SelectedRow(newId2.ToString()));
sm.UpdateSelection();
Please advice, Thank you