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

[Solved] ItemsRequested not firing correctly

3 Answers 207 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Zach
Top achievements
Rank 1
Zach asked on 18 Aug 2009, 06:18 PM
I'm trying to use the ComboBox to allow a user to pick a shipping method based on their address.  I am populating the ComboBox's context with address information on the page using the OnClientItemsRequesting event, and then calling a server side OnItemsRequested event.  This works the first time, but has inconsistent behavior every time after that.  Since the user can change their address on the page, the shipping costs might need to be recalculated after the initial ItemsRequested event.  However, the event will not fire unless I select the text and clear it out.  I want the ItemsRequested event to fire every time the dropdown is opened (is caching possible in this situation in case they just want to change their shipping method without changing their address?).  Also, it would be great if the textbox could be disabled, since there is no real purpose for it.  I'll post a code example if necessary.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 21 Aug 2009, 08:03 AM
Hello Zach,

I hope this article will answer your questions:
AllowCustomText cannot be disabled when loading items on demand

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Larry
Top achievements
Rank 1
answered on 05 Nov 2009, 03:32 PM
I am experiencing the same problem with OnClientItemsRequesting only firing the first time.  I have cascading combo boxes

Event,
Program,
Year,
Track,
Session

Each field determines the values in the next combobox.   If I select all values and go back to a previous value to re-slect say a program OnClientItemsRequesting does not fire again to re-populate the dropdown.
0
Veselin Vasilev
Telerik team
answered on 09 Nov 2009, 03:14 PM
Hello Larry,

You might came across the issue described here.

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Zach
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Larry
Top achievements
Rank 1
Share this question
or