Nov 04, 2020, 9:14 AM
[CLOSED] Focus selected row in Gridpanel
Hi
I have a gridpanel that I set one selected row in on Page_Load.
This row some times needs to be scrolled to, to be visible, this I can´t get to work.
I have tried with FocusRow() which works if I set the rowIndex manually, but I don´t know the rowIndex in the code.
I need to use FocusRow() with the recordId as I do with the SelectedRows
Mikael
I have a gridpanel that I set one selected row in on Page_Load.
This row some times needs to be scrolled to, to be visible, this I can´t get to work.
I have tried with FocusRow() which works if I set the rowIndex manually, but I don´t know the rowIndex in the code.
I need to use FocusRow() with the recordId as I do with the SelectedRows
rowSelReskont.SelectedRows.Add(new SelectedRow(Reskont_recnum.ToString())); //rowSelReskont selection model of gpReskont
rowSelReskont.UpdateSelection();
gpReskont.GetView().FocusRow(Reskont_recnum.ToString()); //Does not work with recordId
Best regardsMikael
Last edited by fabricio.murta; Nov 05, 2020 at 12:19 PM.