I have two columns in my RadGrid: 'ProductId' and 'CatalogId'. In ItemDataBound event, I am binding tooltip to CatalogId column. Below is code snippet:
I want to disable the CatalogId tooltip in this event. And if 'ProductId' is selected as visible column, tooltip must be enabled.
if (e.Item is GridDataItem)
{
GridDataItem gridItem = e.Item as GridDataItem;
if (!rdgrdGeneralInfo.MasterTableView.GetColumn("ProductId").Display)
{
foreach (GridColumn column in rdgrdGeneralInfo.MasterTableView.RenderColumns)
{
if (column is GridBoundColumn)
{
if (column.UniqueName == "CatalogId")
{
gridItem[column.UniqueName].ToolTip = "ProductID: " + "XYZ";
}
}
}
}
}
When I hide the 'ProductId' column through HeaderContextMenu of RadGrid the below client side event gets triggered:
function rdgrdGeneralInfo_OnColumnHiding(sender, args) {
}
I want to disable the CatalogId tooltip in this event. And if 'ProductId' is selected as visible column, tooltip must be enabled.