Hello,
I'm using a RadGrid with EditForms. I find that when I use GridDropDownColumn, I get a js error generated by telerik's dynamic code when calling the grid edit form.
If I take GridDropDownColumns out of my grid, everything works fine. Even if I'm using a generic GridDropDownColumn with no datafield, I still get the error.
I can't figure out what's causing this, as it worked the day before and I haven't changed anything.
Here's the error message:
Line: 6
Error: Object doesn't support property or method 'toUpperCase'
Here's my grid:
I'm using a RadGrid with EditForms. I find that when I use GridDropDownColumn, I get a js error generated by telerik's dynamic code when calling the grid edit form.
If I take GridDropDownColumns out of my grid, everything works fine. Even if I'm using a generic GridDropDownColumn with no datafield, I still get the error.
I can't figure out what's causing this, as it worked the day before and I haven't changed anything.
Here's the error message:
Line: 6
Error: Object doesn't support property or method 'toUpperCase'
Here's my grid:
<telerik:RadGrid runat="server" ID="gridMedications" OnItemDataBound="gridMedications_ItemDataBound" OnInsertCommand="gridMedications_InsertCommand" OnDeleteCommand="gridMedications_DeleteCommand" > <MasterTableView AutoGenerateColumns="false" NoMasterRecordsText="<i><b>None - Not taking any medications</b></i>" CommandItemDisplay="Bottom" EditMode="EditForms" > <CommandItemSettings AddNewRecordText="Add Medication" ShowAddNewRecordButton="true" ShowRefreshButton="false" /> <EditFormSettings EditColumn-InsertText="Add" EditColumn-ButtonType="PushButton" /> <Columns> <telerik:GridBoundColumn DataField="NameOfMed" HeaderText="Medication" UniqueName="NameOfMed" > <ColumnValidationSettings EnableRequiredFieldValidation="true"> <RequiredFieldValidator SetFocusOnError="true" Display="Dynamic" ForeColor="Red" Text=" *Required" /> </ColumnValidationSettings> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ReasonForTaking" HeaderText="Reason for Taking" UniqueName="ReasonForTaking" DefaultInsertValue="" /> <telerik:GridBoundColumn DataField="FormOfMed" HeaderText="Form Of Medication" UniqueName="FormOfMedCol" ReadOnly="true" /> <telerik:GridBoundColumn DataField="Prescription" HeaderText="Rx or OTC" UniqueName="PrescriptionCol" ReadOnly="true" /> <telerik:GridBoundColumn DataField="ForAllergies" HeaderText="For Allergies?" UniqueName="ForAllergiesCol" ReadOnly="true" /> <telerik:GridDropDownColumn DataField="FormOfMed" HeaderText="Form Of Medication" UniqueName="FormOfMed" Visible="false" ReadOnly="false" /> <telerik:GridDropDownColumn DataField="Prescription" HeaderText="Rx or OTC" UniqueName="Prescription" Visible="false" ReadOnly="false" /> <telerik:GridDropDownColumn DataField="ForAllergies" HeaderText="For Allergies?" UniqueName="ForAllergies" Visible="false" ReadOnly="false" /> <telerik:GridButtonColumn ButtonType="LinkButton" Text="Remove" CommandName="Delete" /> </Columns> </MasterTableView></telerik:RadGrid>