Print Page | Close Window

SetSelection in GroupIndex

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=5292
Printed Date: 28 September 2024 at 3:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetSelection in GroupIndex
Posted By: IDBG
Subject: SetSelection in GroupIndex
Date Posted: 15 October 2006 at 3:41am

Hi!

On the ContextMenu event of the calendar I can get the GroupIndex from the CalendarHitTestInfo object.
 
i = HitTest.ViewGroup.GroupIndex
 
However, I can't seem to find any way to use this group index to set selection on the appropriate resource.
 
No matter how I use it, the SetSelection seems to default to the first resource.
 
I'm using
 
HitTest.ViewDay.View(i).View.SetSelection dtStart, dtEnd, False
 
Am I missing something?
 
Thanks!!
Mir



Replies:
Posted By: sserge
Date Posted: 16 October 2006 at 2:55am
Hi Mir,

GetSelection and SetSelection methods are now obsolete, they came from first versions of Calendar and now left only for compartibility.
 
There is a new way to use selection: CalendarView.Selection property.
 
Example:
wndCalendarControl.DayView.Selection.GroupIndex = 3 
    OR
wndCalendarControl.ActiveView.Selection.GroupIndex = 3 
 
--
WBR,
Serge 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net