hi, I have downloaded sample project for asp.net mvc4 scheduler. What I want is,If user double click on the schedule,I don't want to display the Lightbox,How can I define this in my view page and in which action I have to define it? Index.cshtml in" MVCFormInLIghtBox",I have defined like @{ ViewBag.Title = "Scheduler | MVC Form in lightbox"; ViewBag.SampleTitle = "MVC Form in lightbox"; ViewBag.ShortDescription = "Custom lightbox form"; ViewBag.LongDescription = "Try to edit event"; } <script type="text/javascript"> alert("In light box script"); scheduler.attachEvent("onDblClick",function(){ alert("In double click"); return true; }); </script> <style type="text/css"> .custom_lightbox { } </style> @Html.Raw(Model.Render()) In this Dbl click event is not firing,even alert is also not coming.how can I fire this event as well as I don't want to show the lightbox.
<script> $(document).ready(function(){ var yourControlId = $("#yourControl"); yourControlId .dblclick(function () { //show light box here }); }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)