Problem with GridPanel sorting

  1. #1

    Problem with GridPanel sorting

    Hi,

    i have some problem when i need to sort a gridpanel by date.
    In the column i format the date in this way

    <Renderer Fn="Ext.util.Format.dateRenderer('d-m-y G:i' )" />
    when i click on the column header, the row was ordered in a random way.
  2. #2
    :o
    1.StoreID="Store1":ext:GridPanel
    2. Sortable="true" :ext:Column

    <ext:GridPanel ID="GridPanel1"
    runat="server"
    StoreID="Store1"
    ...

    <ColumnModel runat="server">
    <Columns>
    ...
    <ext:Column Header="modifydate" Width="135" Sortable="true" DataIndex="updatedt">
    <Renderer Fn="Ext.util.Format.dateRenderer('Y-m-d h:i:s')" />
    </ext:Column>
    ....
  3. #3
    Hi,

    You have to set Type="Date" SortType="AsDate" for RecordField, in this case the sorting will be performed correctly
    Vladimir Shcheglov
    Sr. Developer
  4. #4
    perfect
    thank yoy

Similar Threads

  1. [CLOSED] How to disable gridpanel sorting
    By digitek in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 30, 2013, 4:10 AM
  2. Gridpanel custom sorting
    By boris in forum 1.x Help
    Replies: 11
    Last Post: Aug 23, 2011, 2:50 PM
  3. [CLOSED] GridPanel sorting and filtering problem
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 31, 2011, 3:38 PM
  4. [CLOSED] Sorting Disabled in GridPanel
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 07, 2010, 11:37 AM
  5. GridPanel Auto Paging and Sorting
    By Dominik in forum 1.x Help
    Replies: 2
    Last Post: May 17, 2010, 9:24 AM

Posting Permissions