jQuery UI Widgets › Forums › Grid › Change default placeholder text in filter
Tagged: dropdownlist filter, jqxgrid
This topic contains 14 replies, has 5 voices, and was last updated by Dave_1 9 years, 5 months ago.
-
Author
-
Hi,
I have used row filter in grid, in that i have added “checkedList” filter in column.
It shows “Select Filter” as a placeholder by default, i want to change it to “Filter”,
How to change that place holder?Thanks & Regards,
SnehalHi Snehal,
You can change the default text of the filter in the jqxGrid by using localization. For more information please take a look at:http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-localization.htmBest Wishes,
MariyajQWidgets Team
http://www.jqwidgets.comHi Mariya,
Thank you, i have seen this example, but i am not getting exactly what to use for changing “Select Filter” placeholder of “checkedlist” filter type.
can you please help me?Thanks & Regards,
SnehalHi Snehal,
Please take a look at the help topic again. In order to change the placeholder by using localization, you have to change the ‘filterselectstring’.
Best Wishes,
MariyajQWidgets Team
http://www.jqwidgets.comThanks Mariya.
Hello,
I would like to know if it is possible to change the “Select Filter” text with the selected values from the list.
Can I do something like this ?Thank you!
Hey Alexandra,
For changing any String in jqxGrid, Look at: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-localization.htm
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHey,
I am not sure that you understood my question.
Please let me explain again.So, I have a grid with filters. For one column I have filtertype:’checkedlist’, like in this example : http://jsfiddle.net/Alegzandra/7apxG/2/
What I want is to change the text for the filter depending on the selected values in the list.
If I have only “app1” value checked I would like to be displayed the text “app1” instead of “Select Filter”.
If I check also “app2”, then the text would change to “app1, app2”.
Practically to act like a jqxDropDownList.
Is it possible?Hi Alexandra,
Sorry, but it is not possible to customize the DropDownList filter in that way.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Ok.
Thank you!
$(“#jqxgrid”).jqxGrid({ source: dataAdapter });
var localizationobj = {
filterselectstring: “Select Filter”
};// apply localization.
$(“#jqxgrid”).jqxGrid(‘localizestrings’, localizationobj);tell me where i am going wrong
Hello Dave_1,
Example: http://jsfiddle.net/jqwidgets/3k0d8dr2/
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Thnks for replying so fast..
but it doesn’t work when
filtertype: ‘list’Hello Dave_1,
In Filter Type – List – this is not the Localization item. There is no “Select Filter” string to be replaced there.
Example with additional Localization setting for replacing “Please Choose” string: http://jsfiddle.net/jqwidgets/4kbv3ooq/
I suggest you to look at the http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-localization.htm to learn how to Localize the widget.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/thanks for replying to kidish questions.. it works
-
AuthorPosts
You must be logged in to reply to this topic.