Bug Report Q494138
Visible to All Users

Classes and functions designed to search for free time blocks cannot find all the possible free time blocks

created 12 years ago

When using either TcxSchedulerEventConflictsInfo.Timeranges or FindAvailableTime all the time between the specified time ranges seems to be returned as being free (I have set EventOperations.Intersection = false).
In the resources demo it seems to behave erratically as well. If you do the following:
- Open and run the demo
- Click on a day with an event (in this case 11th May 2013)
- Select a car - Bugatti Veyron
- Click "Rent a car" button and select 11/5/13 and the first available time slot, 00:00 - 08:00
- Click rent. The dialogue closes and the Scheduler is updated with the Event from 00:00 - 08:00
- Click "Rent a car" again, and repeat the procedure above
- The Scheduler on the booking form shows the time as booked on the right, but in the "Choose the available time period" box in step 4 of the booking process, the available times are wrong, it shows 08:00 - 08:45 as being free to rent which is the pre-set event in the demo.
I couldn't get this far in my application, using the ConflictsInfo approach returned that the whole day was free from midnight to midnight and using the FindAvailableTime approach, testing for 15 minute increments within a time range representing the working day, returned that each was free (again EventOperations.Intersection = false).
Is there a simple code example of either approach available for a Scheduler hooked up to TcxSchedulerDBstorage? My objective is to present the user with a list of gaps in their weekly timesheet that need filling. This could be achieved outside of using the above methods but would be a bit a waste of effort if I can get these approaches to work…hopefully you can help me.
Thanks in advance,
Ivan

Show previous comments (7)
DevExpress Support Team 12 years ago

    I assure you that our developers will do their best to resolve the problem as soon as they can. However, I cannot give you any time frame at present, because my estimations may be misleading.
    Thanks for your patience.

      Hi
      Has there been an update to this ticket?

      DevExpress Support Team 12 years ago

        Our developers are working on this issue.
        We appreciate your patience.

        Answers approved by DevExpress Support

        created 12 years ago (modified 12 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Comments (3)

            As ever thank you for the superb assistance. I just tested the hotfix and the demo you supplied earlier now works perfectly.
            You should make a bigger deal about how good the DevExpress support team is. "Its like having extra developers on your team" or something. :-).
            Thanks again and have a good weekend,
            Ivan

            DevExpress Support Team 12 years ago

              Hello,
              The issue is fixed. Would you mind us publishing the content of this ticket? It can help other programmers who faced a similar problem.

              DevExpress Support Team 12 years ago

                I have published the content of this ticket. Should you have any objections, feel free to post a comment here.
                We appreciate your understanding.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.