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

Trigger Ajaxupdate from javascript

2 Answers 62 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mooka
Top achievements
Rank 1
Mooka asked on 07 Jun 2011, 05:25 PM

Hello all,

I'm interested in displaying a dynamically loaded user control inside a RadToolTipManager using the AjaxUpdate method from javascript when using the onRowDblClick event of the RadGrid.

I've tried calling the following, which does open the tooltip, but does not call the ajaxupdate:

 function editRole(sender, eventArgs) {


                var tooltip = $find('<%= ttAddVariable.ClientID %>');

                setTimeout(function () {
                    tooltip.set_targetControlID(sender);
                    tooltip.show();
                }, 100);  
            }

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 09 Jun 2011, 03:29 PM

Hi Mooka,

You need to show the tooltip that corresponds to the appropriate row, not call the manager's show command. Doing so will automatically trigger the AjaxUpdate event. How to do that is exaplained in the following demo on the ToolTIpManager's client-side API: http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx. More information on how to pass the needed value to the user control is available in the following remo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx.

For your convenience I created and attached a simple page demonstrating this functionality. Here is a video with the expected behavior: http://screencast.com/t/Xbup6VYNpkZ.

I hope my reply was helpful.



All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Mooka
Top achievements
Rank 1
answered on 13 Jun 2011, 10:18 PM
This worked great thank you!
Tags
ToolTip
Asked by
Mooka
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mooka
Top achievements
Rank 1
Share this question
or