Hi,
I have a rad grid that contains two columns for StartDate and EndDate with RadDatePickers.
i want to compare that the date selected in "EndDate" should not be less than the date selected in "StartDate"
or start date should be less than end date.
How can i compare the both the dates in grid.My column type is GridTemplateCoulmn and both the Start and End date pickers are in ItemTemplate.
below is my code.
<telerik:GridTemplateColumn HeaderText="Start" UniqueName="fispersrt" DataField="fispersrt"
Visible="true" FilterControlWidth="78%" AllowFiltering="true">
<ItemTemplate>
<telerik:RadDatePicker ID="rdDtStrtpkr" runat="server" SelectedDate='<%#Eval("fispersrt")%>'>
</telerik:RadDatePicker>
</ItemTemplate>
<FooterTemplate>
<telerik:RadDatePicker ID="rdDtFootrStrtpkr" runat="server">
</telerik:RadDatePicker>
</FooterTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="End" UniqueName="fisperend" DataField="fisperend" FilterControlWidth="78%" AllowFiltering="true">
<ItemTemplate>
<telerik:RadDatePicker ID="rdDtEndpkr" runat="server" SelectedDate='<%#Eval("fisperend")%>'>
</telerik:RadDatePicker>
</ItemTemplate>
<FooterTemplate>
<telerik:RadDatePicker ID="rdDtFootrEndpkr" runat="server">
</telerik:RadDatePicker>
</FooterTemplate>
</telerik:GridTemplateColumn>
Thanks in Advance.
I have a rad grid that contains two columns for StartDate and EndDate with RadDatePickers.
i want to compare that the date selected in "EndDate" should not be less than the date selected in "StartDate"
or start date should be less than end date.
How can i compare the both the dates in grid.My column type is GridTemplateCoulmn and both the Start and End date pickers are in ItemTemplate.
below is my code.
<telerik:GridTemplateColumn HeaderText="Start" UniqueName="fispersrt" DataField="fispersrt"
Visible="true" FilterControlWidth="78%" AllowFiltering="true">
<ItemTemplate>
<telerik:RadDatePicker ID="rdDtStrtpkr" runat="server" SelectedDate='<%#Eval("fispersrt")%>'>
</telerik:RadDatePicker>
</ItemTemplate>
<FooterTemplate>
<telerik:RadDatePicker ID="rdDtFootrStrtpkr" runat="server">
</telerik:RadDatePicker>
</FooterTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="End" UniqueName="fisperend" DataField="fisperend" FilterControlWidth="78%" AllowFiltering="true">
<ItemTemplate>
<telerik:RadDatePicker ID="rdDtEndpkr" runat="server" SelectedDate='<%#Eval("fisperend")%>'>
</telerik:RadDatePicker>
</ItemTemplate>
<FooterTemplate>
<telerik:RadDatePicker ID="rdDtFootrEndpkr" runat="server">
</telerik:RadDatePicker>
</FooterTemplate>
</telerik:GridTemplateColumn>
Thanks in Advance.