Click here to Skip to main content
15,846,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using dhtmlx asp.net schedule
XML
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.
Posted

1 solution

Try this
Using jQuery you can easily implement double click event
JavaScript
<script>
$(document).ready(function(){
  var yourControlId = $("#yourControl");
  yourControlId .dblclick(function () {
   //show light box here
  });
});
</script>


Hope this helps
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900