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 6613939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:16:41+00:00 2026-05-25T20:16:41+00:00

1- How do I set the column to be sorted when the grid is

  • 0

1-How do I set the column to be sorted when the grid is created? then upon reloading the grid, it automatically utilize that sort to appropriately display the records.(without me clicing on it)
Can this be done on the grid itself so it is independent of the underlying data store?

2-how do i change Date format displaying in a grid column?
my data render a date like this /Date(1316020760837+0000)/
i tried using renderer: Ext.util.Format.dateRenderer('m/d/Y'),// format: 'm d Y'
but it gives me NaN/NaN/NaN

any help would be appreciated.
thank you

  • 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-05-25T20:16:41+00:00Added an answer on May 25, 2026 at 8:16 pm

    solved:

    1. i used sortOnLoad with sorters

      var myStore = new Ext.data.JsonStore({
      fields: ['Item1', 'Item2', 'Item3', 'Item4'] 
      , data: []
      , sortOnLoad: true
      , sorters: { property: 'Item1', direction : 'DESC' }
      });
      
    2. in my c# code i used item.DateEnd.ToString("MMM dd, yyyy").
      see this or this for standard and custom format

    or better
    in extjs4 ,you should specify the dateFormat so Ext can parse it properly and you’ll ensure it gets read ok.

       {name: 'Item1' , type : 'date',dateFormat :'MS'}
    

    u can see this for available format strings.

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

Sidebar

Related Questions

I have an MVC telerik grid that I have set up to do custom
I have an HTML table that I use as column headers to a grid
How can I set a column value at a specified row?
I have a set of column names in a table - e.g. foo1, foo2,
How to set cell/column value dynamically using PHPExcel library? I am fetching result set
I am using wxPython's HyperTreeList and I want to set the column width exactly
How to Set a existing column of MS SQL table as NOT NULL?
If I set a database column as an autonumber primary key field, will the
how can a visibility of a particular column can set to false in a
I have a databound list view and can set all the column widths manually

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.