Change column order for columns created in design

2 posts, 0 answers
  1. Cata
    Cata avatar
    2 posts
    Member since:
    Nov 2012

    Posted 18 Mar Link to this post


    I'm interested in changing the order of the columns at runt-time for columns created in design-view. I have tried in Grid_PreRender but it doesn't work

    Also, is it possible mix dynamically created columns with columns created in design?




  2. Viktor Tachev
    Viktor Tachev avatar
    1453 posts

    Posted 22 Mar Link to this post

    Hello Catalin,

    You should be able to change the order of columns by calling the SwapColumns method. Check out the following article for description on how you can change the order of columns in RadGrid:

    With that said, it is not recommended to mix declarative and programmatic creation of columns. It is best to stick with one approach - either define all columns in the markup or use the code-behind to create them dynamically.

    Check out the following article that describes in more detail how you can define the RadGrid structure dynamically.

    Viktor Tachev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. Telerik UI for ASP.NET Core is out
Back to Top