I have a ig:WebDropDown which is having the starting value as 'Select' as below
<ig:WebDropDown ID="ddlTeam" runat="server" Width="260px" DisplayMode="DropDownList">
</ig:WebDropDown>
I used RequiredFieldValidator for the control as below,
<
ErrorMessage="Select a Team" ControlToValidate="ddlTeam">
The problem is when i have value as 'Select' in WebDropDown and click on some button,
the validation fired correctly and after selecting some other value other than 'Select' in WebDropDown
and the Validation Message is not going off, still its showing as 'Select a Team'
What i came to know is only when some post back is happening then only the Validation is working
fine, becoz when i set AutoPostBack = true for WebDropDown its working.
But i dont want to set AutoPostBack = true.
So, can you provide a solution for this ASAP, how to use RequiredFieldValidator for ig:WebDropDown without using
AutoPostBack to true.
---------------------------
Thanks in Advance.
Pavan.
Hi Pavan,I've tried your scenario, but I cannot reproduce the issue. Can you please attach a sample where I can reproduce it? Thanks,Nikolai Dimitrov
I may not be clear in my explanation earlier.
The main thing is,
Can you please confirm me the below,
The issue is,
I have a ig:WebDropDown which has some values, When 'Select' is selected and when i click on a button, its firing an validation message('Please select value other than Select') which is correct.
When i selected a value other than 'Select' in the ig:WebDropDown the Validation is not clearing off, its only being cleared when we click on some control having AutoPostBack like a button.
Actually the Validation should be cleared immediately on selection of value(other than select) in ig:WebDropDown
I got a solution for it by setting AutoPostBack = true for the WebDropDown. But i need a solution without using AutoPostBack = true for the ig:WebDropDown
If you can confirm that its working fine for you the way i mentioned above, then i will send you a sample
Sorry for the inconvenience that we have caused you. The scenario that you've described requires automatic client-side validation, which is currently not supported.Regards,Nikolai Dimitrov