This is a migrated thread and some comments may be shown as answers.

radgrid with AutoGenerateColumns is true

1 Answer 299 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Shirish Lokhande
Top achievements
Rank 1
Shirish Lokhande asked on 11 Oct 2011, 11:39 AM
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

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Oct 2011, 02:17 PM
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
Tags
Dock
Asked by
Shirish Lokhande
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or