
Originally Posted by
Daniil
Hi @osef,
X.GetCmp() can retrieve only a real control. Internally it uses the FindControl method. So, you don't recreate the CalendarPanel during a DirectEvent, therefore it returns null.
You could use X.GetCmp<CalendarPanel>(), but it creates a proxy control. Not a real one. It won't contain all the settings of your real CalendarPanel. I don't think it is helpful in your case.
Please clarify why do you need a CalendarPanel instance inside those DirectEvents?
Hi Daniil, It is necessary in the dfFecha_Change, the other DirectEvent It is not necessary, because, When the datetime is changing the EventStore in the each CalendarPanel should display new events.
But, if there is another way to do, I'll appreciate.
Thanks