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

MultiSelect with Checkbox

3 Answers 85 Views
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 08 Aug 2019, 08:56 AM

Hello All,

How can possible for adding checkbox in MultiSelect option ?

 if checked 1 item in MultiSelect then show item text but if more than one item is selected then I want to display the item count.

let me know if its possible.

Regards,

Rahul

 

3 Answers, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 1
answered on 08 Aug 2019, 09:15 AM
0
Nencho
Telerik team
answered on 12 Aug 2019, 08:36 AM
Hello Rahul,

Yes, you can achieve the desired functionality, using the templates of the MultiSelect. You can define both item-template and tag-template. The first will help you render the checkboxes and the second will help you in implementing the logic for the tagmode (single or multiple). Please check the sample example below, which demonstrated such implementation:

https://codesandbox.io/s/vue-template-ddl-ymh17

Also, note how the dataBound and change events of the widget are used, in order to achieve the correct behavior, when checking and unchecking items.


Regards,
Nencho
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Rahul
Top achievements
Rank 1
answered on 12 Aug 2019, 08:42 AM

Hello @Nencho

Now it's is fine for me.

Thank you very very much

Regards

Rahul

Asked by
Rahul
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or