radgrid with AutoGenerateColumns is true

2 posts, 0 answers
  1. Shirish Lokhande
    Shirish Lokhande avatar
    15 posts
    Member since:
    May 2010

    Posted 11 Oct 2011 Link to this post

    Hi,

    I have a radgrid with AutoGenerateColumns is true.

    I need to add a template column with Image at runtime when AutoGenerateColumns is true.

    I am able to add the template column at run time when AutoGenerateColumns is true but not able set the column order for this template column.

    Is it possible to set the order for this template column?

    If it is possible then can you please attach a small demo example for the able.

    Thanks & Regards,
    Shirish
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 11 Oct 2011 Link to this post

    Hello Shirish Lokhande,

    The following help article shows how to create template column programmatically:
    Programmatic creation

    Additionally, to change the column position you can use the OrderIndex property which lets you move the column to a specific location.
    Reordering columns

    Let me know if it helps.

    Regards,
    Pavlina
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top