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

Problem filtering template column

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 26 Aug 2011, 09:56 AM
Hello,
I have a template column which contains a lookup label. Label takes text from dictionary by ID contained in column. Column also has a templated filter which contains a combobox. When I select new item from dropdown, filter command fires and column must be filtered by combobox's ItemValue which is GUID. I  must say there is an extension method in my solution called ToGuid() which I use to convert string values. And now, when filtering command passes to server, I get the following error:

Sys.WebForms.PageRequestManagerServerErrorException: No applicable method 'ToGuid' exists in type 'Convert' (at index 9) в Telerik.Web.UI.ExpressionParser.ParseMemberAccess(Type type, Expression instance) в Telerik.Web.UI.ExpressionParser.ParseTypeAccess(Type type) в Telerik.Web.UI.ExpressionParser.ParseIdentifier() в Telerik.Web.UI.ExpressionParser.ParsePrimary() в Telerik.Web.UI.ExpressionParser.ParseUnary() в Telerik.Web.UI.ExpressionParser.ParseMultiplicative() в Telerik.Web.UI.ExpressionParser.ParseAdditive() в Telerik.Web.UI.ExpressionParser.ParseComparison() в Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() в Telerik.Web.UI.ExpressionParser.ParseLogicalOr() в Telerik.Web.UI.ExpressionParser.ParseExpression() в Telerik.Web.UI.ExpressionParser.ParseParenExpression() в Telerik.Web.UI.ExpressionParser.ParsePrimary() в Telerik.Web.UI.ExpressionParser.ParseUnary() в Telerik.Web.UI.ExpressionParser.ParseMultiplicative() в Telerik.Web.UI.ExpressionParser.ParseAdditive() в Telerik.Web.UI.ExpressionParser.ParseComparison() в Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() в Telerik.Web.UI.ExpressionParser.ParseLogicalOr() в Telerik.Web.UI.ExpressionParser.ParseExpression() в Telerik.Web.UI.ExpressionParser.Parse(Type resultType) в Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values) в Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() в Telerik.Web.UI.GridDataTableFromEnumerable.FillData() в Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() в Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) в Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) в Telerik.Web.UI.GridTableView.get_ResolvedDataSource() в Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) в System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) в System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) в Telerik.Web.UI.GridTableView.PerformSelect() в Telerik.Web.UI.GridTableView.DataBind() в Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) в System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) в Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) в System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) в Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) в Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) в System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I'm not sure whether this is an error in your code or mine or whatever else. Can you please check this out?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 31 Aug 2011, 07:47 AM
Hello Dmitry,

Try turning AJAX temporarily off and you will get the exception to fire in code, so you can see where exactly it happens and why the method does not get called properly. In other words, the PageRequestManagerServerErrorException is a server exception wrapped by ajax coming as a client error. When you get it to fire in code, you will be able to debug it and see its cause.

I assume the problem indeed comes from your custom code but if you cannot track it down, you could post your grid declaration and the problematic part of code here for us to take a look at.

Best wishes,
Tsvetina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or