This is a migrated thread and some comments may be shown as answers.

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

1 Answer 139 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jeremy Yoder
Top achievements
Rank 1
Jeremy Yoder asked on 12 Apr 2016, 03:20 PM

 

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>

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 15 Apr 2016, 09:29 AM
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.
Tags
Calendar
Asked by
Jeremy Yoder
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or