This is a migrated thread and some comments may be shown as answers.
validation and editFormColumnIndex
1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
laura asked on 08 Aug 2018, 02:58 PM

Is it possible to use ColumnValidation and EditFormIndexColumnIndex index together?  

I  have a grid where the validation was working as expected.  Added editformcolumnindex and now it cannot "find" those columns. 


Example following works fine without EditFormIndexColumnIndex


<telerik:GridDropDownColumn DataField="itemManager" UniqueName="editManager" HeaderText="Manager"
    DataSourceID="sqlDataSource6" ListValueField="adId" ListTextField="adName" EditFormColumnIndex="2"
    EnableEmptyListItem="true" EmptyListItemText="Select" DropDownControlType="RadComboBox">
    <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
        <RequiredFieldValidator ForeColor="Red" ErrorMessage="  Required Field"></RequiredFieldValidator>
        <ModelErrorMessage BackColor="Red" />

1 Answer, 1 is accepted

Sort by
Peter Milchev
Telerik team
answered on 13 Aug 2018, 11:24 AM
Hello Laura,

It is possible to use the ColumnValidation and the EditFormColumnIndex together as demonstrated in the following screencast of the attached project:

We used your configuration and what we added was the <RequiredFieldValidator InitialValue="Select"  ...> and setting MasterTableView-EditFormSettings-ColumnNumber="3". 

With the above additional configuration, the validation works as expected.

Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question