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

Grid not formatted correctly after first view instance

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 29 May 2018, 02:00 PM

Hi,

I have a grid control on a page.  Upon the first time it is loaded, it displays fine, with all the formatting, pagination controls, etc.

When clicking on any control, such as the next page control; the page refreshes with the original data(not the next page), but all the formatting is stripped off. (See attached images for correct and incorrect footer controls) This unformatted behavior continues across browsers and client machines until the app pool is refreshed on IIS.  Then, the page will display properly the first time only that it is requested from the server.

I have noticed in looking at the view source for the web-pages displayed that on the original load, the <link href to the telerik.web.ui.webresources.axd is included.  Any subsequent loads of the same page do not contain that link; despite the browser or computer used... until the IIS app pool is reset.

Anyone have any ideas??

Thanks!

Windows Server 2012 R2
IIS ver 8.5.9600.16384
Telerik DLL ver 2016.2.607.40

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 31 May 2018, 02:47 PM
Hi Charles,

That's quite peculiar and I haven't seen such behavior before. What I can suggest is that you try using the skins CDN we provide to avoid the WebResource requests that need to be generated by .NET. Here's the article that explains this feature: https://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/cdn-support/overview and here's a basic example of the control declaration:

<telerik:RadStyleSheetManager runat="server" ID="rssm1" CdnSettings-TelerikCdn="Enabled"></telerik:RadStyleSheetManager>

Are there any logs from IIS that you can provide about errors that cause this?

Also, could you try repairing .NET to see if this helps?

One other small test you can do is to use AJAX for the grid to avoid disposing he entire page (e.g., just wrap it in an UpdatePanel) - it is possible that this will alleviate the issue a little if the initial load has the stylesheets, and then they will not get lost until a full postback happens.


Regards,
Marin Bratanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Charles
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or