Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
417
Relationship between CellUIElement and UltraGridCell
posted

I’m struggling to workout what the relationship is with CellUIElement and the UltraGridCell. I understand that you can derive the UltraGridCell from the GetContext method of the CellUIElement, but how are the two related? Can someone please explain the relationship beween these objects and how and when they are created.

Kind Regards,

Tim

Parents Reply
  • 417
    posted in reply to Mike Saltzman

    Hi Mike,

    We have an existing system which utilises an UltraGrid to display appointment information for a number of resources as shown in the following diagram.

     

     

    The bookable day is divided up into units of time with an appointment spanning one or more units. The grid is build to represent this with each of the columns on the right-hand-side representing one of these units of time. This functions adequately when the unit of time is 30 minutes or more, however when this is reduced to 5 minutes or less the grid will draw several tens of columns to represent a single day, and as you can image, runs slowly when displaying several days. We have read several articles on improving the performance of the grid and have attempted to optimise this solution to the best of our abilities, however we need to rethink this approach and redesign the display.

     

    I would prefer to represent the bookable day as a single cell within the grid so that the grid draws quickly, with minimal overheads. I was hoping to achieve this by creating a UIElement which will display the appointment information for each day per resource. i.e. draw squares within the cell to represent each appointment based on how much a single pixle represents in terms of time.

    I believe that I need a single UIElement to represent the bookable day (i.e. 8am-5pm) which holds child appointment UIElements (the squares) which are placed at specific locations within the bookableDayUIElement's borders.

    The UltraGrid will therefore have a hierarchy similar to this …

     

    UltraGridUIElement

        DataAreaUIElement

            RowColRegionIntersectionUIElement

                RowUIElement

                    RowCellAreaUIElement

                        CellUIElement

                            BookableDayUIElement

                                        AppointmentUIElement

                                        AppointmentUIElement

                                        AppointmentUIElement

                                        AppointmentUIElement

    I’d had it in mind to have an object which manages the BookableDay and which holds a collection of Appointment objects. These would then somehow return their respective  BookableDayUIElement and AppointmentUIElement within a creation filter which would handle the drawing of these objects to the GUI.

     

    I would like to further enhance this interface at a later stage by extending the functional and allowing the appointment object to be adjustable by inheriting from the AdjustableUIElement so that they can be expanded or contracted, and thus modifying any surrounding appointment times to fall into line.

     

    In summary I’d like to create my own control and embed this within the grid cell, but really don’t know enough about the structure of your controls to allow me to create and embed my own representation.

     

    Thanks again fro your help,

     

    Tim

Children