RadClientDataSource, checkboxes and value on server

2 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 01 Sep 2016 Link to this post


    I'm not having much luck with things recently.  Everything I seem to be wanting to do comes out as a battle with work arounds galore.  Anyway the latest issue that hopefully someone can advise me on is that my combos are driven by a RadClientDataSource and I am having issues getting the value of checked items on the server.

    OK so I get that the items that were checked won't be available on a post back however surely it would be sensible that the combo retains the checked item ids or the selected item id on post back? Actually it does if you are not using checkboxes.  So why does the control have the functionality to remember what the selected value was but not the checked values?

    It appears that over the years quite a few people have had this issue and so far I can see that the solution is to add a hidden field then every change save the current checked values and finally get that when back on the server.  Not great.

    Hopefully I am completely wrong and there is a nice easy way to do this.  If not please please please make this an addition to the next version.  It isn't difficult to add it to the base control and would be a seriously helpful addition.



  2. Ivan Danchev
    Ivan Danchev avatar
    1301 posts

    Posted 06 Sep 2016 Link to this post

    Hello Jon,

    The ComboBox items not being accessible on the server is expected when binding to ClientDataSource, this limitation is by design. When using this type of binding the items are loaded and exist only on the client. As you have suggested saving the values of the checked items and accessing them on the server needs to be done manually using a HiddenField.

    Ivan Danchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top