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

Grid width and height not correct on initial ajax-request

1 Answer 17 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Philipp asked on 09 Aug 2013, 06:16 AM
Hi Telerik Users and Telerik Team,

i am facing exactly the same behavior as described by Maxims Post
All of his Pictures match my situation.

But it is not only a height-rendering-problem, the colgroups-width is to small (i assume Maxims cols width is fixed, mine is auto-sized).

At first: 
I have a Webapplication (ASP.Net Framework 4), i have installed the latest build of Telerik controls. I am using radAjaxpanels.
The Parts of the Webapp are loaded via .ascx-controls in an asp-panel. The loading itself is ajaxfied. Everthing works pretty fine so far.
I have no javascript-errors or stuff like this, which could cause the inccorect rendering.
The render-problems appear in all browsers in the same way (i have tested with IE, FF, Chrome - all latest versions)

The incorrect rendering:
Whenever the radGrid's first appearance in a session is created via ajax-request, the rendering-problems as described by Maxim happen.
From now on this behavior wont come back, it appears only once. I can jump through the application and everthing renders correctly.

Whenever the radGrid's first appearance in a session is created via (full) postback, the incorrect behavior will never happen.

I allready set the grids property 'EnableAjaxSkinRendering' to true and i tried the sender.repaint()-method on the client-event 'OnGridCreated'. However this doesn't affect the incorrect rendering.

My thoughts on this are:
With some client-side alerts i can see that whenever the radGrid's first appearance is created via ajax-request,
the sizing of radgrid happens befor the styles are assigned (see the Without-styles.png from Maxim). 
So after sizing the styles get assigned and now the size-properties are inccorect.

My Questions:
Is there an appropriate event after the styles for radgrid are assigned?
I would try some stuff at this point to check if my thoughts are leading to the right direction.

Do you have any other suggestions how i could handle this behavior?

Greetings Philipp

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 13 Aug 2013, 02:47 PM
Hello Philipp,

I am glad that the issue was resolved in the mentioned thread:

If new questions arise, I suggest that we continue this discussion on the thread above to enable other users with similar issues to track the conversation easily.

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question