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
35
How to validate webcombo for requiredfield validator [not custom validator]
posted

I have read http://www.componentsource.com/products/webcombo-net/summary.html that webcombo can be validated via requiredfield validator.

But when i use

<igcmbo:WebCombo ID="cboTransmission" runat="server" BackColor="White" BorderColor="Silver"
                                                    BorderStyle="Solid" BorderWidth="1px" ForeColor="Black" SelBackColor="DarkBlue"
                                                    SelForeColor="White" Version="4.00" Width="77px" OnInitializeLayout="cboTransmission_InitializeLayout">
                                                    <Columns>
                                                        <igtbl:UltraGridColumn>
                                                            <header caption="Column0"></header>
                                                        </igtbl:UltraGridColumn>
                                                    </Columns>
                                                    <ExpandEffects ShadowColor="LightGray" />
                                                    <DropDownLayout BorderCollapse="Separate" RowHeightDefault="20px" Version="4.00"
                                                        ColWidthDefault="" DropdownHeight="" DropdownWidth="">
                                                        <HeaderStyle BackColor="LightGray" BorderStyle="Solid">
                                                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                        </HeaderStyle>
                                                        <FrameStyle BackColor="Silver" BorderStyle="Ridge" BorderWidth="2px" Cursor="Default"
                                                            Font-Names="Verdana" Font-Size="10pt">
                                                        </FrameStyle>
                                                        <RowStyle BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px">
                                                            <BorderDetails WidthLeft="0px" WidthTop="0px" />
                                                        </RowStyle>
                                                        <SelectedRowStyle BackColor="DarkBlue" ForeColor="White" />
                                                    </DropDownLayout>
                                                </igcmbo:WebCombo>
                                                    <asp:RequiredFieldValidator ID="cvTransmission" ControlToValidate="cboTransmission  runat="server" InitialValue="" ErrorMessage="Transmission cannot be null." ValidationGroup="vgApp">*</asp:RequiredFieldValidator>

 

I got the error

Control 'cboTransmission' referenced by the ControlToValidate property of 'cvTransmission' cannot be validated.

I am using Infragistics2.WebUI.WebCombo.v7.2

I don't want's to use custom validator

What can I do ?