在asp.net mvc schedule中双击事件 [英] double click event in asp.net mvc schedule

查看:48
本文介绍了在asp.net mvc schedule中双击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用dhtmlx asp.net时间表

I am using dhtmlx asp.net schedule

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.

推荐答案

试试这个

使用jQuery你可以轻松实现双击事件

Try this
Using jQuery you can easily implement double click event
<script>


document )。ready( function (){
var yourControlId =
(document).ready(function(){ var yourControlId =


#yourControl);
yourControlId .dblclick( function (){
// 在此处显示灯箱
});
});
< / script>
("#yourControl"); yourControlId .dblclick(function () { //show light box here }); }); </script>





希望这有帮助



Hope this helps


这篇关于在asp.net mvc schedule中双击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆