JavaScript EXTJS Grid grouping by Object error extjs grid grouping multiple columns,extjs grid grouping sort,extjs

I am trying to implement a grid with grouping feature. This is my Model:

Model

Ext.define('myApp.model.ModelPrueba2', {
extend: 'Ext.data.Model',
fields: ['id', {
    name: 'name',
    type: 'string'
},'sign']
});

I fill my store from an AJAX proxy request. This is my JSON:

{
success: true,
data: [{
        id: 1,
        name: 'Name 1',
        sign: {
            id: 1,
            name: 'F1'
        }
    }, {
        id: 2,
        name: 'Name 2',
        sign: {
            id: 2,
            name: 'F2'
        }
    }]
}

You can appreciate that my 'sign' field is an 'object'. My problem is: when I group by 'name', it works fine, and if I collapse some group, it only collapses the group that I selected. However, if I group by 'sign', the groups are well-formed and displayed, but when I collapse a specific group, all the groups get collapsed, and the only difference with the previous test is the field type, 'name' is string and 'sign' is an object... So I don't really know if this a bug. I am using 4.2 version.

This is a fiddle where you can test my problem: https://fiddle.sencha.com/#fiddle/vt

Here you can group by 'probabilities to win', and collapse one group, it works fine, but if you delete every

toString: function() {
    return this.value;
}

from the 'data' array and do the same, you will see how all groups get collapsed in one. What can I do to fix this?, I don't like to use this toString() in my store or JSON.
How can I group by an Object attribute?

Answer:1

I had an text field where user has to place an url. I need to validate the url whether format is valid.I need to write an reg-exp to find below invalid urls. http://www.google.com//test/index.html //...

I had an text field where user has to place an url. I need to validate the url whether format is valid.I need to write an reg-exp to find below invalid urls. http://www.google.com//test/index.html //...

  1. format validator javascript
  2. validator.js format
  3. validating date format in javascript

I have a site on angular (e.g: app-client.com), where every piece of data comes from another REST API site (e.g: app-api.com). The app-client.com is only a bunch of html, css, and javascript files, ...

I have a site on angular (e.g: app-client.com), where every piece of data comes from another REST API site (e.g: app-api.com). The app-client.com is only a bunch of html, css, and javascript files, ...

  1. twitter oauth without callback url
  2. twitter without oauth
  3. twitter oauth not working
  4. twitter api without oauth

I coded as screenshot to get data from the MySQL database. I added JavaScript codes to change Accept button to Accepted when clicked and Decline button to Declined when clicked. I want to keep those ...

I coded as screenshot to get data from the MySQL database. I added JavaScript codes to change Accept button to Accepted when clicked and Decline button to Declined when clicked. I want to keep those ...

  1. keeping the button pressed

Let's take an example in javascript var b = function(){ var key = {}; var result = []; var a = [{people: "people1"}, {people: "people2"}, {people: "...

Let's take an example in javascript var b = function(){ var key = {}; var result = []; var a = [{people: "people1"}, {people: "people2"}, {people: "...

  1. object value javascript mdn
  2. get value object javascript
  3. key value object javascript
  4. change value object javascript
  5. add value object javascript
  6. set value object javascript
  7. update value object javascript
  8. default value object javascript
  9. replace value object javascript
  10. find value object javascript
  11. check value object javascript
  12. delete value object javascript
  13. remove value object javascript
  14. copy value object javascript
  15. max value object javascript
  16. input value object javascript
  17. assign value object javascript
  18. push value object javascript
  19. return value object javascript
  20. access value object javascript