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

RadCombobox items lost after postback

1 Answer 135 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Tomas
Top achievements
Rank 1
Tomas asked on 06 Jun 2013, 03:59 PM
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)
http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-items-disappearing-after-postback.aspx

"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.

1 Answer, 1 is accepted

Sort by
0
msigman
Top achievements
Rank 2
answered on 10 Jun 2013, 06:34 PM
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.
Tags
Ajax
Asked by
Tomas
Top achievements
Rank 1
Answers by
msigman
Top achievements
Rank 2
Share this question
or