PDA

View Full Version : GridPanel: jump to the page that has newly inserted record.



Aod47
May 24, 2012, 8:39 AM
Hi everyone,

My concept.

input New form --> Save (to database) --> highlight new record (in GridPanel).

4280

If new record must be in current page (page 2), row of new record will be highlight.

but

4281

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