I'm getting an error "Conversion from type 'DBNull' to type 'Boolean' is not valid." upon displaying an insert form inside a RadGrid that has two RadButton controls with the ToggleType="Checkbox" that have the Checked property being bound from a database.
<telerik:RadButton ID="RXRequired" runat="server" ForeColor="White"
AutoPostBack="false" ButtonType="ToggleButton" Checked='<%# Bind("RXRequired")%>'
ToggleType="CheckBox" EnableViewState="true" >
<ToggleStates>
<telerik:RadButtonToggleState PrimaryIconCssClass="rbRemove" />
<telerik:RadButtonToggleState PrimaryIconCssClass="rbOk" Selected="true" />
</ToggleStates>
</telerik:RadButton>
I have seen numerous posts all over the web regarding DBNull values and checkboxes upon initiating a form insert with the Bind statement. This apparently has been going on for many, many years. This is truly amazing that this is still an issue today, many years later! When the hell is Telerik going to fix this issue with their controls? Come on guys, fix this already!!! This is a real simple thing to do, why should this still be an issue?
This is insane already. FIX IT!!!!!!!!!!!!!!!!!!!!!!