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

Hide gridview tooltip with javascript

0 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Neeraj asked on 14 Dec 2011, 01:05 PM
I have two columns in my RadGrid: 'ProductId' and 'CatalogId'. In ItemDataBound event, I am binding tooltip to CatalogId column. Below is code snippet:
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.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Neeraj
Top achievements
Rank 1
Share this question
or