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
310
WebDropDown v11.2: webdropdown won't do a postback if form is not valid
posted

Hi, 

We're using the infragistics Webdropdown v11.2 in our web projects, but I've a weird issue: if one of the validationcontols on my page has an InValid state, the webdropdown won`t postback!

I`ve tested it with v11.1, and in that version, this problem doesn't exist. It`s only in v11.2 of the webdropdown. 

I'll include a test project with this problem reproduced (but its very simple, when you add a webdropdown with AutoPostBackFlags-SelectionChanged="On" and a validator who says that the page is not valid, you have the same conditions, but for the lazy people: see the my attached project :) )

Anyone a suggestion for a something like a CausesValidation=false ? :)

thanks!

Klaas Polinder

WebDropDownDemo1.zip
Parents
No Data
Reply
  • 49378
    posted

    Hi Klaas,

    Thank you for posting in the community.

    I have researched the sample you provided and when the form is invalid, changing the selection once does not fire a postback. Changing the selection again, however does fire a postback (the form being invalid still).

    Interestingly enough, the same behavior can be observed with an ASP Button with CauseValidation set to false. While the form is invalid, the button causes a postback only after the second click. In this scenario I can suggest that you enable the postback on value changing in your scenario as this seems to work regardless of form validity. 

    Please let me know if this helps.

Children