We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

created a additional context item, but the event is not firing a form post action method

Thread ID:

Created:

Updated:

Platform:

Replies:

115010 Dec 18,2013 12:55 PM UTC Dec 30,2013 09:33 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Schedule
Ravi Shankar
Asked On December 18, 2013 12:55 PM UTC

I have added userdefined context menu, and the menu appears, but when I click/select, the form post action method is not getting fired. Other default context menu's are working fine.

If anyone has a solution, pls share 

Velmurugan S [Syncfusion]
Replied On December 30, 2013 09:33 AM UTC

Hi Ravi,

 

Thanks for using Syncfusion products.

 

                We would like to let you know that we can able to attach the event to the user defined context menu. Please find the below code snippet that tries to meet your requirements.

 

<code>

                   @{Html.Syncfusion().Schedule("EssentialSchedule1", "ScheduleModel")

                       --------------------------

                      .ClientSideOnContextMenuClick("ContextMenuItemClick")

                      .BindList(bind =>

                      {

                           ------------------------

                           -----------------------

                      })

               .Render();

                }

 

 

<script type="text/javascript">

 

    function ContextMenuItemClick(sender,args) {

        alert("you have clicked the menu Add Patient");

       

        $.ajax({

            type: "post",

            url: "/Home/Index"

          

        });

    }

</script>

 

</code>

 

And also for your reference we have attached the sample for both above scenario’s, which can be downloaded from the below location.

ContextMenuwithResourceFilter.zip

 

Please let us know if you need any further assistance.

Regards,

Velmurugan.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;