jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • in reply to: problem with dynamic columns problem with dynamic columns #64505

    jbrahy
    Participant

    ok, I figured it out. I was using arrays where I needed objects.

    datafields[header_index] = [];
    columns[header_index] = [];

    had to be

    datafields[header_index] = {};
    columns[header_index] = {};
    in reply to: problem with dynamic columns problem with dynamic columns #64504

    jbrahy
    Participant

    It looks like it’s this section of jqx-all.js that is having problems. aq = ak.map(an)

    ak is an array with name and type defined as name: “Server_Name”, type: “string” and has map and part of the prototype of an array.
    an is an object with these properties.

    Server_Name: “Server 1”
    Server_Size: “911481”

    if (ak.map) {
        if (i.isFunction(ak.map)) {
            aq = ak.map(an)
        } else {
            var ai = ak.map.split(ag.mapChar);
            if (ai.length > 0) {
                var am = an;
                for (var aj = 0; aj < ai.length; aj++) {
                    if (!am) {
                        continue
                    }
                    am = am[ai[aj]]
                }
                aq = am
            } else {
                aq = an[ak.map]
            }
        }
        if (aq != undefined && aq != null) {
            aq = aq.toString()
        } else {
            if (aq == undefined && aq != null) {
                aq = ""
            }
        }
    }

    jbrahy
    Participant

    um, I can’t get anything to drag and drop between groups in that example.

Viewing 3 posts - 16 through 18 (of 18 total)