Hi,
I have two RadGrids. Grid1 is populated with fields and has edit column. On row click of Grid1 i have to populate fileds for Grid2. Everything is going fine. But the problem is on edit (command column) column click control was not directed to edit form but it was directed to rowclick event.
When i click on edit it should be directed to edit form and when i click on other columns Grid2 should populate. Any one give me an idea please.
On row click i am writing this event :
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "RowClick" && e.Item is GridDataItem && i == 1)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
int workFlowStepId = Convert.ToInt32(editedItem.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["WorkFlowStepId"]);
RadGrid2.Visible = true;
RadGrid2.DataSource = WorkFlowProxy.GetWorkFlowStepDeliverables(workFlowStepId);
RadGrid2.DataBind();
}
}
Thanks
Nagarjun S.