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

RadGrid Frozen Column Issue

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 14 Feb 2013, 04:27 PM
I'm having an issue with frozen colums and the RadGrid.  The problem exist with IE9 and Chrome.  When the webpage completes rendering the Radgrid paints with all rows showing (in this case there are only four rows) then it collaspes to 2 rows showing with a vertical scroll bar.
After resizing the webpage manual (by one or two pixels) the Radgrid will repaint all four rows will show,  the vertical scroll bar goes away, and the frozen colums work as expected.  As a hack, I tried using the windows.onload event to resize the window and move the window to see if that would fix the issue--it does not.  I also tried the onGridCreated function and it did not resolve the issue. Any ideas?   

Thanks

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 19 Feb 2013, 12:19 PM
Hello Jack,

If I understand correctly you have a RadGrid placed in a RadWindow. If this is the case I suggest that you call the repaint() method once the grid is created. In order to achieve this you can intercept the client-side OnGridCreated event. By calling the method with a timeout the issue should be resolved.

ASPX:
<telerik:RadGrid ClientSettings-ClientEvents-OnGridCreated="gridCreated" >
...
</telerik:RadGrid>

JavaScript:
function gridCreated(sender, args)
            {
                window.setTimeout( function () { sender.repaint(); }, 0);
            }

If this suggestion does not resolve the problem please send us your markup with the relevant code-behind so we could investigate further.

Regards,
Angel Petrov
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.
Tags
Grid
Asked by
Jack
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or