This is a migrated thread and some comments may be shown as answers.

Hierarchical mode in RadgridView

2 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hossein
Top achievements
Rank 1
Hossein asked on 26 Jan 2014, 10:23 AM
Hi ,

I have a RadGridView that shows some data in Hierarchical mode.

I have a problem in this scenario:

First. I expand more data in GridView(so, it shows child of node and child of child and ......).
Second. I use RadGridView,Rows.Add() function to add 1 row. The row successfully added, but the added row go bottom of gridview and the vertical Scroll lost trust value.

So, I should "up down" and "Up down" the vertical scroll to  get correct value.

any suggestion please?!

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Jan 2014, 04:05 PM
Hello Hossein,

Thank you for contacting Telerik Support.

If I understand your requirement correctly, you are trying to prevent the newly added row automatic selection, which results in scrollbar value changes. In order to keep the current scrollbar value when adding a new row, it is necessary to set MasterTemplate.SelectLastAddedRow property to false:
radGridView1.MasterTemplate.SelectLastAddedRow = false;

If it is not the exact requirement, please specify in details the expected behavior. Thus, we would be able to assist you further.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Hossein
Top achievements
Rank 1
answered on 01 Feb 2014, 06:00 AM
Thanks for your response Desislava.
It is ok. 
Tags
GridView
Asked by
Hossein
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Hossein
Top achievements
Rank 1
Share this question
or