Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! friend i have telric gridview control and this this letric gridview textboxes have been taken for inserting the record and there is four column now i have to take required field validator for the all textbox any textbox is not filled a message should display on the above of the telric gridview like summary validator saying 'All the filled should be filed ' but please provide me the complete code..
Posted
Updated 30-Jun-12 18:25pm
v3

Use template columns and add RequiredFieldValidator for each control.
 
Share this answer
 
ASP.NET
<itemtemplate>
                                                                                           <div dir="rtl" style="text-align: center">
                                                                                               <asp:radiobuttonlist id="RBL_Yes_NO0" runat="server" repeatdirection="Horizontal" xmlns:asp="#unknown">
                                                                                                   Width="200px">
                                                                                                   <asp:listitem value="1">yes</asp:listitem>
                                                                                                   <asp:listitem value="0">No</asp:listitem>
                                                                                               </asp:radiobuttonlist>
                                                                                               <table style="width: 100%">
                                                                                                   <tr>
                                                                                                       <td align="center" dir="rtl">
                                                                                                           الرصيد الكلي
                                                                                                       </td>
                                                                                                       <td align="center" dir="rtl">
                                                                                                           <telerik:radtextbox id="RadTxtBtotalVac" runat="server" width="100px" emptymessage="الرصيد الكلي للموظف" xmlns:telerik="#unknown">
                                                                                                               ValidationGroup='<%# Eval("IDMain") %>'>
                                                                                                           </telerik:radtextbox>
                                                                                                           <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="RadTxtBtotalVac" xmlns:asp="#unknown">
                                                                                                               ErrorMessage="*" ValidationGroup='<%# Eval("IDMain") %>'
                                                                                                               SetFocusOnError="True">
                                                                                                           </asp:requiredfieldvalidator>
                                                                                                       </td>
                                                                                                   </tr>
                                                                                                   <tr>
                                                                                                       <td align="center" dir="rtl">
                                                                                                           الرصيد المتمتع به
                                                                                                       </td>
                                                                                                       <td align="center" dir="rtl">
                                                                                                           <telerik:radtextbox id="RTxtBVacation_used" runat="server" width="100px" validationgroup="sendVacation" xmlns:telerik="#unknown">
                                                                                                           </telerik:radtextbox>
                                                                                                           <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" controltovalidate="RTxtBVacation_used" xmlns:asp="#unknown">
                                                                                                               ErrorMessage="*" ValidationGroup='<%# Eval("IDMain") %>'>
                                                                                                           </asp:requiredfieldvalidator>
                                                                                                       </td>
                                                                                                   </tr>
                                                                                               </table>
                                                                                           </div>
                                                                                       </itemtemplate>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900