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

Keep all items and selected item on postback with webservice?

3 Answers 86 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 12 Nov 2008, 03:55 PM
Hello, i have a simple continents/countries (parent/child) combo box pattern loaded from web service.
When i click the save button the postback occur and the page re-show. The selected items are selected in each dropdown, but no other items are present.

I've decide to do it manualy in javascript with client event and api using event such has "OnClientLoad", "OnClientItemsRequested" and javascript code such has sender.findItemByValue(currentValue), trackChanges, requestItems, commitChanges.

Any simplest way to do this?

Let me know if you want me to provide de complete source code exemple.

3 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 13 Nov 2008, 04:04 PM
Hello Alexandre,

You can try calling the "trackChanges" method inside the ItemsRequesting client-event. Than call "commitChanges" in the ItemsRequested client-side event.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alexandre
Top achievements
Rank 1
answered on 13 Nov 2008, 04:47 PM
Awesome Telerik support team :)
0
Datamex
Top achievements
Rank 2
answered on 29 Sep 2009, 01:04 PM
Thank you,

Exactly what i'm looking for!!!
Tags
ComboBox
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Alexandre
Top achievements
Rank 1
Datamex
Top achievements
Rank 2
Share this question
or