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. Image for the cookie policy date

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

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 

1 Reply

VS Velmurugan S Syncfusion Team 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.


Loader.
Live Chat Icon For mobile
Up arrow icon