radgrid double header

6 posts, 0 answers
  1. rik butcher
    rik butcher avatar
    106 posts
    Member since:
    Jul 2009

    Posted 30 Dec 2014 Link to this post

    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;
  2. rik butcher
    rik butcher avatar
    106 posts
    Member since:
    Jul 2009

    Posted 30 Dec 2014 Link to this post

    here's a screen shot of the issue
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 02 Jan 2015 Link to this post

    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.

     
  5. Pat
    Pat avatar
    31 posts
    Member since:
    Dec 2011

    Posted 18 Dec 2015 Link to this post

    I'm also having the same issues as Rik.

    Has there been any updates on a resolution for this?

     - Pat

  6. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 23 Dec 2015 Link to this post

    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
  7. Sandeep
    Sandeep avatar
    1 posts
    Member since:
    Jul 2016

    Posted 13 Jul in reply to rik butcher Link to this post

    I am facing same issue even when i use code behind.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017