Hello,
We have a Radgrid set up as followed
This radgrid has a detailtable that is set up as followed
When a user expands a row in the mastertable, the OnNeedDataSource event of the radgrid is also executed.
After that the rebind of the detailtable is triggered.
Why is the rebind of the mastertable taking place?
In my opinion only the detailtable should be bound at time of expanding and not the mastertable. Or is RadGrid triggering this because of some of the properties/events i set?
By the way, we're using version 2009.3.1208.35
Thanks in advance!
Kind regards,
Roel
We have a Radgrid set up as followed
| <telerik:RadGrid ID="RadGrid" runat="server" AutoGenerateColumns="False" |
| GridLines="None" AllowPaging="true" AllowCustomPaging="true" PageSize="100" AllowMultiRowSelection="true" |
| onitemcommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" |
| OnNeedDataSource="RadGrid_NeedDataSource" OnPreRender="RadGrid_PreRender" > |
| <ExportSettings> |
| <Pdf PageWidth="8.5in" PageHeight="11in" PageTopMargin="" PageBottomMargin="" PageLeftMargin="" PageRightMargin="" PageHeaderMargin="" PageFooterMargin=""></Pdf> |
| </ExportSettings> |
| <ClientSettings EnablePostBackOnRowClick="true" > |
| <Selecting AllowRowSelect="True" /> |
| <ClientEvents OnRowClick="RowClick" OnRowContextMenu="RowContextMenu" OnRowCreated="RowCreated" /> |
| </ClientSettings> <
MasterTableView Name="Customer" currentresetpageindexaction="SetPageIndexToFirst" DataKeyNames="CustomerNO" >
|
| <telerik:GridTableView runat="server" Name="Orders" AutoGenerateColumns="false" AllowSorting="false" |
| Width="100%" PageSize="20" AllowPaging="False" DataSourceID="UitvoeringenObjectDataSource" currentresetpageindexaction="SetPageIndexToFirst" |
| DataKeyNames="eKeyUITVRNG" > |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="CustomerNO" MasterKeyField="CustomerNO" /> |
| </ParentTableRelation> |
When a user expands a row in the mastertable, the OnNeedDataSource event of the radgrid is also executed.
After that the rebind of the detailtable is triggered.
Why is the rebind of the mastertable taking place?
In my opinion only the detailtable should be bound at time of expanding and not the mastertable. Or is RadGrid triggering this because of some of the properties/events i set?
By the way, we're using version 2009.3.1208.35
Thanks in advance!
Kind regards,
Roel