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

ComboBox checkitems as asp control parameter

1 Answer 136 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
zx10r
Top achievements
Rank 1
zx10r asked on 08 Apr 2017, 09:40 PM

Is there a way to specify a property from the combo box setup with check items to be passed to a control parameter property?

<asp:ControlParameter ControlID="cmbProviderSort" DbType="Int32" ConvertEmptyStringToNull="true" DefaultValue="-1" PropertyName="SelectedValue" Name="a" />

 

PropertyName is set as SelectedValue which will only work with a non checkbox combo box. What is the best approach to be able to send in all checked items into the asp:ControlParameter.

 

I have to use the DataSource setup in this way and cannot do it in the code behind. Thanks

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 12 Apr 2017, 06:52 AM
Hi,

You can try using the Text property, which will return all checked item contents separated by commas, as displayed in the combo itself.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ComboBox
Asked by
zx10r
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or