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

How to make Expanded row expanded after rebind.

3 Answers 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 25 Jul 2011, 02:08 PM
Hi,
I have a problem that is, when I need to update any row in the grid I need to expand that row, but after saving it I need to rebind the grid to load it with latest data, because of this my expanded row collapses, thats what I don't want.
I need the expanded row expanded after the rebind (only one row could be expanded at a time).

Please help me out as soon as possible.

Thanks
Nitin

3 Answers, 1 is accepted

Sort by
0
Nitin
Top achievements
Rank 1
answered on 02 Aug 2011, 06:39 AM
Hi Telerik Team,
Please reply to this as soon as possible, I was unable to find the solution for it.
And it is impacting my work too.
0
Ivan Ivanov
Telerik team
answered on 02 Aug 2011, 07:37 AM
Hello Nitin,

I have prepared an example project for you. Please, refer to it and let us know whether this solution meets your requirements.

Best wishes,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Nitin
Top achievements
Rank 1
answered on 02 Aug 2011, 08:50 AM
Hi Ivan,

Thanks for replying.
But the solution provided by you, only works when the same source is rebinded, In my case the Grid is binded with the data pager and on every save I have to fetch a new copy of data to bind it with the grid, which causes the expanded row to collapse.

If I donot bind the data pager with latest data and only use the Rebind() method of grid, it works fine! but the changed data does not reflect on the rows.

So, is there any method which is called on Rebind() method of grid(like NeedDataSource in Asp.Net) , where I can bind the latest data to the data pager, which in turn displayed on the grid.

Please help me out with this.

Thanks
Nitin.
Tags
GridView
Asked by
Nitin
Top achievements
Rank 1
Answers by
Nitin
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or