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.
Unfortunately, activation email could not send to your email. Please try again.

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 07:55 AM Dec 30,2013 04:33 AM ASP.NET MVC (Classic) 1
loading
Tags: Schedule
Ravi Shankar
Asked On December 18, 2013 07:55 AM

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 04:33 AM

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.

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.

;