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

Datewise Sorting of Date field in Radgrid

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Purojit
Top achievements
Rank 1
Purojit asked on 19 Jun 2013, 07:52 AM
Hi,

I have faced a problem in trying to do date-wise sorting in date field in radgrid.It is not happening. Is this feature available? Plz. let us know.

Thanks
Purojit

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 19 Jun 2013, 09:03 AM
Hi,

Please elaborate about your requirements,its not clear.Below is a simple sorting example which sorts date as well..

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource2" AllowSorting="true">
    <MasterTableView AutoGenerateColumns="False">
        <Columns>
            <telerik:GridBoundColumn DataField="OrderID" HeaderText="OrderID" SortExpression="OrderID"
                UniqueName="OrderID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RequiredDate" HeaderText="RequiredDate"
                SortExpression="RequiredDate" UniqueName="RequiredDate">
            </telerik:GridBoundColumn>
            <telerik:GridDateTimeColumn DataField="ShippedDate" HeaderText="ShippedDate" SortExpression="ShippedDate"
            UniqueName="ShippedDate">
            </telerik:GridDateTimeColumn>                  
            <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry"
                UniqueName="ShipCountry">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Thanks,
Princy
Tags
Grid
Asked by
Purojit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or