Hi,
While checking the RadGrid Context menu, i have a scenario wherein
i show different context menu, based on the click in a cell. based on its content.
So if is a Address which is in Address column, i give a link to Google maps and so on.
The problem is i allow to hide columns. When a column is hidden, the column number i get is as per what is displayed, rather than the virtual column number(which would factor in the hidden columns).
How can i get around this.
Regards,
Santosh
While checking the RadGrid Context menu, i have a scenario wherein
i show different context menu, based on the click in a cell. based on its content.
So if is a Address which is in Address column, i give a link to Google maps and so on.
The problem is i allow to hide columns. When a column is hidden, the column number i get is as per what is displayed, rather than the virtual column number(which would factor in the hidden columns).
How can i get around this.
function
RowContextMenu(sender, eventArgs)
{
var cellIndex = eventArgs.get_domEvent().target.cellIndex;
var colName = eventArgs.get_tableView().get_columns()[cellIndex].get_uniqueName();
So in the above i get the physical cell index rather than the one which factors that there are hidden columns before that. Is there anyway around this.
Regards,
Santosh