Hi Support,
I was wondering if it was possible to set the ToolTipExtender text programatically for a specific control?
I create some controls dynamically and I can set the ToolTipText property fine, but I don’t seem to have control over the position.
I want all the ToolTips for these specific controls to appear TopCentre.
Alternatively I could create a List of ToolTips and store on the Page and this way I would have access to the Alignment property but I thought Id ask if it was possible first.
var radioToolTip= new ToolTip();
radioToolTip.Alignment = Placement.TopCenter;
radioToolTip.SetToolTip(radioItem, zoneItem.Text);
_radioToolTips.Add(radioToolTip);
Thanks,
Brayden
Hi Brayden,
Yes you can add Tooltip programatically the simple way is currentControl.ToolTipText = "Tooltip text";
and position will bw automaric with the free space
Or you can use :
var radioToolTip= new ToolTip();
radioToolTip.Alignment = Placement.TopCenter;
radioToolTip.SetToolTip(radioItem, zoneItem.Text);
radioToolTip.SetToolTip(
currentControl
,”Tooltip text”);
Best,
Kevin(ITG)
Please login first to submit.