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

ItemData bound is not firing while expanding the NestedViewTemplate

0 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Muhamed Shafi
Top achievements
Rank 1
Muhamed Shafi asked on 04 Jun 2011, 02:01 PM
Hi there,
    I have a grid in which there is a nestedViewTemplate that contains a radTab and each of this tab contains another Grid. While binding data to the main grid, all these subgrids are binding one by one for each row in the main grid which consumes more time to execute. Also if I expand one item in the main grid, the data is not binding in the subgrid and the itemDatabound is not firing. But once I change the page index, or sort, then the data is again binding. What I actually want is to stop the bulk binding of the sub grid and it should only bind once I expand the main row for each record.  Below is my code for your reference

 

<telerik:RadGrid runat="server" ID="rdGdMain" ShowFooter="False"

 

 

AllowSorting="True" GridLines="None">

 

 

<MasterTableView AutoGenerateColumns="False" AllowPaging="True" HierarchyLoadMode="serverondemand"

 

 

  Name="MainGrid">

 

 

<NestedViewTemplate>

 

 

<asp:Panel runat="server" ID="InnerContainer">

 

 

<telerik:RadTabStrip runat="server" ID="tabStrip1" MultiPageID="multiPage1"

 

 

SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="t1" PageViewID="pageView1">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Final t2" PageViewID="pageView2">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="t3" PageViewID="pageView3">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage runat="server" ID="multiPage1" Width="100%">

 

 

<telerik:RadPageView runat="server" ID="pageView1"

 

 

Selected="true">

 

 

<asp:Label ID="lbl1" Text='<%# Eval("id") %>'

 

 

Visible="false" runat="server" />

 

 

<telerik:RadGrid runat="server" ID="rdGd2" AllowSorting="true"

 

DataSourceID="myDS"

 

 

 

 

 OnItemCommand

 

="rdGd2_ItemCommand"

 

 

OnItemCreated="rdGd2_ItemCreated" OnItemDataBound="rdGd2_ItemDataBound">

 

 

<MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"

 

 

Name="MainGrid" PageSize="10" HierarchyLoadMode="serverondemand" >

 

 

<Columns>

 

.........

 

</Columns>

 




Any help would be highly appreciated
Thanks
By Shafi

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Muhamed Shafi
Top achievements
Rank 1
Share this question
or