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

[Solved] Need to suppress Appointment click if click on the iExport Button

3 Answers 86 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Parimal Modi
Top achievements
Rank 1
Parimal Modi asked on 25 Sep 2009, 09:28 AM

Hi

My requirement is

1.        On appointment  click – User will be redirect to new screen with more details about appointment

2.       On iExport Button Click on the Appointment- User should able to add the appointment in the outlook.

Problem: but when user click on the iExport button, scheduler show the popup to add appointment in the calendar and it also call the On Appointment Click and redirect to next screen.

 

We want to suppress the Onappoitment click event when click on the iExport.

Would you please look into this ?

Thanks in Advance.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Sep 2009, 01:20 PM
Hello Parimal Modi,

You can differentiate on where the click originated from using the get_domEvent() method. Because the button in the appointment template has its CssClass specified:

<AppointmentTemplate>  
                <%# Eval("Subject") %>  
                <div style="text-align: right;">  
                    <asp:Button runat="server" ID="Button1" CssClass="rsExportButton" ToolTip="Export to iCalendar" 
                        CommandName="Export" OnClientClick="Export(this, event); return false;" Style="cursorpointer;  
                        cursor: hand;" />  
                </div>  
            </AppointmentTemplate> 

I can use the following:

function OnClientAppointmentClick(sender, eventArgs)  
        {  
            if(eventArgs.get_domEvent().target.className == "rsExportButton")  
               {  
                //do nothing here  
               }  
             else 
                {  
                 //code to redirect to new screen  
                }                 
              
        } 


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Parimal Modi
Top achievements
Rank 1
answered on 29 Sep 2009, 08:11 AM

Peter,

Thanks for such quick reply,

I am tring in .vb file and I am not able to get eventArgs.get_domEvent()

How to get this in code behind?

Regards
Parimal

0
Peter
Telerik team
answered on 29 Sep 2009, 02:52 PM
Hi Parimal,

That's unusual. Can you isolate the problem in a simple working demo and send it to us via a support ticket?


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Parimal Modi
Top achievements
Rank 1
Answers by
Peter
Telerik team
Parimal Modi
Top achievements
Rank 1
Share this question
or