This is a migrated thread and some comments may be shown as answers.

RequiredFieldValidator with RadComboBox Under DataGrid

0 Answers 81 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Pushkar
Top achievements
Rank 2
Pushkar asked on 01 Sep 2009, 03:18 PM

I am working with migration project.  I have converted the asp ComboBox to  Rad ComboBox. RadComboBox is under DataGrid. asp:RequiredFieldValidator is used for validation. It was working with asp ComboBox but not working with RadComboBox. One of the reason I identify that RadComboBox validate the text not value.

I try with custom validator but it is not working because the RadComboBox is under DataGrid.

 

Please give me proper solution. Thanks.

 

 

 

<asp:DataGrid ID="dgLesson" runat="server" CssClass="dataGridTable" Width="100%" .........

<Columns> 

< asp:TemplateColumn HeaderText="Sequence Number">   

<ItemTemplate>

 <asp:Label ID="lbSequenceNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SequenceNumber") %>'>  

</asp:Label>

 </ItemTemplate>

 <FooterTemplate 

<telerik:RadComboBox ID="ddAddSequenceNumber" runat="server">

</telerik:RadComboBox>  

<asp:RequiredFieldValidator ID="rfvAddSequenceNumber" runat="server" ControlToValidate="ddAddSequenceNumber"

ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator>  

</FooterTemplate>

</asp:TemplateColumn>

 

 

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Pushkar
Top achievements
Rank 2
Share this question
or