1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    0
    e.taranov is on a distinguished road

      0  

    Default Unanswered: How to disable sorting rows (properties) in Ext.grid.property.Grid

    Unanswered: How to disable sorting rows (properties) in Ext.grid.property.Grid


    How to disable sorting rows (properties) in Ext.grid.property.Grid?
    I don't need them to be sorted alfabetically.

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    3
    Vote Rating
    0
    montipirlo21 is on a distinguished road

      0  

    Default


    sortableColumns : Boolean
    Defaults to true. Set to false to disable column sorting via clicking the header and via the Sorting menu items.

    Or you have to set sortable=false in columnmodel if you want to remove this option only from some column

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    0
    e.taranov is on a distinguished road

      0  

    Default


    Quote Originally Posted by montipirlo21 View Post
    sortableColumns : Boolean
    Defaults to true. Set to false to disable column sorting via clicking the header and via the Sorting menu items.

    Or you have to set sortable=false in columnmodel if you want to remove this option only from some column
    This is not what i asked. I need to disable rows sorting, not columns.
    Ext.grid.property.Grid has default rows sorting by alpha asc, and looks like this sorting hardcoded in ext core without ability to change in config/property. Why? Any ideas?

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    3
    Vote Rating
    0
    montipirlo21 is on a distinguished road

      0  

    Default


    Excuse me but i don't understand.

    Grid shows the rows as they are stored in the store.
    If you pass them sorted,then you'll see them sorted.

    You'll do row sorting by columns not by row!!!

    I think you'll have to look at you're store

    remoteSort : Boolean
    True to defer any sorting operation to the server. If false, sorting is done locally on the client.

    Defaults to false. Maybe you're store is sorting the lines...

  5. #5
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    0
    e.taranov is on a distinguished road

      0  

    Default


    Quote Originally Posted by montipirlo21 View Post
    Excuse me but i don't understand.

    Grid shows the rows as they are stored in the store.
    If you pass them sorted,then you'll see them sorted.

    You'll do row sorting by columns not by row!!!

    I think you'll have to look at you're store

    remoteSort : Boolean
    True to defer any sorting operation to the server. If false, sorting is done locally on the client.

    Defaults to false. Maybe you're store is sorting the lines...
    Property grid is not usual grid panel.
    Please look at this example: http://dev.sencha.com/deploy/ext-4.0.../property.html
    it has property 'grouping' before 'autoFitColumns' but displayed below.
    Here is source:
    Code:
                propsGrid.setSource({
                    '(name)': 'Property Grid',
                    grouping: false,
                    autoFitColumns: true,
                    productionQuality: true,
                    created: new Date(),
                    tested: false,
                    version: 0.8,
                    borderWidth: 2
                });

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    3
    Vote Rating
    1
    pantar is on a distinguished road

      0  

    Default Disable sorting on property grid

    Disable sorting on property grid


    If you look into the framework's Grid.js file, you will find that
    Code:
    me.store.sort('name', 'ASC');
    is called in the initComponent function. To disable sorting of data, you must override this function.
    You can do that with
    Code:
    me.store.sort('none');
    You will than have control over how your data is displayed.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar