Hi,
I have noticed a performance issue with the RadListView and DataPager controls. I am seeing a noticable delay in moving to the next page in my RadListView which I think is due to the number of CSS calls being made. This only happens the first time i visit the page with the control on and click the "next page" button - afterwards, the css is cached so the performance is fine.
I am seeing 8 calls to CSS files from my WebResource.axd. These are for:
Telerik RadListView Common CSS
Telerik RadListView Default Skin
Telerik RadDataPager Common CSS
Telerik RadDataPager Default Skin
The calls all occur twice!
Is there a way to reduce these calls?
Here is my code:
Thanks
Tom
I have noticed a performance issue with the RadListView and DataPager controls. I am seeing a noticable delay in moving to the next page in my RadListView which I think is due to the number of CSS calls being made. This only happens the first time i visit the page with the control on and click the "next page" button - afterwards, the css is cached so the performance is fine.
I am seeing 8 calls to CSS files from my WebResource.axd. These are for:
Telerik RadListView Common CSS
Telerik RadListView Default Skin
Telerik RadDataPager Common CSS
Telerik RadDataPager Default Skin
The calls all occur twice!
Is there a way to reduce these calls?
Here is my code:
<asp:UpdatePanel ID="upExpList" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> |
<ContentTemplate> |
<ul> |
<telerik:RadListView OnPageIndexChanged="rlvExperiences_PageIndexChanged" |
ItemPlaceholderID="ViewTitlePlaceholder" |
DataKeyNames="ExperienceId" ID="rlvExperienceTitles" |
runat="server" AllowPaging="true"> |
<LayoutTemplate> |
<li runat="server" id="ViewTitlePlaceholder" /> |
</li> |
</LayoutTemplate> |
<ItemTemplate> |
<li> |
//removed for brevity |
</li> |
</ItemTemplate> |
</telerik:RadListView> |
</ul> |
</div> |
</ContentTemplate> |
<Triggers> |
<asp:AsyncPostBackTrigger ControlID="dataPager" EventName="Command" /> |
<asp:PostBackTrigger ControlID="rlvExperienceTitles" /> |
</Triggers> |
</asp:UpdatePanel> |
<asp:UpdatePanel ID="upDataPager" runat="server" > |
<ContentTemplate> |
<telerik:RadDataPager BackColor="Transparent" BorderColor="Transparent" |
Font-Size="Small" ID="dataPager" runat="server" PagedControlID="rlvExperienceTitles" |
PageSize="20"> |
<Fields> |
<telerik:RadDataPagerButtonField FieldType="Prev" /> |
<telerik:RadDataPagerButtonField FieldType="Numeric" /> |
<telerik:RadDataPagerButtonField FieldType="Next" /> |
<telerik:RadDataPagerTemplatePageField> |
<PagerTemplate> |
<div style="float: right"> |
<asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> |
to |
<asp:Label runat="server" ID="TotalPagesLabel" Text="<%#CheckPagingTotal( Container.Owner.StartRowIndex+Container.Owner.PageSize) %>" /> |
of |
<asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> |
</div> |
</PagerTemplate> |
</telerik:RadDataPagerTemplatePageField> </Fields> |
</telerik:RadDataPager> |
</ContentTemplate></asp:UpdatePanel> |
Thanks
Tom