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

SelfHierarchySettings is not working in Rad Grid version 2008.2.1001.20

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit Mondal
Top achievements
Rank 1
Amit Mondal asked on 27 Jan 2009, 07:18 AM
Hi,
 We are moving our project using above version(2008.2.1001.20) rad controls.
1) In the case of Rad Grid, the "Telerik.WebControls.RadGrid" is working fine with self Hierarchy settings. It is clearly showing  parent and child relationship.
2) But if we use the above version Rad Grid, it is not showing the self Hierarchy properly.
3) Whenever we add new child record for a parent, it's showing separate record in the Grid.
4)Also we are using MasterTableView  filter expression as  follows in the "Telerik.WebControls.RadGrid" Version RadGrid.
 RadGrid1.MasterTableView.FilterExpression = "ParentID='  ' "; ( in page load event).
5) If we are moving same code to above version Rad Grid, Self Hierarchy settings   is not working properly.

Can someone help me with this ASAP as this is an urgent requirement?

Regards
Amit Mondal.






1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 29 Jan 2009, 05:40 PM
Hi Amit,

I provided an answer to your question in the support ticket opened on this matter.

Here is quotation of what I wrote there:

I believe that the problem is occurring because there is a difference between RadControls for .NET 2.0 and .NET 3.5. The difference is that in the .NET 3.5 build of RadControls for ASP.NET AJAX Linq expressions are used to build the FilterExpression. You can refer to this online demo for more information.
Please note that the 'it["ReportsTo"]' is row in DataTable. When an ObjectDataSource is used, you have to change it to 'it.ReportsTo'. In your case I suppose you need to change the check you make in PageLoad to 'it.ParentID == \" \" '.

For further information you can review
this online topic.

Kind regards,
Georgi Krustev
the Telerik team

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