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


    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,
  2. Pavlina
    Pavlina avatar
    6069 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.

    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. DevCraft R3 2016 release webinar banner
Back to Top