This is a migrated thread and some comments may be shown as answers.

Client Side Validation in a RadGrid kills loadondemand in a combo box

11 Answers 204 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Collin
Top achievements
Rank 1
Collin asked on 13 May 2008, 08:06 PM
Hi, I've got a combo box in an editform in a RadGrid like so-

<telerik:

RadComboBox ID="MyCombo" runat="server" EnableLoadOnDemand="true" OnItemsRequested="MyCombo_ItemsRequested" Width="160"  SelectedValue='<%# Bind("myvalue") %>'></telerik:RadComboBox>

Everything works great until I do some client side validation.  I'm not doing anything fancy, I stripped everything down so there is just one required field validator, and a validation summary control.  Once the validation messagebox comes up, the ItemsRequested event no longer fires.  Any ideas?

11 Answers, 1 is accepted

Sort by
0
Collin
Top achievements
Rank 1
answered on 15 May 2008, 05:53 PM
Nobody?
0
Veselin Vasilev
Telerik team
answered on 16 May 2008, 03:07 PM
Hello Collin,

Can you isolate the problem in a small project and send it to us in a new support thread please?

Thanks

Greetings,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Collin
Top achievements
Rank 1
answered on 20 May 2008, 02:41 PM
I removed the validation summary, and the client side validators will work without killing the itemrequested method on the radcombo up until I actually click the update or insert button in my RadGrid (I'm in Editform mode, using a table with a few controls added (1 RadCombo, a few textboxes, and 1 drop down).  It looks like when you click the update button the itemsrequested method on the Radgrid dies.  Maybe even though all the validation is on the client side, there is still a small trip to the server made somehow? And that kills the event?

I'll post some sample code if I get some time, but I'm under the gun so I don't know when I'll be able to. The error should be replicatable with a RadCombobox using itemsrequested and a validator.
0
Veselin Vasilev
Telerik team
answered on 23 May 2008, 08:54 AM
Hello Collin,

I used the project attached in this KB: (ID#620) Using RadComboBox with AutoComplete as a custom editor in RadGrid and added a RequiredFieldValidator and a ValidationSummary, but the load on demand was working fine.

Let me know if you can reproduce the problem on that project.

Greetings,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Thomas Hundley
Top achievements
Rank 1
answered on 13 Jun 2008, 11:09 PM
Hi.  I've got a very similar problem.

I have a radGrid with an editFormTemplate.  I have a radComboBox and a few normal text boxes and a required field validator on one of the text boxes.  When I click the update/insert button on the editForm and the required field validator fires, the radComboBox no longer opens.

Please advise.

Thanks!
Tom
0
Veselin Vasilev
Telerik team
answered on 16 Jun 2008, 08:32 AM
Hello Thomas,

Can you send me a sample project please? You can open a new support ticket and attach the zip file there.

Thanks

Best wishes,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Thomas Hundley
Top achievements
Rank 1
answered on 16 Jun 2008, 02:24 PM
Hi Visconi.  I actually started a new thread and opened a ticket for this problem.  The ticket is 144154 and I attached a project with it.

Thanks for the quick response.
Tom
0
Veselin Vasilev
Telerik team
answered on 17 Jun 2008, 06:46 AM
Hello Thomas,

Thank you for the attached project.

We already fixed the problem and you can download the fix from the support ticket.

Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jason Maronge
Top achievements
Rank 1
answered on 14 Jul 2008, 08:22 PM
I am having a similar issue with the Q1 2008 SP2 version.  I have a grid with a WebUserControl edit form that contains radComboBoxes and custom validators along with a summary validation control.  When I goto add a new item or edit an item I get a JS error which stops everything from working.  The culprit seems to be:

<SCRIPT type=text/javascript> 
document.getElementById('EditFormControl_vs1').dispose = function() { 
    Array.remove(Page_ValidationSummaries, document.getElementById('EditFormControl_vs1')); 
</SCRIPT>" 

When I enable script debugging and it breaks it is trying to append this element to the HEAD of the document and it says that document.getElementById is null

I have reverted back to sp1 of the controls to test and everything works fine.  Has anyone else had an issue with validation summaries in SP2?

Jason
0
Veselin Vasilev
Telerik team
answered on 17 Jul 2008, 03:26 PM
Hi Jason,

Have you tried with the latest version (Futures build)?

If you experience the problem with that version too - please isolate the problem in a small project and send it to us.

Thanks

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Efrén
Top achievements
Rank 1
answered on 18 Jul 2008, 01:23 PM
Hello, I have the same behavior that Tomas, I have a radGrid with GridDropDownColumn and GridNumericColumn.  The gridNumericColumn is below radComboBox and a required field validator on this text box was added with ItemCreated event, radComboBox doesn't have validators.  When I click the update/insert button on the editForm and the required field validator fires, the radComboBox no longer opens, but I can select item on radComboBox with up and down keyboard, I can select items in radComboBox but items no longer show.
Thanks
Tags
ComboBox
Asked by
Collin
Top achievements
Rank 1
Answers by
Collin
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Thomas Hundley
Top achievements
Rank 1
Jason Maronge
Top achievements
Rank 1
Efrén
Top achievements
Rank 1
Share this question
or