Would you guys please consider adding a new property to all controls that have a DBValue or DBSelectedValue property? The new property would be called DefaultValue. Example use case:
We use the FormView control for the View/Insert/Edit of records. We use ObjectDataSource binding to Telerik controls inside the FormView. We pass an object (not fields) between the FormView and the ObjectDataSource. When in the insert mode, some Telerik controls such as RadDatePicker and RadNumericTextBox are bound to the object and set to null. Currently we have to set up a OnDataBinding event to set the default values for each control. It would be extremely helpful if we could just set a new property to the default value in this case.
Edited: I did find that we could set the Value property for a RadNumericTextBox and it would work as a default value on insert; however, other controls like checkbox don't.
Example:
We use the FormView control for the View/Insert/Edit of records. We use ObjectDataSource binding to Telerik controls inside the FormView. We pass an object (not fields) between the FormView and the ObjectDataSource. When in the insert mode, some Telerik controls such as RadDatePicker and RadNumericTextBox are bound to the object and set to null. Currently we have to set up a OnDataBinding event to set the default values for each control. It would be extremely helpful if we could just set a new property to the default value in this case.
Edited: I did find that we could set the Value property for a RadNumericTextBox and it would work as a default value on insert; however, other controls like checkbox don't.
Example:
<
telerik:RadNumericTextBox
ID
=
"numPurchasedPrice"
runat
=
"server"
Type
=
"Currency"
DataType
=
"System.Decimal"
MinValue
=
"0"
MaxValue
=
"100"
DefaultValue="0"
DbValue='<%# Bind("PurchasedPrice") %>' >
</
telerik:RadNumericTextBox
>