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

ToolTip and WindowConfirm

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 18 Apr 2011, 10:29 AM

Hi,

I am trying to get either a RadToolTip working with a GridButtonColumn (because I need to use the RadWindow Confirm)

or

A Template column with a RadTooltip inside which also pops up a RadConfirm window.

I spent a good few hours yesterday and got this working....

<script type="text/javascript">
        function OnClientClicking(sender, args)
        {
            var callBackFunction = Function.createDelegate(sender, function (argument)
            {
                if (argument)
                {
                    this.click();
                }
            });
   
            var text = "Are you sure you want to archive this application?";
            radconfirm(text, callBackFunction, 300, 100, null, "Archive?");
            args.set_cancel(true);
        }
    </script>
 And then this on a RadButton in the Template Column
<telerik:RadButton ID="imgArchive" runat="server"  CommandName="Refs"  OnClientClicking="OnClientClicking"></telerik:RadButton>

The problem is that my usercontrols are loaded into a multipage using RenderSelectedPageOnly="true" and ajax.

When selecting the tab with the control used above I am getting 'OnClientClicking' is undefined.

All help appreciated.

Cheers,

Jon



1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 21 Apr 2011, 08:52 AM
Hello Jon,

I suggest that you use the approach from this forum thread and register the scripts in the usercontrol through the ScriptManager.

I hope this helps.

Best wishes,
Mira
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.

Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or