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">
            <SpecialDays>
                <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BorderColor="Blue">
                </telerik:RadCalendarDay>
            </SpecialDays>
        </Calendar>
        <DatePopupButton HoverImageUrl="" ImageUrl="" TabIndex="-1" ToolTip="Calendar Search" />
        <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" TabIndex="2">
        </DateInput>
    </telerik:RadDatePicker>

     

     

     

  2. Kostadin
    Admin
    Kostadin avatar
    1709 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.

    Regards,
    Kostadin
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top