Hi
How can I set values (bind) to the RadNumericInput control:
(as shown below)
But cater for DbNull.Value values?
The users do not want to see the value zero "0.0000" they want to be able to see that the value is null, nothing / blank textbox.
I receive a "Specified cast is not valid." error message if I try and bind it to a datatable with some Null values.
Here is my full RadNumericTextBox control declaration:
How can I set values (bind) to the RadNumericInput control:
(as shown below)
Value='<%# DataBinder.Eval(Container, "DataItem.Salary")%>' |
But cater for DbNull.Value values?
The users do not want to see the value zero "0.0000" they want to be able to see that the value is null, nothing / blank textbox.
I receive a "Specified cast is not valid." error message if I try and bind it to a datatable with some Null values.
Here is my full RadNumericTextBox control declaration:
<telerik:RadNumericTextBox ID="radNumericTextBox" runat="server" Type="Number" |
Value='<%# DataBinder.Eval(Container, "DataItem.Salary")%>' |
LabelCssClass="radLabelCss_Web20" Skin="Telerik" Width="80px" style="TEXT-ALIGN: left" |
Font-Size="8pt" > |
<NumberFormat DecimalDigits="4" /> |
<FocusedStyle BorderColor="Red" BorderStyle="Double" /> |
<HoveredStyle BorderColor="Red" BorderStyle="Double" /> |
</telerik:RadNumericTextBox> |