Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8540877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:41:57+00:00 2026-06-11T11:41:57+00:00

I am using Telerik RadGrid and I have a data source where one of

  • 0

I am using Telerik RadGrid and I have a data source where one of my columns look like hh:mm:ss. When I load the datasource of the RadGrid from the database I order the results (on SQL level) based on a DateTime column (which contains year, month and day too), but in the grid representation I am showing just hh:mm:ss. My custom sort on SQL level is working well, in a given page I get exactly those elements which should be there. However, when I sort a column which is essentially a DateTime but is represented as hh:mm:ss, default telerik sort also occurs which sorts the rows in the given page. This is incorrect, because ’09-12-2012 20:20:20′ < ’09-13-2012 10:10:10′, but ’20:20:20′ > ’10:10:10′. How can I prevent default telerik sort for my RadGrid? I want everything else to work in the same way, I just want to tell Telerik “do not sort my column, I’ve already handled the sort event, thanks”. How can I achieve this?

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" AllowCustomPaging="true" AllowMultiRowSelection="true">
        <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" InsertItemPageIndexAction="ShowItemOnCurrentPage">
            <CommandItemTemplate>
                <div class="cmdItem">
                    <asp:LinkButton ID="btnManageColumns" runat="server" CommandName="Manage Columns" data-link="manage-columns">
                        <img alt="" src="../../Images/Icons/Columns.png" />Manage Columns</asp:LinkButton>
                    <asp:HiddenField ID="hdnSpacer" runat="server" />&#160;&#160;&#160;
                    <asp:LinkButton ID="btnExportPDF" runat="server" CommandName="Export PDF"
                        OnClientClick="return exportGrid('PDF');"><img alt="" src="../../Images/Icons/ExportPDF.png" />Export to PDF</asp:LinkButton>&#160;&#160;&#160;
                    <asp:LinkButton ID="btnSendEmail" runat="server" CommandName="SendEmail" OnClientClick="return exportGrid('PDFEmail');"><img alt="" src="../../Images/Icons/PasswordSetup.png"/>Email</asp:LinkButton>
                </div>
            </CommandItemTemplate>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnCommand="gridCommand" />
            <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="true" />
        </ClientSettings>
    </telerik:RadGrid>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:41:58+00:00Added an answer on June 11, 2026 at 11:41 am
    AllowCustomSorting="true"
    

    This attribute should be added to the MasterTableView tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Telerik RadGrid I'm binding a datasource and attach a method to the OnItemDataBound
Using RadGrid for Asp.Net Ajax (from Telerik) I need to re-set the CurrentPageIndex. Some
Using VS2008, and Telerik radGrid version 2010.1.519.35 I have a about 50 DNN modules
I have a telerik radgrid that is doing an insert using an objectdatasource. The
I'm using RadGrid from Telerik (RadGrid.Net2 (I know I should upgrade to a newer
I have a Telerik RadGdir that loads data dynamically using OnNeedDataSource. Once all the
I'm using Telerik RadGrids and I have RadDatePickers for columns with type of DateTime.
I have just come across a Casting Exception while using the Telerik RadGrid. It
I am using Entity Framework and Telerik RadGrid. I have a table with a
I am using Telerik Radgrid for my aspx page. I have uploaded the screenshot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.