validation and editFormColumnIndex

2 posts, 0 answers
  1. laura
    laura avatar
    11 posts
    Member since:
    Dec 2015

    Posted 08 Aug 2018 Link to this post

    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" />
  2. Peter Milchev
    Peter Milchev avatar
    894 posts

    Posted 13 Aug 2018 Link to this post

    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.
Back to Top