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

RadGrid Template Dropdown

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 17 Feb 2009, 11:13 AM

Hello,
1) I am trying to bind a radgrid combobox as template column.For that I am handling a ItemdataBound Event.
But I am getting a error because I think I am getting a column header as an Item.So I have to check column type for that.
How to do this.
I tried this
e.Item.ItemType!=Telerik.Web.UI.RadGrid....... somethink like this.

2)And I saw radgrid column type as Dropdown.How to use this?
Thanks in advance.
-Mahesh.

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Feb 2009, 11:51 AM
Hi Mahesh,

You need to check if e.Item is GridDataItem and e.Item.IsInEditMode == false if this drop down is available even if the item  is not  in edit mode. Please check  this example to know more about  GridDropDownColumn:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx 

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or