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.
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.
7 Answers, 1 is accepted
0
Rory
Top achievements
Rank 1
answered on 03 May 2008, 04:00 AM
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.
0
Rory
Top achievements
Rank 1
answered on 03 May 2008, 09:43 PM
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.
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.
0
Kiara
Top achievements
Rank 1
answered on 07 May 2008, 07:41 AM
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
Kiara
0
Rory
Top achievements
Rank 1
answered on 07 May 2008, 03:39 PM
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.
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.
0
Jonathan
Top achievements
Rank 1
answered on 14 May 2008, 07:50 PM
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.
If I take the grid out of the AjaxManager it works as expected.
0
Rory
Top achievements
Rank 1
answered on 14 May 2008, 08:05 PM
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.
0
Jonathan
Top achievements
Rank 1
answered on 14 May 2008, 08:23 PM
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.
Thanks for your help.