hi,
I am using a radtooltip to make a dynamic tutorial.
To be able to move the tutorial around I had to put it as relative to the BrowserWindow.
Then I can change the offsets.
The reason I am doing this is because I cannot attach the tutorial to anything because I am using a canvas to draw things.
And the tutorial is pointing to those drawings on the canva.
If I attach the tutorial to the canvas, it will just display on the side of the canvas, no near the controls.
My problem with this is that I lose the small arrow on the side of the tutorial window.
And I would like to have it back.
Am I doing things right and there is no way to get the small arrow to show?
Or is there an other way to do what I want that would restore the arrow ?
This is my code for the tooltip:
With the following javascript to control it:
I am using a radtooltip to make a dynamic tutorial.
To be able to move the tutorial around I had to put it as relative to the BrowserWindow.
Then I can change the offsets.
The reason I am doing this is because I cannot attach the tutorial to anything because I am using a canvas to draw things.
And the tutorial is pointing to those drawings on the canva.
If I attach the tutorial to the canvas, it will just display on the side of the canvas, no near the controls.
My problem with this is that I lose the small arrow on the side of the tutorial window.
And I would like to have it back.
Am I doing things right and there is no way to get the small arrow to show?
Or is there an other way to do what I want that would restore the arrow ?
This is my code for the tooltip:
<telerik:RadToolTip runat="server" ID="RadToolTip3" Position="Center" Width="300px" Height="70px" Animation="Fade" ShowEvent="FromCode" HideEvent="FromCode" ShowDelay="0" RelativeTo="BrowserWindow" OnClientBeforeShow="PreTooltipShow" OffsetX="0" OffsetY="0"> <div style="display: table;"> <div style="display: table-row;"> <div style="display: table-cell; vertical-align: middle; padding-top: 10px; padding-left: 10px; padding-bottom: 5px; padding-right: 10px;"> <asp:Label ID="Lbl_Tutorial" runat="server" Text="This is a test" /> </div> </div> <div style="display: table-row;"> <div style="display: table-cell; vertical-align: middle; text-align:right; padding-top: 10px; padding-left: 10px; padding-bottom: 5px; padding-right: 10px;"> <telerik:RadButton ID="RdBttn_NextTutorial" runat="server" Text="Next" AutoPostBack="false" OnClientClicked="OnNextTutorial"> </telerik:RadButton> </div> </div> </div></telerik:RadToolTip>With the following javascript to control it:
function PreTooltipShow() { PageMethods.PreTooltipShow(PreTooltipShowCompleted);}function PreTooltipShowCompleted(pResult) { var tooltip = $find('RadToolTip3'); if (pResult.length > 0) { tooltip.set_offsetX(parseInt(pResult[0])); tooltip.set_offsetY(parseInt(pResult[1])); tooltip.updateLocation(); var label = document.getElementById('<%=Lbl_Tutorial.ClientID %>'); label.innerHTML = pResult[2]; var button = $find('RdBttn_NextTutorial'); button.set_text(pResult[3]); } else { tooltip.hide(); }}function OnNextTutorial() { var button = $find('RdBttn_NextTutorial'); PageMethods.OnNextTutorial(PreTooltipShowCompleted);}