Freeze Column

12 posts, 0 answers
  1. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 08 Oct 2008 Link to this post

    I am using the FrozencolumnsCount and it works fine unless I use the grouping function.   How can I get the column to stay frozen if I am grouping data?
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 Oct 2008 Link to this post

    Hello Mike,

    Note that when the grid has frozen columns and grouped, the first frozen column is the expand/collapse column. Therefore, to preserve the same data columns frozen functionality, you can increase the FrozenColumnsCount property.  You can try the following code:

    protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)  
    {  
        base.RaisePostBackEvent(sourceControl, eventArgument);  
        Label1.Text = eventArgument;  
        if (eventArgument.Contains("GroupByColumn"))  
        {  
            RadGrid1.ClientSettings.Scrolling.FrozenColumnsCount++;  
        }  
        if (eventArgument.Contains("UnGroupByExpression"))  
        {  
            RadGrid1.ClientSettings.Scrolling.FrozenColumnsCount--;  
        }  

    Give it a try and let me know if this works for you.

    All the best,
    Iana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 13 Oct 2008 Link to this post

    There are 20+ columns in the grid and when "FrozenColumnsCount" is added the last 5 columns are chopped off when I scroll to the right. 

    I also tried your solution, thanks, but there was no change.
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Oct 2008 Link to this post

    Hi Mike,

    Please find attached a sample project and try it on your end. Let me know if it works as desired and what differs in your case.

    Best wishes,
    Iana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 17 Oct 2008 Link to this post

    Iana,

    I tried your changes, unforunately the last five columns are still not visible when I use grouping.

    :(
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 20 Oct 2008 Link to this post

    Hi Mike,

    Could you please send us a sample where we could replicate the described behavior in order to debug it locally and get to the source of the issue? Providing a live Url might also be of help.

    Regards,
    Iana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 20 Oct 2008 Link to this post

    This is an internal site and if you want me to send you source code send me an email and I will reply with some attached for your review.  I don't feel comfortable posting it on a forum.
  9. Vlad
    Vlad avatar
    115 posts
    Member since:
    Dec 2007

    Posted 20 Oct 2008 Link to this post

    Hi Mike,

    You can open support ticket where attachments are allowed.

    Vlad
  10. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 30 Oct 2008 Link to this post

    Vlad,

    I just created the support ticket, thank you!

    Mike
  11. Stephen Braich
    Stephen Braich avatar
    5 posts
    Member since:
    Nov 2008

    Posted 04 Aug 2009 Link to this post

    I am having a similar problem with losing columns.  I don't have anything extravagant like grouping or anthing like that.  I am just losing that last column.
  12. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 05 Aug 2009 Link to this post

    Hello Stephen,

    Can you please check whether setting MasterTableView -> TableLayout = Fixed for the grid and specifying fixed widths for the grid columns as presented on the relevant demo alleviates the abnormality?

    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  13. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 25 Aug 2009 Link to this post

    I am experiencing this same problem.  I have the table layout to fixed, but that didn't seem to help.

    I got around this by adding a final column that doesn't hold anything.  At least the users can see all of their data, and they probably don't really notice the final empty column.  Its a workaround, but I would prefer not to have to do this.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017