How to retain value on the textbox filter?

4 posts, 0 answers
  1. Louise
    Louise avatar
    19 posts
    Member since:
    Nov 2014

    Posted 23 Apr 2017 Link to this post

        When typing on the textbox and then loosing focus, the value gets cleared. Is there a way to retain the text?
  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1882 posts

    Posted 24 Apr 2017 Link to this post

    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.
  3. Louise
    Louise avatar
    19 posts
    Member since:
    Nov 2014

    Posted 24 Apr 2017 in reply to Ivan Danchev Link to this post

    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
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1882 posts

    Posted 26 Apr 2017 Link to this post

    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.
Back to Top