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

"Auto-generate edit column at runtime" and "auto-generate delete column at runtime" problems

3 Answers 235 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 26 Sep 2011, 12:24 PM
Hello,

I have checked the choices "auto-generate edit column at runtime" and "auto-generate delete column at runtime" to the "rows drag and drop shipped orders datagrid". i' m trying to write the corresponding events so as to give functionality to the edit and delete link buttons. How could i catch these events (i can't catch them with ItemCreated and ItemCommand events). Could you please give me some help?

Also, when i set to EditMode the value InPlace i can't see the "cancel link button" and a part of "insert link button" when i press the "Add new record" button.

Thank you very much.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Sep 2011, 12:52 PM
Hello George,

RadGrid does not support mixing declarative grid columns with grid columns added dynamically at runtime. You should either create all the columns in the grid programmatically, or else define them all in the ASPX file.

Please take a look into the following help article for more on this.
Programmatic Creation.

Thanks,
Shinu.
0
George
Top achievements
Rank 1
answered on 26 Sep 2011, 12:59 PM
Hello Shinu,

Thanks for your quick answer. You mean that i had better declare manually the columns of the radgrid instead of setting AutoGenerateColumns to true?

Thank you very much.
0
Pavlina
Telerik team
answered on 27 Sep 2011, 01:56 PM
Hello George,

If you add rest of the columns in grid declarativly you should also declare your edit and delete columns in the aspx page. You can refer to the help article below:
http://www.telerik.com/help/aspnet-ajax/grid-automatic-datasource-operations.html

Other than this, you should create all the columns programmatically, as explained here:
http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html

Greetings,
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
Grid
Asked by
George
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
George
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or