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

Nesting Filterdescriptor for GridData

2 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Iwan van Ee
Top achievements
Rank 1
Iwan van Ee asked on 14 Apr 2011, 11:04 AM

Lets Say I have 3 tables. Table A (with Objects) Table B (With Objects) and a LINK table (with two fields for linking both tables).

I have a method like this:


public IQueryable<A> GetAWithB()
{
  return ObjectContext.A.Include("LINK_A_B.B").OrderBy(A => A.Name);
}


All objects have the [include] tags:

For Object A and B:


[Include]
      public EntityCollection<LINK_Folder_Tagnumber> LINK_Folder_Tagnumber { get; set; }
[Include]
 public EntityCollection<LINK_A_B> LINK_A_B { get; set; }


And for the LINK Table 


[Include]
public A A { get; set; }
 
[Include]
public B B { get; set; }


In a page I have a grid bound to the GetAWithB which show objects A. And what I'd like to do is bind a text box to a property of object B. So that the user is able to see all Objects A wich a relation to Object B that contains a text in the B.Name property.

So I was thinking this should work like this:


<riaControls:FilterDescriptor
   PropertyPath="LINK_A_B.B.Name"
  Operator="Contains"
    Value="{Binding ElementName=tbName, Path=Text}">
</riaControls:FilterDescriptor>

But the PropertyPath seems not to be the correct one...any ideas?

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 18 Apr 2011, 10:06 AM
Hello Iwan van Ee,

How is your question related to Telerik controls?

Greetings,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Iwan van Ee
Top achievements
Rank 1
answered on 18 Apr 2011, 10:13 AM
I thought it was do-able with the RadGrid. But sorry it was an issue related to Binding and filtering and not related to the grid at all. I already have the answer btw. 
Tags
GridView
Asked by
Iwan van Ee
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Iwan van Ee
Top achievements
Rank 1
Share this question
or