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

[Solved] SelfHierarchy RadGrid with LinqDataSource

3 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ivan Zlatanov
Top achievements
Rank 1
Ivan Zlatanov asked on 02 Aug 2009, 07:57 PM
Hi,


I am not sure about the status of what I am about to report, so I will write it for to be sure.

When using radGrid with the SelfHierarchy functionality and LinqDataSource , the default FilterExpression where I specify the default filter for the top parets isn't working correctly. My guess is that it is being applied to child items also.

I replaced the LinqDataSource with SqlDataSource, and it started working as expected - the filter was being applied only to the top master details view.

To replicate this use a LinqDataSource object with any type of select in it - it doesn't matter. Then set a filter - simple example "ParentId == null". It will load the parents correctly, but it will look for their childs wrong. I can also provide simple source code if it is needed to replicate the error.

Let me know about the status of this, because I would really not want to use SqlDataSource instead of LinqDataSource.

Best Regards,

Ivan.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Aug 2009, 06:15 PM
Hello Ivan,

I successfully recreated your scenario on my end. I will need some time to examine this behavior - I will write back to you as soon as I have more information.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Evgeni Belin
Top achievements
Rank 1
answered on 01 Sep 2009, 12:53 AM
Greetings,

Same problem here - I spent a day pulling hair out, suspecting I was doing something stupid.  Any news?
0
Daniel
Telerik team
answered on 03 Sep 2009, 03:23 PM
Hello Evgeni,

Unfortunately self-referencing hierarchy and LinqDataSource are not supported at this point. I added this task to our product backlog for future implementation.

Excuse us for the inconvenience.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ivan Zlatanov
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Evgeni Belin
Top achievements
Rank 1
Share this question
or