Hello..
Am using one calendar in my webform ...if i doubleclick on date cell it is not working??
if anyone knows share the answer...and am posting what i have tried...
Script::
window.onload = function () {
var timer;
var el = document.getElementById('Calendar1');
el.onclick = function () {
if (timer) clearTimeout(timer);
timer = setTimeout(function () { alert('<%= Calendar1.SelectedDate.Date.ToLongDateString() %>'); }, 250);
document.getElementById("GridView1").style.display = 'block';
}
el.ondblclick = function Cal1() {
clearTimeout(timer);
alert('<%= Calendar1.SelectedDate.Date.ToLongDateString() %>'+"DoubleClick");
document.getElementById("Mdl1").style.display = 'block';
}
}
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SreenishPosted Jul 16, 2015, 1:31 AM