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

Creating a radio button column in a grid programaticcaly

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nairooz Nilafdeen
Top achievements
Rank 1
Nairooz Nilafdeen asked on 26 Oct 2009, 04:19 PM
Hi All,

I have a grid that has 4 columns, the first one is a bound column and the rest are radio button columns.
I am creating the grid programatically.
1) The problem I am facing is on how to create the 3 radio button columns, I think its possible to do this in declartivley in the aspx page, but I want a way that I could add this columns to the grid programmatically.

2) and also I followed this link http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html, hear I see that I would have to creat the "MyTemplate " class to use a template, is there a dafult class in RAD that could handle this for me, I mean when I create a template column declartively I dont specfiy a concrete class that implements ITemplate.


Would be great If I can hear back from you guys.

Regards,
Nairooz

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Oct 2009, 09:27 AM
Hello Nairooz,

If you would like to create the template column programatically, you can use the approach demonstrated in the link which you included. Since this is a template column, and the template contents are up to you, there are no preset layouts/classes which you can use. You will need to manually declare the contents of the template column, as shown in the article.
I hope this information helps.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Nairooz Nilafdeen
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or