Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Two different validators are linked to the text editor for the same column
posted

One of these validation is working but other is not working in the infragistics webdatagrid when i modified the cell text field for the same column. 

Below are what I added two editing column setting objects for two different validators. 


<ig:EditingCore>
<Behaviors>
<ig:CellEditing>
<ColumnSettings>


<ig:EditingColumnSetting ColumnKey="Description" EditorID="WebDataGrid1_TextEditorProvider1"
ValidatorID="RegularExpressionValidator1" />

<ig:EditingColumnSetting ColumnKey="Description" EditorID="WebDataGrid1_TextEditorProvider1"
ValidatorID="RequiredValidator1" />


</ColumnSettings>
</ig:CellEditing>
</Behaviors>
</ig:EditingCore>

Below are two different validators for the same column key

  1.  <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="[0-9]+" ControlToValidate="WebDataGrid1" ErrorMessage="RegularExpressionValidator"> </asp:RegularExpressionValidator>
  2. <asp:RequiredValidator ID="RequiredValidator1" runat="server" ControlToValidate="WebDataGrid1" Display="Static" ErrorMessage="*" runat="server"/> 

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    It is not possible to define two column settings object for the same column. Only the latest column settings object defined will be considered. Please let me know if you have further questions, I will be glad to help.

Children
No Data