Hi all,
I am newbie to infragistics, i am creating an scheduler application using webdayview, webmonthview, webweekview, an infragistics popup menu and an custom appointment form for creating appointment.
i just want to know is there any option available to trigger the addappointment form from webweekview using menu control instead of double clicking the webweekview, for example if the user right clicks the webweekview and selects new appoinment, i want to open addappointment form and to pass date and time as parameters.
Thanks in advance..
--Vijayanand.
hi all,
Pls help me to solve this, its urgent.
thanks
--vijayanand
I dunno about any menu control that does this. I've never tried to make a menu with a right click in these controls myself but I know that you can change the appointment dialog to open on a single click if you want and make it pass the date and time to the dialog page.
Thanks HERAN for ur reply!
Finally i had implemented my requirments, but now i want to disable opening of appointment form when user double click the webweekview, webmonthview, webdayview.
is there anyoption available?
Thanks in advance!
--vijayanand.
yeah in your Javascript add the client side even handler for the double click from those controls and then type in the code to cancel it like this.
oEvent.cancel = true;
Thanks HERAN, i had implemented!!!
--Vijayanand
lol these pages dont like code I'll try and type it out.
var start = getStartDateTime();
var hours = start.getHours();
var ap = "";
if (hours < 12)
{
ap = "AM';
}
else
ap = "PM";
var min = start.getMinutes();
min = min + "";
if (min.lenght == 1)
min = "0" + min;
var sec = start.getSeconds();
if (sec.length == 1)
sec = "0" + sec;
var time = hours + ":" + min + ":" + sec + " " + ap;
oDialog.setContentUrl(
That there will give you the time and the QueryString to pass it to whatever page you are using as a dialog page.
yes there is in the javascript you can set it up but infragistics smartdate is strangly formatted so that if you pass it as is then try to pparse it into a datetime you get an error. So you have to modify it either in the Java or in the c# or vb whichever you're using. I personally did it in the Java it just seemed easier to me to do that. If you just want the time you can make a variable for it to pass. Now if you just want the Time then you can get it like this and getting the date is just as simple but first you have to get the full date
This thing wont set the code properly I'm gonna post the code in the next post
Hi Heran,
I want to get the selected time from webdayview in javascript.
is there any option available?
thanks in advance!