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

Set Placeholder text in Grid MultiSelect

3 Answers 241 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ove Moland
Top achievements
Rank 1
Ove Moland asked on 07 Apr 2016, 12:41 PM

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?

 

3 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 08 Apr 2016, 06:02 AM
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
0
Ove Moland
Top achievements
Rank 1
answered on 08 Apr 2016, 07:23 AM

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.

 

0
Venelin
Telerik team
answered on 11 Apr 2016, 08:53 AM
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
Tags
Grid
Asked by
Ove Moland
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Ove Moland
Top achievements
Rank 1
Share this question
or