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

[Solved] NestedViewTemplate and Data Binding

2 Answers 212 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 19 Jun 2008, 04:52 PM
I'm using a NestedViewTemplate within the RadGrid in order to display a customized detail view of a row when the expand button is clicked.   The NestedViewTemplate contains another RadGrid and several other controls. 

Everything is working fine, but I noticed that every row's NestedViewTemplate (and its child controls) seems to get data bound every time the page is loaded or the parent grid's columns are sorted, etc.  That seems to be unnecessarily slowing down the performance of the main RadGrid.

Is there a way to delay the data bind of controls within in the NestedViewTemplate (or the template itself) until the template is actually expanded and visible?

Thanks in advance for your help.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 20 Jun 2008, 06:20 AM
Hello Eric,

Currently NestedViewTemplate can work only in "ServerBind" mode - we will try to improve this as soon as possible.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eric
Top achievements
Rank 1
answered on 20 Jun 2008, 06:20 PM
Thanks, Vlad, for your quick response!  The "ServerOnDemand" mode would be nice to have for the NestedViewTemplate in the future.

FYI.. as a workaround, I'm using the suggestion from the article below:

http://www.telerik.com/community/code-library/submission/b311D-daegc.aspx

It seems that the EditItemTemplate does not bind until it is displayed.

Thanks again. 

-Eric
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Eric
Top achievements
Rank 1
Share this question
or