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
140
WebDatePicker: WebMonthCalendar does not popup on click
posted

Hello,

I have a custom WebDatePicker that create its WebMonthCalendar and set its property DropDownCalendarId.

It's works fine but when a datepicker is dynamically added to a page, the calendar does not pop...

What can i do ?

Thanks,

AntoWeb

 

Here is my code:

private Infragistics.Web.UI.EditorControls.WebMonthCalendar calendar;

 

Constructor:

calendar = new Infragistics.Web.UI.EditorControls.WebMonthCalendar();

 

OnInit:

this.Page.LoadComplete += new EventHandler(Page_LoadComplete);

 

In Page_LoadComplete:

EnsureSharedCalendar(); //With or without, no change...

calendar.ID = this.ClientID + "_cal";

this.DropDownCalendarID = calendar.ID;

 this.Parent.Controls.Add(calendar);

 

  • 29417
    Offline posted

    Hello antoweb,

    I'm just following up to see whether you've managed to resolved your issue.

    If you need further assistance please let me know.

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

  • 29417
    Offline posted

    Hello AntoWeb,

     

    Thank you for posting in our forum.

     

    Let me know if I understood your issue correctly.You create a custom WebDatePicker and create and assign to it a WebMonthCalendar. Then you add the WebDatePicker to your form.

     

    Could you let me know in which event do you add the custom WebDatePicker to the page? Also make sure that both controls are added to the same form. If possible please provide an isolated sample that reproduces your issue so that I can better understand your specific scenario and set-up.

     

    Also please refer to the following forum thread that discusses dynamic adding of the WebDatePicker and more specifically to Viktor Snezhko’s post:

    http://forums.infragistics.com/forums/p/53683/278123.aspx#

     

    I’m looking forward to your reply.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support