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

Header/Item alignment issue - using browser dev tools corrects it

5 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 10 Apr 2012, 04:42 AM
I am having trouble getting my item and header columns to align.  I have gotten to the point of trying to even set them all manually in the grid's preRender event but something is overriding it.

However, before I share some code I have a more immediate related question:  Is there some factor of your grid component that adjusts its rendering based on the presence of browser developer tools?  If I use the inspect feature of FF9 or flip on F12 in IE9 the grid immediately aligns itself correctly and remains that way after I turn the dev tools off.  This suggests to me that my alignment issue is not related to overriding CSS (which I doubt is at work here) but rather some aspect of the grid's java script.  Can you spread som light on this unusual issue?

Thanks,
Ed

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Apr 2012, 09:03 AM
Hello Ed,

This is a known issue and is reported to our developers. They will do their best to fix it for the next official release. Please excuse us for the inconvenience caused.

All the best,
Pavlina
the Telerik team
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 their blog feed now.
0
Ed
Top achievements
Rank 1
answered on 15 Apr 2012, 03:10 AM
Thanks for responding.  I guess I have conflicted feelings on that, but strangely enough the issue has healed itself amidst further development.  Not comforting but I'll be able to continue on for now.

Since you are aware of the issue and presumably have some understansding of the root cause, is there an approved workaround or advice for avoidance?
0
Pavlina
Telerik team
answered on 18 Apr 2012, 09:52 PM
Hi Ed,

To overcome it you can try to repaint the grid inside GridCreated client-side event as shown below:
function repaintGrid(sender, args) {
    var grid = $find("<%=RadGrid1.ClientID %>");
    grid.repaint();
}

Give it a try and let us know if this helps.

All the best,
Pavlina
the Telerik team
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 their blog feed now.
0
Accepted
Pavlina
Telerik team
answered on 24 Apr 2012, 09:32 AM
Hi Ed,

I am glad to announce that this problem is already fixed and the fix is available in Q1 2012 SP1 release of RadControls for ASP.NET AJAX.

Greetings,
Pavlina
the Telerik team
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 their blog feed now.
0
Ed
Top achievements
Rank 1
answered on 24 Apr 2012, 11:18 AM
Wonderful!  Thanks for taking the effort to tackle this on.
Tags
Grid
Asked by
Ed
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ed
Top achievements
Rank 1
Share this question
or