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

radgrid double header

5 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rik butcher
Top achievements
Rank 1
rik butcher asked on 30 Dec 2014, 05:21 PM
guys, i've got a weird one. when i use this for frozen columns in the mark up, it works perfectly.   
<ClientSettings EnableRowHoverStyle="true" >                 
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="6">
                        </Scrolling>
however when i use this in the code behind - on items databind, i get two headers on the grid. or it actually looks like a grid in a grid.
very strange. anyway i can use this in the code behind where it works perfectly?
 InventoriesRadGrid.ClientSettings.Scrolling.AllowScroll = true;
            InventoriesRadGrid.ClientSettings.Scrolling.UseStaticHeaders = true;
            InventoriesRadGrid.ClientSettings.Scrolling.SaveScrollPosition = true;
            InventoriesRadGrid.ClientSettings.Scrolling.FrozenColumnsCount = 6;

5 Answers, 1 is accepted

Sort by
0
rik butcher
Top achievements
Rank 1
answered on 30 Dec 2014, 05:23 PM
here's a screen shot of the issue
0
Daniel
Telerik team
answered on 02 Jan 2015, 09:08 AM
Hello Rik,

I would recommend that you set these properties until the Load (including) event of the page (Load, Init, InitComplete, etc). If you'd like to set them after the Load event you will have to rebind the control so that RadGrid can adjust its structure properly. In any case you should not call InventoriesRadGrid.Rebind in events like ItemDataBound, ItemCreated, DataBound as it will be either absolutely ineffective, or will result in endless recursion, or will cause an exception.

Regards,
Daniel
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Pat
Top achievements
Rank 1
answered on 18 Dec 2015, 03:39 PM

I'm also having the same issues as Rik.

Has there been any updates on a resolution for this?

 - Pat

0
Daniel
Telerik team
answered on 23 Dec 2015, 09:09 AM
Hi Pat,

Can you please share your markup and the relevant code-behind with us? This way I might be able to provide a more precise answer for your scenario.

Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Sandeep
Top achievements
Rank 1
answered on 13 Jul 2016, 11:20 AM
I am facing same issue even when i use code behind.
Tags
Grid
Asked by
rik butcher
Top achievements
Rank 1
Answers by
rik butcher
Top achievements
Rank 1
Daniel
Telerik team
Pat
Top achievements
Rank 1
Sandeep
Top achievements
Rank 1
Share this question
or