jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • gavasilache
    Participant

    Looking at the code that is beeing generated by the tag helpers, in the source object, in the DataFields array the column is already set to be of the type “string”, but in the localData array, the NumAux field is a number already, so I think that it’s getting converted somewhere in the middle and it gets to the client as a number, and then in the dataAdapter it’s converted to a string again, but it’s too late. Here is the code:

    var source = {
    dataFields: [{
    name: ‘NumAux’,
    type: ‘string’
    }],

    localData: [{
    ‘NumAux’: 7454,
    ‘IdEmpColDES’: 30520
    },
    {
    ‘NumAux’: 96598,
    ‘IdEmpColDES’: 0
    }]

    };

    var adapter = new $.jqx.dataAdapter(source);

    As you can see, the field gets to this point as a number, and it should get here as a string. The first field, for instance, should get there as “00007454”, but its 7454.


    gavasilache
    Participant

    I’ve tried that but the result is exactly the same.

Viewing 2 posts - 1 through 2 (of 2 total)