I am having an issue with page download size (with a RadGrid) when using a GridDropDownColumn that points to a datasource with more then a few records in it. I'm using all LINQ data sources.
Upon investigation (thank you firebug's net panel) it appears as if when there's a GridDropDownColumn on a grid, that grid will pull down a lot more data on every callback, and the sql query itself also seems to run much slower.
I really like using GridDropDownColumn functionality for relational editing and such and this revelation has me at a bit of a loss. If the tables the GridDropDownColumns are pointing to have to be small because their entirty will always be riding the connection every time the grid is loaded then I will be kinda sad.
My troublesome line of code (for instance) is:
<telerik:GridDropDownColumn DataField="SectionId" SortExpression="SectionId" UniqueName="SectionId" DataSourceID="SectionDataSource" ListTextField="Title" ListValueField="Id" HeaderText="Section" HeaderButtonType="TextButton" />
which points to the datasource:
<asp:LinqDataSource ID="SectionDataSource" ContextTypeName="AppDataContext" TableName="Sections" OrderBy="SortOrder" runat="server" />
When the Sections table only has a few records in it the whole grid loads quick. If I put a lot of dummy records in the Sections table the grid starts bringing down very large downloads initially and for every callback and the grid works much slower.
Any insight is greatly appreciated,
S
Upon investigation (thank you firebug's net panel) it appears as if when there's a GridDropDownColumn on a grid, that grid will pull down a lot more data on every callback, and the sql query itself also seems to run much slower.
I really like using GridDropDownColumn functionality for relational editing and such and this revelation has me at a bit of a loss. If the tables the GridDropDownColumns are pointing to have to be small because their entirty will always be riding the connection every time the grid is loaded then I will be kinda sad.
My troublesome line of code (for instance) is:
<telerik:GridDropDownColumn DataField="SectionId" SortExpression="SectionId" UniqueName="SectionId" DataSourceID="SectionDataSource" ListTextField="Title" ListValueField="Id" HeaderText="Section" HeaderButtonType="TextButton" />
which points to the datasource:
<asp:LinqDataSource ID="SectionDataSource" ContextTypeName="AppDataContext" TableName="Sections" OrderBy="SortOrder" runat="server" />
When the Sections table only has a few records in it the whole grid loads quick. If I put a lot of dummy records in the Sections table the grid starts bringing down very large downloads initially and for every callback and the grid works much slower.
Any insight is greatly appreciated,
S