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?
Yes, I think that in your scenario where is no alternative rather recreating the controls.
As far as can understand you should do the following:
Code:protected void Page_Load(object sender, EventArgs e)
{
AgregarCalendarios();
}
Thank you Daniil, I neededthe property SetStartDate but, I am continuing with the next error
http://forums.ext.net/showthread.php...rPanel-dynamic