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
740
Set UltraDayView owner width wider when selected (activated)
posted

Hi there,

I have a ultradayview which has mutiple owners. My requirement is, when I select a paticular owner, it's width should be shown wider (eg. 100 -> 300). I have used the creationfilter to override the size of the width as follows. BUT it does NOT setting the width of the owner. ITs setting width of some higher level UIElement of Owner.

PLESASE let me know a solution ASAP. This is very urgent!! ( Please see the requiement attached)

In Load:

  this.ultraDayView1.CreationFilter = new MyCreationFilter;

public class MyCreationFilter : IUIElementCreationFilter

{

public void AfterCreateChildElements(UIElement parent)

  {

GroupUIElement GUI = parent.GetAncestor(typeof(GroupUIElement)) as GroupUIElement;

if (GUI != null)

            {

if (GUI.DayView.ActiveOwner != null)

                {

    


Owner owner = GUI.GetContext(typeof(Owner)) as Owner;                   

if (GUI != null && owner.ToString() == GUI.DayView.ActiveOwner.ToString())

                    {

                        GUI.Rect = new Rectangle(GUI.Rect.X, GUI.Rect.Y, 300, GUI.Rect.Height);

                    }

                }

            }

}

 

Thanks in Advance!!

Parents
No Data
Reply
  • 740
    posted

    Hi!! I need a response to this ASAP please!! Thanks so much!

Children