+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / 2 datepickers in control designer

2 datepickers in control designer

5 posts, 2 answered
  1. El Barto
    El Barto avatar
    42 posts
    Registered:
    28 Apr 2008
    06 Mar 2013
    Link to this post

    I've created a control designer according to this blog post http://www.sitefinity.com/blogs/josh-morales-blog/2011/09/20/creating_advanced_sitefinity_4_widget_control_designers 

    It works fine until I added 2 RadDatePicker controls. When there are 2 datepicker controls on the widget designer and their ClientIDMode is set to Static they don't work. If you click either one, the date is set only in the last datepicker. If you set their ClientIDMode to AutoID all works fine.

    I'm using version 5.3.3900.0

  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    11 Mar 2013
    Link to this post
    Hello,

    We are familiar with this issue (there are several threads about this in the forums), however this behavior is expected. Microsoft recommends using ClientIDMode=Static only for static control. RadControls on the other hand are controls with complex hierarchies of child controls and templates so setting their ClientID mode to static will break their functionality. Please set the ClientIDMode for the RadDatePickers to "Auto" and verify of this works for you.

    Kind regards,
    Stefani Tacheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. El Barto
    El Barto avatar
    42 posts
    Registered:
    28 Apr 2008
    11 Mar 2013 in reply to Stefani Tacheva
    Link to this post

    This works indeed. It would have been nice to have been warned for this issue on the blog post.

  4. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    14 Mar 2013
    Link to this post
    Hello,

    We totally agree with you. I have changed the blog post and added this warning in it. For your convenience you could review the following URL.

    All the best,
    Stefani Tacheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  5. El Barto
    El Barto avatar
    42 posts
    Registered:
    28 Apr 2008
    14 Mar 2013 in reply to Stefani Tacheva
    Link to this post
    Hi Stefani,

    Thanks for the consideration and the update.
5 posts, 2 answered