jQWidgets Forums

Forum Replies Created

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

  • sadranyi
    Member

    i still have a blank grid
    when i download the zip file which folders should i include in my project ?


    sadranyi
    Member

    how can i send the xml without the editor striping it
    i have tried just about everything u listed in the help topic but still having the same issue.

    i really need it for i presentation that will lead to purchase


    sadranyi
    Member

    i also have problems loading my xml data it wont show in the grid
    this is the code

    js file
    ————————————————————————–
    var theme = getTheme();
    var repurl = “../data/reps.xml”;

    // Preparing Data
    var repSource =
    {
    datatype: “xml”,
    datafields:
    [
    { name: ‘RepName’ },
    { name: ‘RepCode’ },
    { name: ‘Branch’ },
    { name: ‘CRDNumber’ },
    { name: ‘NumberofAccounts’ },
    { name: ‘NumberofTrades’ },
    { name: ‘NumberofCancels’ },
    { name: ‘AverageCommission’ },
    { name: ‘AveragePH’ },
    { name: ‘AverageCOA’ },
    { name: ‘AverageTurnover’ }
    ],
    root: “Reps”,
    record: “Rep”,
    id: “RepID”,
    url: repurl
    };

    var repDataAdapter = new $.jqx.dataAdapter(repSource, {
    downloadComplete: function (data, status, xhr) { },
    loadComplete: function (data) {},
    loadError: function (xhr, status, error) { }
    });

    // Initialize Grid
    $(“#repGrid”).jqxGrid(
    {
    width: 760,
    source: repDataAdapter,
    theme: theme,
    //pageable: true,
    //autoheight: true,
    //sortable: true,
    //altrows: true,
    //selectionmode: ‘singlecell’,
    //enabletooltips: true,
    columnsresize: true,
    columns:
    [
    { text: ‘Rep Name’, datafield: ‘RepName’, width: 100 },
    { text: ‘Rep Code’, datafield: ‘RepCode’, width: 100 },
    { text: ‘Branch’, datafield: ‘Branch’, width: 100 },
    { text: ‘CRD Number’, datafield: ‘CRDNumber’, width: 100, cellsalign: ‘right’ },
    { text: ‘No. of Accounts’, datafield: ‘NumberofAccounts’, width: 120, cellsalign: ‘right’},
    { text: ‘No. of Trades’, datafield: ‘NumberofTrades’, width: 110, cellsalign: ‘right’},
    { text: ‘No. of Cancels’, datafield: ‘NumberofCancels’, width: 120, cellsalign: ‘right’},
    { text: ‘Avg Comm.’, datafield: ‘AverageCommission’, width: 100, cellsalign: ‘right’},
    { text: ‘Avg P & H’, datafield: ‘AveragePH’, width: 100, cellsalign: ‘right’},
    { text: ‘Avg COA’, datafield: ‘AverageCOA’, width: 100, cellsalign: ‘right’},
    { text: ‘Avg Turnover’, datafield: ‘AverageTurnover’, width: 120, cellsalign: ‘right’},
    ]
    });
    ————————————

    xml file
    —————–

    Smith, Paul
    ABC
    Wall ST
    21378945
    50
    1050
    3
    539
    45
    0.04
    2.2

    Ballas, Peter
    BCA
    Wall ST
    56123987
    85
    1785
    5
    85.47000000000001
    30
    0.055
    3.7

    Barnet, Joe
    GRP
    Wall ST
    49638251
    92
    1932
    6
    155.05
    30
    0.037
    5.4

    Smith, Bill
    123
    Wall ST
    21654654
    110
    2310
    7
    93.10000000000001
    50
    0.08
    7.8

    Hutchens, Dan
    WZD
    Wall ST
    51651651
    200
    4200
    12
    408.9225
    30
    0.05
    6

    Lee, Eric
    BE4
    Wall ST
    66651566
    105
    2205
    7
    3402.0000000000005
    45
    0.021
    4.1

    Lord, Dustin
    DFH
    Wall ST
    77656565
    66
    1386
    4
    11690.000000000002
    30
    0.01
    2.9

    Abate, John
    SE7
    Wall ST
    65654654
    20
    420
    1
    753.9000000000001
    50
    0.025
    3.4

    Rupp, Mike
    883
    Wall ST
    93321986
    77
    1617
    5
    222.40750000000003
    50
    0.06
    5.7

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