RadCombobox items lost after postback

2 posts, 0 answers
  1. Tomas
    Tomas avatar
    2 posts
    Member since:
    Aug 2012

    Posted 06 Jun 2013 Link to this post

    Hi, I am using load on demand with radcombobox. I have my OnItemsRequest handler and everything fine except for one little detail that I dont know how to overcome. When there is a postback to the server, the radcombobox items are lost which might make sense as they are kept in client side to improve performance, as it is stated here (from the following link)

    "Hi Rajeev,

    Is it possible that you are loading the items on demand (via callback, in the ItemsRequested event). If this is the case, then you should keep into account that the items added this way persist only at the client-side. This is done for a better performance. These items will disappear after postback. If you need the items to persist at the server, you need to add them outside the ItemsRequested event.  "

    I would like to know how I could persist these items so that after the postback they are still there.
  2. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 10 Jun 2013 Link to this post

    Hi Tomas,

    I'm afraid you would need to assign the DataSource and DataBind() your items manually if IsPostBack to achieve what you're after.
  3. DevCraft R3 2016 release webinar banner
Back to Top