Hello, is it possible to have different widths for each owner in WinSchedule. For example, there are shown five owners for a day. It is possible to change the width of the owners by dragging a slider between two owners but this effects to all owners at the same way. Is there a possibility to change the width of each owner.
Thanks gerald
Hello Gerald,
Looking at the provided informaiton I`m not sure what is your WinSchedule control, but I suppose that maybe you are using UltraDayView controls with two or more Owners. If so, than the mentioned behavior (change the width) is by design and there are not such functionality to set specific width for each owner. Please let me know if you think that I misunderstand your scenario or if you have any questions.
Regards
Hello Georgi,
yes i am using UltraDayView with two or more owners.
Many thanks for your answer.
Gerald
hi good day. i am also wondering for this. different Owners = Different Width like Owner1 width is set to 100 and Owner2 width is set to 150. is this possible?
and is this possible to code through creation filter? i need help on this also
Hello Ryan,
Of course you could use CreationFilter to modify your UIElement. For example:
public class MyCreationFilter : IUIElementCreationFilter
{
public void AfterCreateChildElements(UIElement parent)
GroupUIElement GUI = parent.GetAncestor(typeof(GroupUIElement)) as GroupUIElement;
if (GUI != null && GUI.FirstColumn.Owner.ToString() == "AAAA")
GUI.Rect = new Rectangle (GUI.Rect.X, GUI.Rect.Y, 100, GUI.Rect.Height);
}
The result will be: