Keep all items and selected item on postback with webservice?

4 posts, 1 answers
  1. Alexandre
    Alexandre avatar
    13 posts
    Member since:
    Nov 2008

    Posted 12 Nov 2008 Link to this post

    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.
  2. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 13 Nov 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alexandre
    Alexandre avatar
    13 posts
    Member since:
    Nov 2008

    Posted 13 Nov 2008 Link to this post

    Awesome Telerik support team :)
  5. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 29 Sep 2009 Link to this post

    Thank you,

    Exactly what i'm looking for!!!
Back to Top