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

Click on Document Manager gives me Error No property or field 'FilterExpression' exists in type 'DataRowView'

7 Answers 510 Views
Editor
This is a migrated thread and some comments may be shown as answers.
amit
Top achievements
Rank 1
amit asked on 17 Aug 2011, 09:28 PM
 


No property or field 'FilterExpression' exists in type 'DataRowView'

No property or field 'FilterExpression' exists in type 'DataRowView'

 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Telerik.Web.UI.ParseException: No property or field 'FilterExpression' exists in type 'DataRowView'

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ParseException: No property or field 'FilterExpression' exists in type 'DataRowView']
   Telerik.Web.UI.ExpressionParser.ParseMemberAccess(Type type, Expression instance) +957
   Telerik.Web.UI.ExpressionParser.ParseIdentifier() +385
   Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +31
   Telerik.Web.UI.ExpressionParser.ParsePrimary() +14
   Telerik.Web.UI.ExpressionParser.ParseUnary() +262
   Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +26
   Telerik.Web.UI.ExpressionParser.ParseAdditive() +29
   Telerik.Web.UI.ExpressionParser.ParseComparison() +29
   Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +26
   Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +26
   Telerik.Web.UI.ExpressionParser.ParseExpression() +23
   Telerik.Web.UI.ExpressionParser.Parse(Type resultType) +24
   Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values) +47
   Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values) +65
   Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values) +62
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +2325
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +779
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +35
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +24
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +208
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +71
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +103
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +163
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +33
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   Telerik.Web.UI.GridTableView.PerformSelect() +16
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.GridTableView.DataBind() +260
   Telerik.Web.UI.RadGrid.DataBind() +87
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2435
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +130
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean 

7 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 22 Aug 2011, 03:35 PM
Hi Amit,

RadEditor's file browsing dialogs are using RadFileExplorer, which is using RadGrid. RadGrid is using two formats of FilterExpressions: SQL for .NET 2.0 and if EnableLinqExpressions is false and LINQ for .NET 3.5 and EnableLinqExpressions is set to true (default). Generally the grid LINQ expressions are almost exactly the same to the normal code (C#/VB.NET).

Are you using a custom filebrowser content provider and / or custom resource provider? If so, could you try disable them and see if the problem still occurs? If so, could you please provide more detailed information on the specific scenario?
  • Which version of RadControls for ASP.NET AJAX and .NET Framework are used in the application?
  • Could you please provide a simple fully runnable project reproducing the problem so we can investigate it further?

In addition, could you please try to set the EnableLinqExpressions of the RadGrid component to false to see if the problem still exists? In order to achieve this you need to modify the built-in FileBrowser.ascx dialog. In the attached project you can find a sample page with this modification applied.

Regards,
Dobromir
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 >>

0
spt
Top achievements
Rank 1
answered on 06 Nov 2012, 03:12 PM
I have the same problem.
Clicking any icon related to Managers dialogs (ImageManager, FlashManager, DocumnetManager, TemplateManager) cause this error.

I tried to apply your solution modyfing built-in FileBrowser.ascx.
It helps for all dialogs except the ImageManager.
In the ImageManager dialog I got the following error:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 8:          {
Line 10: 	            rfe.Grid.EnableLinqExpressions = false;
Line 11:         }  
Line 12:     }  

Source File: [.....]\EditorDialogs\WebUserControl1.ascx    Line: 10

Please advice.
0
Dobromir
Telerik team
answered on 07 Nov 2012, 09:42 AM
Hi Igor,

RadEditor's ImageManager dialog have set Thumbnails view set as default view for the FileBrowser and Grid component is not available. To avoid this problem you should check if rfe.Grid property is not null before assigning a value to any of its properties, e.g.:
if(rfe.Grid != null)
    rfe.Grid.EnableLinqExpressions = false;


Regards,
Dobromir
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
spt
Top achievements
Rank 1
answered on 07 Nov 2012, 09:48 AM
I did this.
In this case I got the same 


No property or field 'FilterExpression' exists in type 'DataRowView' 

error
0
Dobromir
Telerik team
answered on 08 Nov 2012, 12:05 PM
Hi Igor,

Could you please open formal support ticket and provide sample fully runnable project reproducing the issue so we can examine and debug it locally?

All the best,
Dobromir
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
spt
Top achievements
Rank 1
answered on 12 Nov 2012, 12:04 PM
I have found a reason of this error. The problem was in using of our custom Resource Provider.
In our web.config  it is defined as

 <globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="OurResourceProviderFactory, ..." />

I tried to specify ExternalDialogsPath and LocalizationPath in RadEditor but it didn't help for ImageManager.
I solved the problem by changing our ResourceProviderFactory class:

  public override IResourceProvider CreateGlobalResourceProvider(string classKey)
        {
            if (classKey.Substring(0, 3) == "Rad") // RadGrid.Main, RadEditor.Dialog e.t.c
                return null;
            else
                return new OurResourceProvider(classKey);
        }
0
Abbas
Top achievements
Rank 1
answered on 14 May 2014, 10:02 AM
thanks spt. i using of my custom resource provider.
you saved my time.
Tags
Editor
Asked by
amit
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
spt
Top achievements
Rank 1
Abbas
Top achievements
Rank 1
Share this question
or