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

Tooltip manager: Set Modal and ManualClose by code

3 Answers 55 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Long
Top achievements
Rank 1
Long asked on 24 Dec 2008, 01:01 AM
Hello,
I have a grid with a tooltipmanager, when one mouse over a certain column of a row, the tooltip with detailed content of that row will show. I'm happy with that.
What I want to do is :
    *If one clicks the "Edit" button INSIDE the tooltip content, the tooltip becomes Modal and ManualClose=true;

Is it possible to do that?

Thanks in advance,
Long

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 26 Dec 2008, 01:13 PM
Hi Long,

I suggest to use jaavscript in order to set the desired configuration, e.g use code similar to teh following one:

  var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();  
               if(tooltip)  
               {  
        
                  tooltip.set_modal(true);  
                  tooltip.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.ManualClose);  
                  tooltip.hide();  
                  tooltip.show();  
               } 


Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Long
Top achievements
Rank 1
answered on 29 Dec 2008, 04:31 PM
Thanks, Svetlina ,
I didn't expect you guys working on Boxing day :-)

Is it possible to  do it server side?

Thanks in advance,

Long
0
Svetlina Anati
Telerik team
answered on 30 Dec 2008, 04:57 PM
Hello Long,

Basically, you can set the desired settings on the server as explained here and as shown below:

 RadToolTipManager1.Modal = true;  
 RadToolTipManager1.HideEvent = Telerik.Web.UI.ToolTipHideEvent.ManualClose; 


However, this approach is much more complicated than setting them on the client because in this case you should take care not only to set the desired configuration but to update the manager and updating the manager will cause the tooltip to close, so you should show it again after that. Since the RadControls provide the client-side and server-side API to change their configuration, it is up to you to choose how to implement your scenario and to take care of the general tasks. 

Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Long
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Long
Top achievements
Rank 1
Share this question
or