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

Different filters for MasterView and DetailView in RadGrid

3 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 17 Jul 2014, 11:55 AM
Hello,

I am currently working on a project with a RadGrid that has a DetailView.

I need to do only a custom filter on the MasterTableView,
I need to do only a default RadGrid filter on the DetailView.

 
Thanks,

Daniel

3 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 17 Jul 2014, 11:59 AM
How can I differentiate between them ?
0
Accepted
Princy
Top achievements
Rank 2
answered on 17 Jul 2014, 12:30 PM
Hi Daniel,

I'm not clear about your requirement. If you want to identify between MasterTable and DetailTable view, you can use the Name property which helps to identify different tables.

C#:
if(e.Item.OwnerTableView.Name == "TableName")

Thanks,
Princy
0
Daniel
Top achievements
Rank 1
answered on 17 Jul 2014, 01:15 PM
Hi Princy,

I added this code:

RadGrid1.MasterTableView.Name = "MasterTableView"

and it works!

Thank you very much,
Daniel.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or