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

[Solved] Bug in filtering with client mode

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
gamer
Top achievements
Rank 1
gamer asked on 29 Sep 2011, 08:53 AM

Hi.
When client operation mode enabled, string filtering by "Ends with" works only with 1 symbol strings.
There is bug in JS code in telerik.common.js:

endswith: function (selector, value) {
    return function (record) {
        var item = selector(record);
        return item.lastIndexOf(value) == item.length - 1;
    };
},

And must be

endswith: function (selector, value) {
    return function (record) {
        var item = selector(record);
        return item.lastIndexOf(value) == item.length - value.length;
    };
},

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 29 Sep 2011, 04:53 PM
Hi Gamer,

Thank you for reporting this. We were able to recreate the issue and the fix will be available with the next official version of the component. Meanwhile I have updated your telerik points.

Regards,
Rosen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
gamer
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or