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

RadGrid with NestesTamlet

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boyan
Top achievements
Rank 1
Boyan asked on 28 Oct 2010, 09:05 AM
Hi

My question is about RadGrid with NestedViewTemplate.

I Master Table I catch ItemCommand event, but when I'm in a NestedView, where I have another Grid, when I make Update/Insert, program gous through ItemCommand Event with I bind in MasterTable of the mother Grid. How to distinguish, understand who is the invoker - Mester Table Grid or Nested Grid or maybe there is a chance program not to fire Master Table ItemCommand ?

Thank for effort answer me

Best Regard

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 29 Oct 2010, 12:54 PM
Hi Boyan,

You could try setting the Name property of the MasterTableView:
<MasterTableView DataSourceID="SqlDataSource1" Name="Master" DataKeyNames="EmployeeID" AllowMultiColumnSorting="True" GroupLoadMode="Server">

Then into the RadGrid.ItemCommand you could check if the command is fired from the item which belong to this GridTableView:
if(e.Item.OwnerTableView.Name ==  "Master")
{
    // the item belongs to the master GridTableView
}

Please give it try and let me know if it helps you.

Regards,
Radoslav
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
Tags
Grid
Asked by
Boyan
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or