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

RadScheduler not calling OnAppointmentCommand event when UpdatePanel is used

6 Answers 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mohan Prasath
Top achievements
Rank 1
Mohan Prasath asked on 02 Sep 2013, 09:09 AM
I am using RadSchduler, In which before using UpdatePanel, onappointmentcommand works well. But when I use UpdatePanel it never calls the event (when I insert / cancel) an Appointment. 
 
Any kind of help is fine. 
 
Following is the code I am using 
 
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
          <ContentTemplate><telerik:RadScheduler ID="RadScheduler1" runat="server"
      SelectedView="MonthView" Skin="WebBlue"
      onappointmentcommand="RadScheduler1_AppointmentCommand1"
       onload="RadScheduler1_Load" DataKeyField="ID" DataSubjectField="Subject"
      DataStartField="Start" DataEndField="End"
      onappointmentdelete="RadScheduler1_AppointmentDelete" AllowEdit="false" Height="600px">
 
        <InlineInsertTemplate>
            <asp:DropDownList runat="server" ID="ddlAgenTeamLst" DataSourceID="objTeam" DataTextField="name" DataValueField="id"></asp:DropDownList>
            <asp:Button ID="btnInsert" runat="server" CommandName="Insert" Text="Insert"/>
            <asp:Button ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel"/>
        </InlineInsertTemplate>
</telerik:RadScheduler></ContentTemplate>  </asp:UpdatePanel>
 
In the above onAppointmentDelete is working fine in both the cases. But I need to get the value from the drop down list when I Insert a data, So i am unable to use "OnAppointmentInsert".

6 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 04 Sep 2013, 10:07 AM
Hello,

 In such cases the event is always thrown if the button is a link button as on this on-line demo or a Radbutton of type -LinkButton as below:

<telerik:RadButton ID="InsertButton" runat="server" AutoPostBack="true" ButtonType="LinkButton"   CommandName="Insert" >
                     
                   </telerik:RadButton>

Hope this information 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.
0
Mohan Prasath
Top achievements
Rank 1
answered on 05 Sep 2013, 03:55 AM
Thank you for your answer. But why is this case. All the Button would pass the events right. Or should I have to use RadButtons in all cases if I am using a RadControls ?
0
Accepted
Plamen
Telerik team
answered on 05 Sep 2013, 07:52 AM
Hello Mohan,

 
It looks like a some limitation of this functionality of RadScheduler -I have logged it for future researching and fixing. It is not connected to whether the button is RadControl or not but to whether it is a link button or not so you can use asp LinkButton as well:

<asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">
                       <asp:Image runat="server" ID="insertImage" ImageUrl="Images/ok.png" AlternateText="insert">
                       </asp:Image>
                   </asp:LinkButton>

Hope this will explain the issue.
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.
0
Mohan Prasath
Top achievements
Rank 1
answered on 06 Sep 2013, 10:46 AM
Hi, 
I have one more problem. I couldn't rebind the data in the above conditions. 

I am adding new appointments(data) if specific appointment is added. But it is not reflected in the UI even if I use rebind or databind. What should I have to use to refresh the control?

I have raised the new request so that it will be helpful for others who is looking to this specific error and is the following. 
http://www.telerik.com/community/forums/aspnet-ajax/scheduler/rebind-doesn-t-work.aspx


Thanks,
prasaad
0
Plamen
Telerik team
answered on 11 Sep 2013, 10:59 AM
Hello,

 
We are not aware of the issue. Would you please share the exact code that you are using in the AppointmentCommand so we could inspect it and be more 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.
0
Mohan Prasath
Top achievements
Rank 1
answered on 26 Sep 2013, 05:01 AM
Tags
Scheduler
Asked by
Mohan Prasath
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Mohan Prasath
Top achievements
Rank 1
Share this question
or