User Control While Editing. Validators break the RadControls on Validation

8 posts, 0 answers
  1. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 02 May 2008 Link to this post

    Hi there.
    We have a grid with a user control (ascx) for editing inserting. In the user control we are using custom validators and required field validators for RadDatePickers and RadComboBoxes. When these are fired on Submit the RadComboBox Drop Down Event stops working and the RadDatePicker throws an error on selecting a date and we need a work around please.
  2. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 02 May 2008 Link to this post

    Ok Little update, Date picker error was my fault. However if you put a RadComboBx in a user control inside a grid editor and then use an Ajaxmanager on that Grid. The Asp:validators will freeze up the RadcomboBox when submited as invalid. Has anyone seen this? I definitely fixed it by removing the ajaxmanger but we need the ajaxmanager there so it can fire custom ajax requests.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 03 May 2008 Link to this post

    One more puzzle piece. So I tried creating a simple sample project and can't recreate the issue even though everthing is exactly the same except where and how we are getting the grid's datasource which shouldn't matter.

    I did notice however in the simple app that when I click save and the validator fires false the loading panel fires and keeps firing if you keep clicking the save button. However in our system when we click the save button the validator fires and shows but the loading panel does not fire thus the combobox is frozen. I was able to throw a postback and unfreeze the combobox but this sets the validators back to hidden and isn't a desired way to do it. Please any help would be greatly apprecated.
  5. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 07 May 2008 Link to this post

    Your description leads me to believe that a javascript error is generated which freezes the combobox or interrupts the ajax request execution. Can you check whether this is true? You may also test whether disabling RadAjax and using plain MS UpdatePanel produces the same result since you said standard postbacks does not exhibit the same effect.

    Kiara
  6. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 07 May 2008 Link to this post

    Hello,
    Yes it does work fine without the Ajax enabled. We have opened a support ticket because I've tried just about everything to get around this and the only way I could make it work with the Q1 release is to either do validation on server side, disable ajax or use an asp:dropdownlist.
  7. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Jan 2008

    Posted 14 May 2008 Link to this post

    Were you able to determine why this was happening? I'm seeing the same behavior without a user control. I just have a grid and in the edit template has a RadComboBox and CustomValidator. Once the customvalidator fires false, none of the dropdowns work.

    If I take the grid out of the AjaxManager it works as expected.
  8. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 14 May 2008 Link to this post

    We never determined exactly why it was happening but it is definitely the ajaxmanager, radcomboxes, and clientside validators not working well together. I would suggest using a .ServerValidate event in the code behind or asp:dropdown. There should be a fix for this in the future but not sure when that will be.
  9. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Jan 2008

    Posted 14 May 2008 Link to this post

    Thanks. That seems to solve the problem. I just get the loading animation while it's running the server validation but that will be okay for now I guess.

    Thanks for your help.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017