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

Upgrade Issue RadGrid _updateFilterControlValue

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dennis Sebenick
Top achievements
Rank 1
Dennis Sebenick asked on 02 Jan 2014, 10:24 PM
Hi there,
   After I upgrade my project from 2012.3.1016.40 to  2013.3.1114.40 I receive a javascript error.

JavaScript runtime error: Unable to get property 'getElementsByTagName' of undefined or null reference

   This occurs with the call _updateFilterControlValue.  Below is the code we use to filter the grid.  It doesn't seem to matter if it's Firefox, IE, or Chrome.  The error still occurs.

       

var filterExpression = new Telerik.Web.UI.GridFilterExpression();

var filterFunction = Telerik.Web.UI.GridFilterFunction.EqualTo;

filterExpression.set_fieldName("iExpertID");

filterExpression.set_fieldValue(iExpertID);

filterExpression.set_filterFunction(filterFunction);

filterExpression.set_columnUniqueName("iExpertID");

grid.get_masterTableView()._updateFilterControlValue(iExpertID, "iExpertID", filterFunction);

grid.get_masterTableView()._filterExpressions.clear();

grid.get_masterTableView()._filterExpressions.add(filterExpression);

grid.get_masterTableView().set_pageSize(10);

grid.get_masterTableView().rebind();

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 07 Jan 2014, 11:59 AM
Hello Dennis,

I tried to replicate the js error on my end as created a sample project using the script from your post. However, when execute the script, I can not observe any js error on my end. Please review the project and let me know what I am missing in replicating the problem.

Regards,
Milena
Telerik
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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Dennis Sebenick
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or