Dear Team,
I have an assignment to check the rad grid cell and if the cell has expected value then assign a context menu to the cell. Can anyone help me with the following:
1) attach the context menu on required cells only
2) Create separate context menu object for every cell which qualify the cell.
C#:
Thanks and Regards,
- Yogesh
I have an assignment to check the rad grid cell and if the cell has expected value then assign a context menu to the cell. Can anyone help me with the following:
1) attach the context menu on required cells only
2) Create separate context menu object for every cell which qualify the cell.
C#:
RadContextMenu oRadContextMenu = (RadContextMenu)RadContextMenu;
ContextMenuControlTarget oMenuTarget =
new
ContextMenuControlTarget();
GridTableCell gtcPreviousCell = (GridTableCell)e.Item.Cells[(e.Item.Cells.GetCellIndex(radCell)) - 1];
if
(sColumnName == gtcPreviousCell.Column.UniqueName.ToString())
{
gtcPreviousCell.ID = sCellValue;
oMenuTarget.ControlID = gtcPreviousCell.ID;
oRadContextMenu.Targets.Add(oMenuTarget);
}
Thanks and Regards,
- Yogesh