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

[Solved] GridDropDownColumn with empty item?

1 Answer 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
scrut
Top achievements
Rank 1
scrut asked on 31 May 2008, 04:47 PM
How can an GridDropDownColumn show an empty item at the top of the list resulting in the value "NULL" being passed back to the Stored Procedure performing the INSERT-Operation?

Thanks

s.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jun 2008, 05:33 AM
Hi Scrut,

Try setting the EnableEmptyListItem property of the GridDropDownColumn to true (its default value is false) and choosing EmptyListItemText/EmptyListItemValue to display an empty item/default item.

ASPX:
 <telerik:GridDropDownColumn UniqueName="ContactName" DataSourceID="ddListColumnDataSource" 
SortExpression="ContactName" ListTextField="ContactName" 
EnableEmptyListItem = "true" EmptyListItemText="--Choose an option--" EmptyListItemValue="" 
ListValueField ="CustomerID" HeaderText="Contact name" DataField="CustomerID" />  



Thanks
Shinu.
Tags
Grid
Asked by
scrut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or