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

RadClientDataSource, checkboxes and value on server

1 Answer 33 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 01 Sep 2016, 11:58 AM

Hi,

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.

Regards

Jon

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 06 Sep 2016, 07:30 AM
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.

Regards,
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.
Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or