Out of all the columns present in my grid, I have four columns which hold date values. I want to filter the grid according to the date, so I have wriiten the following code
<telerik:GridBoundColumn UniqueName="OrderDate" DataField="OrderDate" HeaderText="Ordered on"
CurrentFilterFunction="EqualTo" DataType="System.DateTime" ShowFilterIcon="False"
AutoPostBackOnFilter="True" DataFormatString="{0:MM/dd/yy}">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ScheduledShipDate" DataField="ScheduledShipDate"
HeaderText="Ship By" CurrentFilterFunction="EqualTo" DataType="System.DateTime"
ShowFilterIcon="False" AutoPostBackOnFilter="True" DataFormatString="{0:MM/dd/yy}">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Deliveron" DataField="ScheduledDeliveryDate"
HeaderText="Deliver on" CurrentFilterFunction="EqualTo" DataType="System.DateTime"
ShowFilterIcon="False" AutoPostBackOnFilter="True" DataFormatString="{0:MM/dd/yy}">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ActualShip" DataField="ActualShipDate" DataFormatString="{0:MM/dd/yy}"
HeaderText="Actual Ship" CurrentFilterFunction="EqualTo" DataType="System.DateTime"
ShowFilterIcon="False" AutoPostBackOnFilter="True">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
Out of the four columns the last three are working perfectly but the first one is not filtering, but it has the same set of attributes written as that of the other columns.
Please help me out.
<telerik:GridBoundColumn UniqueName="OrderDate" DataField="OrderDate" HeaderText="Ordered on"
CurrentFilterFunction="EqualTo" DataType="System.DateTime" ShowFilterIcon="False"
AutoPostBackOnFilter="True" DataFormatString="{0:MM/dd/yy}">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ScheduledShipDate" DataField="ScheduledShipDate"
HeaderText="Ship By" CurrentFilterFunction="EqualTo" DataType="System.DateTime"
ShowFilterIcon="False" AutoPostBackOnFilter="True" DataFormatString="{0:MM/dd/yy}">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Deliveron" DataField="ScheduledDeliveryDate"
HeaderText="Deliver on" CurrentFilterFunction="EqualTo" DataType="System.DateTime"
ShowFilterIcon="False" AutoPostBackOnFilter="True" DataFormatString="{0:MM/dd/yy}">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="ActualShip" DataField="ActualShipDate" DataFormatString="{0:MM/dd/yy}"
HeaderText="Actual Ship" CurrentFilterFunction="EqualTo" DataType="System.DateTime"
ShowFilterIcon="False" AutoPostBackOnFilter="True">
<ItemStyle HorizontalAlign="Right" />
<HeaderStyle HorizontalAlign="Right" Width="65px" />
</telerik:GridBoundColumn>
Out of the four columns the last three are working perfectly but the first one is not filtering, but it has the same set of attributes written as that of the other columns.
Please help me out.