3 Answers, 1 is accepted
0
Hello Scott,
Thank you for writing.
The ScrollToRow method is working with hierarchy as well. However you need to pass the row instance directly:
Please let me know if there is something else I can help you with.
Regards,
Dimitar
Telerik
Thank you for writing.
The ScrollToRow method is working with hierarchy as well. However you need to pass the row instance directly:
radGridView1.TableElement.ScrollToRow(radGridView1.MasterTemplate.Templates[0].Rows[0]);
Please let me know if there is something else I can help you with.
Dimitar
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Scott
Top achievements
Rank 1
answered on 28 May 2015, 04:54 PM
Thank you for the quick reply. I tried this solution and although I didn't receive any errors I was not able to get it to work for me. I'm still only able to get it to auto scroll to the row of the parent grid. I've copied and pasted the excerpt of my code below along with the definition of the variables used.
Telerik Grid: dgv_edi_apps
file_row_index = the row number of the parent grid
ea_child_rec_id = the row number of the hierarchical grid
dgv_edi_apps.TableElement.ScrollToRow(file_row_index);
dgv_edi_apps.Rows[file_row_index].IsExpanded = true;
dgv_edi_apps.TableElement.ScrollToRow(dgv_edi_apps.MasterTemplate.Templates[0].Rows[ea_child_rec_id]);
dgv_edi_apps.MasterTemplate.Templates[0].Rows[ea_child_rec_id].IsSelected = true;
0
Hi Scott,
Thank you for writing back.
I have created a small test project to show you how this works on my side. To test this start the project and scroll to the bottom. Then press the button and you will notice that the grid is scrolled up to the specified child row. Could you please check the project and let me know how it differs from your real setup?
I am looking forward to your reply.
Regards,
Dimitar
Telerik
Thank you for writing back.
I have created a small test project to show you how this works on my side. To test this start the project and scroll to the bottom. Then press the button and you will notice that the grid is scrolled up to the specified child row. Could you please check the project and let me know how it differs from your real setup?
I am looking forward to your reply.
Dimitar
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items