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

[Solved] Grid filter by dropdown out of order

5 Answers 178 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.
Sheryl Stoller
Top achievements
Rank 1
Sheryl Stoller asked on 12 Apr 2011, 07:26 PM
Hello,

By default my telerik grid filter is choosing "Ends With" when all examples show "Is Equal To" as the default.

Here is my grid:
<%= Html.Telerik().Grid(Model.myWorklistItems)
        .Name("Worklist")
        .Columns(columns =>
        {
            columns.Bound(o => o.SerialNumber).Title("").Format(Html.ActionLink("Edit", "Edit", new { id = "{0}" }).ToHtmlString()).Encoded(false).Width(60);         
            columns.Bound(o => o.RequestName).Width(100);
            columns.Bound(o => o.Status).Width(100);
            columns.Bound(o => o.RequestDate).Width(100);
            columns.Bound(o => o.FacilityName).Width(100);
            columns.Bound(o => o.FacilityID).Width(100);
             
          
             
        })
        .DataBinding(dataBinding => 
        {
            dataBinding.Server().Select("Index", "Home", true);
              
        })
        .Scrollable(scrolling => scrolling.Enabled(false))
        .Sortable(sorting => sorting.Enabled(true))
        .Pageable(paging => paging.Enabled(true))
        .Filterable(filtering => filtering.Enabled(true))
          
                
        .Footer(true)
%>

 

 

 

 

I understand that this is controlled in the telerik.grid.js file on my computer but that file has the correct order:

            filterStringEq: 'Is equal to',
            filterStringNe: 'Is not equal to',
            filterStringStartsWith: 'Starts with',
            filterStringSubstringOf: 'Contains',
            filterStringEndsWith: 'Ends with',

even in the .min.js it is correct: 

 

 

filterStringEq:

 

"Is equal to",filterStringNe:"Is not equal to",filterStringStartsWith:"Starts with",filterStringSubstringOf:"Contains",filterStringEndsWith:

 

"Ends with"

Please see the attached image - how is "Ends with" getting on top?

 

 

 

 

 

 

 

 

 

Inspecting the element in chrome it looks like it is ordering it this way:

<select class="t-filter-operator">
<option value="endswith">Ends with</option>
<option value="eq">Is equal to</option>
<option value="ne">Is not equal to</option>
<option value="startswith">Starts with</option>
<option value="substringof">Contains</option></select>

Is this an issue with MVC Q1 2011 version?

 

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 13 Apr 2011, 07:29 AM
Hello Sheryl Stoller,

 I couldn't reproduce this behavior in our online demos or in local tests. Is there a chance to send us a sample project which we can troubleshoot?

Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Mark
Top achievements
Rank 1
answered on 15 Jul 2011, 02:00 PM
I am having the same issue (identical to original poster), although it only appears to effect IE (IE 8 and 9). When I view a grid with a filter for a string field, it shows Ends With first (which is rarely what one would want to filter on). In Firefox, however, the filter's first option is "Starts With".

I am using MVC Extension Q2 (had the problem in Q1, also).
0
Atanas Korchev
Telerik team
answered on 18 Jul 2011, 11:58 AM
Hi Mark,

 We were able to reproduce the problem and fix it. The fix will appear in the next official release (and in the latest internal build for customers owning a commercial license).

Regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Sheryl Stoller
Top achievements
Rank 1
answered on 04 Aug 2011, 03:59 PM
ok - so i have Q2 and it's still happening. can you help me with a temporary workaround?
0
Rosen
Telerik team
answered on 05 Aug 2011, 09:02 AM
Hi Sheryl Stoller,

As mentioned by my colleague Atanas, this issue is still present  in the Q2 release, although only in some browsers. Therefore, you should download latest internal build or wait for the next official release.

Regards,
Rosen
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items

Tags
Grid
Asked by
Sheryl Stoller
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mark
Top achievements
Rank 1
Sheryl Stoller
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or