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

Self Referencing Hierarchy Not Working In New Version (Telerik.Web.UI.dll - 2008.2.1001.35)

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nanda
Top achievements
Rank 1
Nanda asked on 15 Jan 2009, 03:35 PM

Hi,

 

I have used Self Referencing Hierarchy successfully with Telerik.Web.UI.dll Version: 2008.2.723.20.

As my organization moved to dot net 3.5, I have tried using Telerik.Web.UI.dll Version:2008.2.1001.35. But I kept getting an error with the following line in Page_Load:

                RadGrid1.MasterTableView.FilterExpression = "ParentID = 0";

Error says: 

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

If I don't set the FilterExpression, Self Hierarchy doesn't work. Can someone help me with this ASAP as this is an urgent requirement?

Regards,
Nanda Kishore

 

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 16 Jan 2009, 11:41 AM
Hi Nanda,

With the .NET 3.5 build of RadGrid for ASP.NET AJAX and LINQ filter expressions enabled (EnableLinqExpressions = true), the filter expressions set for the grid either internally by its filtering mechanism or manually in code should conform to the LINQ expression syntax instead of the old T-SQL syntax. Only thus they will be evaluated properly by the control.

Thus the filtering expression should look similar to the following:
RadGrid1.MasterTableView.FilterExpression = @"it[""ParentID""] = 0"


Greetings,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Nanda
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or