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

[Solved] How do I set default values on insert?

1 Answer 185 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 26 Apr 2013, 11:20 AM
I have a RadGrid with a  NeedDataSource binding.  The grid also has an EditTemplate.  The update is working well, but on hitting Add New Item, I'm getting errors binding to the edit controls because there is no default value.  The dropdownlist errors because the selectedvalue of "" is not in the list.  When I fix that by adding a blank item to the list (which I really don't want) the RadNumericEdit errors because "" can't be converted to a double.  How do I set default values?

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 01 May 2013, 05:43 AM
Hello Steven,

You can find the answer to your question at the following help topic:

http://www.telerik.com/help/aspnet-ajax/grid-inserting-values-inplace-and-editforms.html

(the paragraph: Setting predefined values for different column editors)

Regards, Tsvetoslav
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
Steven
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or