jQWidgets Forums

jQuery UI Widgets Forums Grid Problem with Filterrow and Localization

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 7 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Problem with Filterrow and Localization #97531

    Klaus H
    Participant

    Hi,

    I’m using JQWidgets 5.4.0 with a grid that has a filterrow. That works perfectly fine as always. Then I add german localization from your example and the filtering won’t work anymore. As soon as you enter something, all the rows disappear. When you delete the input, the rows stay gone.

    You can reproduce it by using the filterrow.htm example and adding two lines of code from the localization example:
    <script type=”text/javascript” src=”localization.js”></script>
    and
    localization: getLocalization(‘de’),

    If you do not use the filterrow and for example filtermode excel, then it works perfectly fine.

    Is this a bug or do I have to modify the localization.js file in order for the filtering to work? All the texts are there and I assume the algorithm does not depend on the language.

    Best Regards
    Klaus

    Problem with Filterrow and Localization #97533

    Klaus H
    Participant

    I guess I have found the problem, in the english version the default value of the filter is “contains” which is probably set somewhere in the code. With the german localization contains (= enthält) is not preselected but empty (= leer) as the first entry is selected. Is there any way I can influence this?

    Edit: If I use a checkedlist as a filter, it also does not work.

    Problem with Filterrow and Localization #97535

    Klaus H
    Participant

    Adding “filtercondition: ‘contains'” to each column gets rid of the problem, but I do not know why changing the language changes this behaviour.

    Problem with Filterrow and Localization #97570

    Hristo
    Participant

    Hello Klaus,

    Thank you for the interest and your assistance.
    I would like to suggest you look at this topic:
    https://www.jqwidgets.com/community/topic/default-filter-condition-in-grid-filter-dropdown/
    It could be helpful, it demonstrates how to use predefined settings for filtering.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.