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

How to retain value on the textbox filter?

3 Answers 201 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Louise
Top achievements
Rank 1
Louise asked on 23 Apr 2017, 11:52 PM
    When typing on the textbox and then loosing focus, the value gets cleared. Is there a way to retain the text?

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 24 Apr 2017, 05:49 AM
Hello Louise,

Here's a sample dojo, which shows how you can get the MultiSelect's input text in the widget's close event and set it after a small delay. The value must be set in the open event as well, because similarly to the close event when it fires the current text in the input gets cleared. 

Regards,
Ivan Danchev
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.
0
Louise
Top achievements
Rank 1
answered on 25 Apr 2017, 02:42 AM
The textbox gets cut-off when a long word is entered. like if I entered Banana, it would the textbox's width only shows up to Ban
0
Ivan Danchev
Telerik team
answered on 26 Apr 2017, 01:10 PM
Hello Louise,

You can change the input's default width with the following CSS rule:
.k-multiselect-wrap .k-input {
  width: 100% !important;
}


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