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

combine tooltip and ical export/delete issue

1 Answer 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
C
Top achievements
Rank 1
C asked on 28 Aug 2013, 11:10 AM
Hi,

breaking my head on this one.
I've implemented a scheduler and used the ajax tooltip wich displays a ascx with my custom information, just like in the demo http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultvb.aspx?#qsf-demo-source
I also added a Ical export button in my appointment template. All works fine.

The appointments need to be editable with rightclick, so I set my tooltipmanager to ShowEvent="OnClick".
But when I clcik the ical button, the export starts, but also the tooltip is shown.
The same when i click the delete button.

I tried excluding in code behind in the AppointmentCreated, clientside  with OnClientBeforeShow, but no luck.
So: what's the right way to exclude the ical export and delete button from triggering the tooltip?

thx!

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 30 Aug 2013, 12:04 PM
Hi,

 
You can try using jQuery in pageLoad and achieving the desired behavior as in the code below:

var toolTip = true;
      function pageLoad() {
          var $ = $telerik.$;
          $(".rsAptDelete,.rsExportButton").click(function (e) {
              toolTip = false;
          });
      }
 
      function OnClientBeforeShow(sender, args) {
          var controlID = sender.get_targetControlID();
          if (!toolTip) {
              args.set_cancel(true);
              toolTip = true;
          }
      }

Hope this will be helpful.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
C
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or