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.
@ Navins:
hi.. its not complex thing, create a infragistics context menu and just invoke click event of dayview or monthview, or weekview verify tat, its right click or left click. If its right click capture the x,y cordinates and pass it to showmenu function (refer CSOM of menu for more info).
Thats it popup menu will occur opens.
Thanks
--vijayanand
again not sure about doing anything with a right click on the calendars.I've not attempted such functionality. Infragistics 9.1 just implemented a menu type object that can be used on a right click but I use 8.3 and have no need to upgrade just now so I can't speak to it. If the right click was also captured on the client side click events I'm sure you could capture it but this is unlikely to be code that is already implemented due to the fact that right clicks usually bring up menus of some sort.
Hi,
I have to create same things in my WebSchedule. on right click have to open some options...
how could you do that.. can you tell me?
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