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

[Solved] Clicking filter icon throws javascript error

2 Answers 58 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.
Kyle Pike
Top achievements
Rank 1
Kyle Pike asked on 17 Mar 2010, 07:52 PM
Hi there

In my grids, when i click the filtering icon, it throws a javascript error

the only way to not get this error is to turn on scrollable()

browser: IE8

grid code:
<%  
       Html.Telerik().Grid<PitchView>()  
           .Name("PitchGrid")  
           .BindTo(Model)  
           .Filterable()  
           .Columns(columns => 
                        {  
                            columns.Bound(o => o.PitchId).Filterable(true).Title("ID");  
                            columns.Bound(o => o.AdvertiserName).Title("Advertiser");  
                            columns.Bound(o => o.BrandName).Title("Brand");  
                            columns.Bound(o => o.PitchName).Title("Pitch Name");  
                            columns.Bound(o => o.PitchDescription).Title("Description");  
                            columns.Bound(o => o.PitchStatus).Title("Status");  
                            columns.Bound(o => o.ConfidencePct).Format("{0:p}").Title("% Conf.");  
                            columns.Bound(o => o.SalesRepName).Title("Acct Rep");  
                            columns.Bound(o => o.PrimaryDeliveryManagerName).Title("Primary DM");  
                                                   })  
           .Sortable()  
           .Render();     
%> 

error thrown in jquery-1.4.2.min.js - "Invalid Argument" - line 116 of mined js file - bolded part is highlighted in visual studio

116: Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,  
 


again, this throws every time i click a filter icon. makes no difference if the column is set to filterable, numeric, text, doesn't matter. setting to scrollable is the only way i can fix it.

please help!

2 Answers, 1 is accepted

Sort by
0
Kyle Pike
Top achievements
Rank 1
answered on 17 Mar 2010, 08:01 PM
In chrome, it does not throw a javascript error, however every column's filter box shows up in the far left.
0
Atanas Korchev
Telerik team
answered on 18 Mar 2010, 08:44 AM
Hi Kyle Pike,

Can you reproduce this problem in any of our online demos? Filtering seems to be working in both Chrome and Internet Explorer.

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.
Tags
Grid
Asked by
Kyle Pike
Top achievements
Rank 1
Answers by
Kyle Pike
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or