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

Exapand symbol is missing when edit/delete

2 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
koteswararao
Top achievements
Rank 1
koteswararao asked on 24 Jan 2012, 07:23 AM
hi,
Problem 1:

i have the 3 level hierarchical grid when i click on the main level row edit/delete command is happen the expand symbol is missing  for the entire grid but in the demo the symbol is reliable i want same functionality what are the steps i follow please tell me

problem 2:
i set the datakey field in mastertable view as like    <MasterTableView EditMode="InPlace" Name="product" DataKeyNames="PKProductID"> but in the code updatecommand i am unable to get the the name and also

editableItem.GetDataKeyValue("pkproductid") method throw error why?
how can i get the name of the table and datakey of the row

Thanks & Regards,
M.Koteswara Rao

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jan 2012, 08:34 AM
Hello,

Try the following code.
C#:
protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
{
 GridDataItem parentItem = e.Item.OwnerTableView.ParentItem;
 string val = parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["pkproductid"].ToString();
}

-Shinu.
0
koteswararao
Top achievements
Rank 1
answered on 24 Jan 2012, 10:23 AM
it is converted in vb and show the nothing

what about that expand symbols in left hand side
Tags
Grid
Asked by
koteswararao
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
koteswararao
Top achievements
Rank 1
Share this question
or