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

Intercept "Expand" event for nested views and process the expansion by hand

3 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sal
Top achievements
Rank 1
Sal asked on 01 Aug 2011, 09:00 PM
I am having a bunch of issues trying to use data sources with radGrid nested views, therefore, I was wondering if there is an event I can intercept when clicking on the expand arrow so that I can, myself, retreive the data and display it for that particular item.

Also, when I do this, where should I store the information I get on other expanded items? Use a generic list and put it in the view state? If so, how would I render the whole grid when the postback is received? How do I walk through the hierarchy and update those items which where previously expanded?

Thanks

Sal

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 04 Aug 2011, 03:14 PM
Hello Sal,

I would advise you to consider using the DetailTableDataBind event of RadGrid which is used for manual binding in hierarchy. You can see the following demo and help article and let us know if you have any remaining questions:
Programmatic Binding
Hierarchical data-binding using DetailTableDataBind event

Kind regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Sal
Top achievements
Rank 1
answered on 04 Aug 2011, 04:04 PM
I tried that but the event does not fire at all for me. I have created a support ticket since this problem has taken way to long (ticket # 450768) .

Thank you.

Sal
0
Tsvetina
Telerik team
answered on 09 Aug 2011, 02:25 PM
Hello Sal,

From what I understand, the issue you had with binding the hierarchy was solved in another thread. Therefore, I am closing that one and posting the link to the other for anyone who is interested:
http://www.telerik.com/community/forums/aspnet-ajax/grid/master-detail-hierarchy-binding-via-objectdatasource.aspx 

Greetings,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Sal
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Sal
Top achievements
Rank 1
Share this question
or