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

Null values in dropdowncolumn

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
iomega 55
Top achievements
Rank 1
iomega 55 asked on 09 Nov 2011, 05:30 AM
How can I have in a null values?

With all the respect, I used this for a while (click on edit option of the grid):

http://www.tedit.net/sampleviewer/srcview.aspx?path=SingleTable.src&file=SingleTable.aspx

If the field on the database allows nulls, when you create the DropDownColumn it automatically adds the first option which is the null value. No manually code.

Is there an option or sample for doing this in Telerik“s grid? i.e. no manual code for having an option in the dropdownlist for those fields which allow null values. I will load the options(data) for the dropdownlist from an sqlserver table.

Cheers.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 14 Nov 2011, 09:23 AM
Hi Iomega 55,

The desired functionality cannot be achieved automatically, with no code. However you can see how this could be done in this help topic (Adding GridDropDownColumn option on insert/edit section).

I hope it works for you.

Regards,
Iana Tsolova
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
iomega 55
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or