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

Uneditable KendoMultiselect

5 Answers 642 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 13 Aug 2014, 01:38 PM
Hello,

i would like to use multiselect only for selecting multiple items but not add/edit. So i do not Need it editable. can i achieve that? If i make it readonly then i cannot select item even. please suggest what to do.

Thanks

Anamika

5 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 15 Aug 2014, 08:44 AM
Hi Anamika,

The MultiSelect widget does not support adding or editing, only selecting items from a predefined list, so I am not sure I understand you correctly. Would please clarify what is the expected behavior in your case?

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Anamika
Top achievements
Rank 1
answered on 18 Aug 2014, 06:25 AM
Hello,

Sorry not adding editing but multiselect has user Input Option for filtering. So when we click multselect we can type in and then the data gets filtered and displayed. I do not want that Feature as in mobile devices the Focus goes there and the Keyboard Pops up always making it hard to use. I would like to have no user Input

Thanks

Anamika
0
Alexander Popov
Telerik team
answered on 20 Aug 2014, 06:44 AM
Hello again Anamika,

Although this scenario is not supported out of the box it could be achieved using a custom solution. For example:
  • Initialize the widget as usual
  • Get the widget's instance and add a "readonly" attribute to its input element: 
    var ms = $("#multiselect").kendoMultiSelect().data("kendoMultiSelect");
    ms.input.attr("readonly", "readonly");


Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Anamika
Top achievements
Rank 1
answered on 20 Aug 2014, 07:15 AM
Hello,

I have tried this solution in document load. But then it just works fine first time. the Moment multiselect gets Focus or i select something then again the caret is blinking and in mobile devices you can see a small White space and the Keyboard Pops up. this is really annoying. Where can i set readonly just once and it should just work always. There should be just one property provided by telerik to set it off to make life easier.

Anamika
0
Alexander Popov
Telerik team
answered on 21 Aug 2014, 12:34 PM
Hello again Anamika,

I tried to reproduce the behavior you described using this example, but everything worked as expected both on mobile (Android and iOS) and desktop (Chrome, IE10).
Making only the MultiSelect's input read-only is currently not supported, so I would recommend submitting this idea on our feedback portal, where it could be publicly discussed and voted for. As you probably know, the most popular suggestions posted there are often implemented in future Kendo UI releases.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MultiSelect
Asked by
Anamika
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Anamika
Top achievements
Rank 1
Share this question
or