jQuery UI Widgets Forums Grid my grid return [object Object], return nothing..

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 4 years, 3 months ago.

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

  • gy.lee
    Participant

    json file

    
    data = {
    "information1":true,
    "information2":[1],
    "information3":[{
        "name":1,
        "type": "computer"
    },{
        "name":1,
        "type": "computer",
        "grouplist":[ 0, 0, 0, 0, 0, 0, 0, 0 ]
    }],
    "information4":{
        "content":[{ "id": "1", "no": "1"},
                   { "id": "2", "no": "2"}],
        "first":"true"
    }
    }

    vue file

    
    data: function () {
    			return {
    				datas: null,
    				getWidth: '100%',
    				dataAdapter: new jqx.dataAdapter(this.source), //dataAdapter
    				columns: [
    					{text: 'information4', datafield: 'information4'},
    					{text: 'name', datafield: 'name'},
    					{text: 'id', datafield: 'id'}
    				]
    			}
    		},
    		beforeCreate: function () {
    			this.source = {
    				datatype: 'json',
    				mapChar: '>',
    				datafields: [
    					{name: 'information4', map: 'information4'}, // [object Object]
    					{name: 'content', type: 'array', map: 'information4>content'},// show nothing
    					{name: 'name', map: 'information4>content>name'},// show nothing
    					{name: 'information3', type: 'array'},// show nothing
    					{name: 'id', type: 'number', map: 'information3>id'} // show nothing
    				],
    				root: 'data',
    				url: '/configure/test_list.json',
    				pagenum: '0',
    				pagesize: '20',
    				data: 
    					{
    						network_id: "1",
    						term_type: "2h"
    					}
    			};
    
    		},
    

    Martin
    Participant

    Hello gy.lee,

    This topic is duplicated.
    Please refer to Topic.

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.