Hello everyone,
we customize appointment elements via AfterCreateChildElements and we can add multiple
ImageAndFormattedTextUIElementEx elements correctly. But now we need to embed a grid into and appointment. We try to make a new grid and then call
childElements.Add(grid.DisplayLayout.UIElement) but the result is wrong.
Is possible to embed a grid into an AppointmentUIElement?
TIA
Hello,
Thank you for the feedback.
It seems to me that you are only using RenderingControl and EditingControl of the ControlContainerEditor seperately. You could set different UltraGrid objects for both properties at the same time, the first UltraGrid will take care for editing of the Appointment, and other will take care for Rendering.
If you would like you could take a look at the local samples which comes with the installation of the NetAdvantage for Windows Forms, and especially the sample called "ControlContainerEditor".
If you already have done so, please let me know if you have any questions regarding the sample.
Thank's you for the replies,
We try Brian's suggestion and our form looks very cool but the problem is that the grids are static. As the help says, they are rendered into a bitmap because we assign the grids into the RenderingControl property of UltraContainerControlEditor. But if we assign the grids to the EditorControl property we only see the grid in one appointment and the application is not more stable.
The problem is that we have to show multiple data fields for each appointment and when we have more than one owner we don't have enough avaliable space to draw. For the moment we draw many ImageAndFormattedTextUIElementEx calculating their left and top positions but a grid will be the best solution for this workaround.
If you have any ideas to improve it would we apreciated,
I post a screenshot of this form of our application(hospital scheduling software):
Please let us know if you have any concerns when following Brian's suggestion.
If you have any other questions please do not hesitate to ask.
You can theoretically do this by assigning an UltraContainerControlEditor to the control's AppointmentEditorControl property, and hosting a grid within that UltraContainerControlEditor. Having said that, this is not one of the anticipated usage scenarios, and it is possible that you will have problems getting this to work.