Minor question about runat="server" in Calendar and DateInput

2 posts, 0 answers
  1. Jeremy Yoder
    Jeremy Yoder avatar
    131 posts
    Member since:
    Dec 2009

    Posted 12 Apr Link to this post


    This is really minor, but in the example below, I get Visual Studio warnings that both Calendar and DateInput don't have runat="server". In looking online, I've seen examples where they exist and don't exist, so I'm assuming it doesn't matter. If that's the case, I'll add runat="server" to cut down on all my warnings, but I wanted to double check in case there's any reason not to include runat="server".


    <telerik:RadDatePicker ID="rdpBatchDate" runat="server" TabIndex="4" Culture="English (United States)">
        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false">
                <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BorderColor="Blue">
        <DatePopupButton HoverImageUrl="" ImageUrl="" TabIndex="-1" ToolTip="Calendar Search" />
        <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" TabIndex="2">




  2. Kostadin
    Kostadin avatar
    1687 posts

    Posted 15 Apr Link to this post

    Hi Jeremy,

    The Calendar and DateInputs are defined as a properties for RadDatePicker, and they should not have the "runat" attribute set. Indeed setting it makes no difference to the behavior, it only fixes the intelisenses warning.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top