Supertooltip on specific column of GGC

Hello

I want to supertoolstrip shows only when the mouse in hover\enter on cells of specific column not every col

what's the solution ?

thanks


3 Replies

JJ Jisha Joy Syncfusion Team July 31, 2008 10:56 AM UTC

Hi Reza,

Thank you for your interest in Syncfusion Products.

Supertooltip for one Column

This can be achieved by handling the TableControl.ActivateToolTip event of GridGroupingControl and set the Tooltip to the specified column.

Please refer the code:



[c#]

this.gridGroupingControl1.TableControl.ActivateToolTip += new GridActivateToolTipEventHandler(TableControl_ActivateToolTip);

private SuperToolTip sToolTip;

void TableControl_ActivateToolTip(object sender, GridActivateToolTipEventArgs e)
{
if (e.ColIndex == 1)
{
e.Cancel = true;
ToolTipInfo tipInfo = new ToolTipInfo();
tipInfo.BackColor = Color.Red;
tipInfo.Body.Text = e.Style.Text;
sToolTip.Show(tipInfo, MousePosition);

}
else
{
sToolTip.Hide();
}

}



Please refer the sample:

http://www.syncfusion.com/support/user/uploads/GGC_SuperToolTip_38dfc905.zip


Please let me know if this helps.

Regards,
Jisha




RF reza fotovat July 31, 2008 05:50 PM UTC

Hi,

thanks for your solution, it works great.

how about the image cols? is it possible to update the tooltipinfo.body.image from a image col of ggc ? (like the text you did it?

reards




JJ Jisha Joy Syncfusion Team August 5, 2008 06:15 AM UTC


Hi Hari,

Please refer the modified sample as per your requirement:

http://www.syncfusion.com/support/user/uploads/GGC_SuperToolTip_70ec9563.zip

Please refer the sample and let me know if this helps.

Regards,
Jisha



Loader.
Up arrow icon