I have a RadGrid with maximum of 2000 elements and page size is 200. I can't change the page size.
The grid has 30 columns.
On IE6, it takes 5 seconds to render this grid. On IE7/FF3 it is better, but still takes 1-2 s to render.
It is a client rendering problem, because this time of 5 seconds is between the data is shown in the grid and the time when you may action on the grid.
Also, the grid has a horizontal scroll and while rendering, it display all the columns and no scrolling bar, which is ugly.
What i may do to improve the rendering time.
1. It must be 200 rows on a page.
2. the grid definition:
AllowFilteringByColumn="True"
AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" EnableAJAX="True"
GridLines="None" Skin="Blue" AutoGenerateColumns="False" OnNeedDataSource="lgSelectGrid_NeedDataSource"
EnableAJAXLoadingTemplate="True" EnableOutsideScripts="False" PageSize="200"
Height="400px" EnableViewState="true" Width="100%" meta:resourcekey="lgSearchedGridResource1"
OnSelectedIndexChanged="lgSearchedGrid_SelectedIndexChanged" OnPageIndexChanged="lgSearchedGrid_PageIndexChanged"
OnSortCommand="lgSearchedGrid_SortCommand">
<ClientSettings EnableClientKeyValues="True">
<Selecting AllowRowSelect="True"></Selecting>
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
<Resizing AllowColumnResize="True"></Resizing>
</ClientSettings>
<ItemStyle Wrap="True"></ItemStyle>
<FilterItemStyle Wrap="True"></FilterItemStyle>
<MasterTableView OnPreRender="lgSearchedGrid_PreRender" DataSourcePersistenceMode="NoPersistence"
DataKeyNames=Id1,Id2 TableLayout="Fixed" Width="100%">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
Any suggestion will be great.
Thanks.
The grid has 30 columns.
On IE6, it takes 5 seconds to render this grid. On IE7/FF3 it is better, but still takes 1-2 s to render.
It is a client rendering problem, because this time of 5 seconds is between the data is shown in the grid and the time when you may action on the grid.
Also, the grid has a horizontal scroll and while rendering, it display all the columns and no scrolling bar, which is ugly.
What i may do to improve the rendering time.
1. It must be 200 rows on a page.
2. the grid definition:
AllowFilteringByColumn="True"
AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" EnableAJAX="True"
GridLines="None" Skin="Blue" AutoGenerateColumns="False" OnNeedDataSource="lgSelectGrid_NeedDataSource"
EnableAJAXLoadingTemplate="True" EnableOutsideScripts="False" PageSize="200"
Height="400px" EnableViewState="true" Width="100%" meta:resourcekey="lgSearchedGridResource1"
OnSelectedIndexChanged="lgSearchedGrid_SelectedIndexChanged" OnPageIndexChanged="lgSearchedGrid_PageIndexChanged"
OnSortCommand="lgSearchedGrid_SortCommand">
<ClientSettings EnableClientKeyValues="True">
<Selecting AllowRowSelect="True"></Selecting>
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
<Resizing AllowColumnResize="True"></Resizing>
</ClientSettings>
<ItemStyle Wrap="True"></ItemStyle>
<FilterItemStyle Wrap="True"></FilterItemStyle>
<MasterTableView OnPreRender="lgSearchedGrid_PreRender" DataSourcePersistenceMode="NoPersistence"
DataKeyNames=Id1,Id2 TableLayout="Fixed" Width="100%">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
Any suggestion will be great.
Thanks.