Set Placeholder text in Grid MultiSelect

4 posts, 0 answers
  1. Ove Moland
    Ove Moland avatar
    2 posts
    Member since:
    Feb 2007

    Posted 07 Apr Link to this post

    Hi,

    I have a Telerik UI Grid with a filterable column set to Multi, and Search set to True. Default placeholder text is "search".

    How do I change this text?

     

  2. Venelin
    Admin
    Venelin avatar
    352 posts

    Posted 08 Apr Link to this post

    Hi Ove,

    You can achieve the desired functionality by subscribing to the FilterMenuInit event:

    .Events(e => e.FilterMenuInit("filterMenuInit"))

    and then providing this event handler:

    function filterMenuInit(e) {
        setTimeout(function () {
            e.container.find('.k-textbox input').attr('placeholder', 'Suche...')
        });
    }

    In yellow is the text that will be shown in the search input.

    Regards,
    Venelin
    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Ove Moland
    Ove Moland avatar
    2 posts
    Member since:
    Feb 2007

    Posted 08 Apr in reply to Venelin Link to this post

    Thanks Venelin,

    Will you consider updating the Api to make this task easier?

    eg.

    .Filterable(f => f.Multi(true).Search(true).Messages(m=> m.SearchPlaceholder ="search for ..."):

    (SearchPlaceholder is new)

    Also make the placeholder aware of localized kendo.messages.js modifications.

     

  5. Venelin
    Admin
    Venelin avatar
    352 posts

    Posted 11 Apr Link to this post

    Hello Ove,

    Thank you for your suggestions. You can share them in our feedback portal: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback so more people could see them. However I think the "SearchPlaceholder" idea and the search text localization are two separate things and should be in different items.

    Regards,
    Venelin
    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready