jQWidgets Forums

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: kanban new items order kanban new items order #85682

    ksaidi
    Participant

    Hi Iourivalos,

    Thx for your help. i have already found a workaround like yours.
    I also get the items DIVs position by their column id.

    function getListOrder(id) {
         var list = document.getElementById(id).childNodes;
         var listLength = list.length;
         var i=0;
         var res = [];
            
         for(var i=0; i<listLength; i++){
              var chaine = list.item(i).id;
              var tableau = chaine.split("_");
              var indexAuditee = tableau[1];
              res.push(indexAuditee);
         }
         var chaine = res.toString();
         return chaine;
    } 
    var listAuditees = getListOrder("kanban-column-container-0");
    var listAuditeesAudit = getListOrder("kanban-column-container-1");

    ksaidi
    Participant

    I found !
    to refresh all the kanban content i’m using removeItem and addItem,
    it works for me !


    ksaidi
    Participant

    I’m also using a kanban component and i’m facing the same problem.
    There is no updatebounddata method for kanban…
    So i’m looking for a similar method for kanban.
    Does this method exists ?


    ksaidi
    Participant

    Hi Ivailo,

    Thx a lot dude !!!!
    It works fine !

    in reply to: Kanban: Source JSON Kanban: Source JSON #83988

    ksaidi
    Participant

    Thx ivailo !!!
    it works for me…

    in reply to: Kanban: Source JSON Kanban: Source JSON #83770

    ksaidi
    Participant

    Yep,

    Hard to make it work !!!!
    Need help…
    here is my code :

    var fields = [
                     { name: "lastname",     type: "string" },
                     { name: "firstname",  type: "string" },
                     { name: "role", map: "label", type: "string" },
                     { name: "customer",  type: "string" },
                     { name: "color",   type: "string" }
            ];
    
            var source =
             {
                 localData: [{"lastname":"AAAAAA","firstname":"BBBBB","label":"NOT SPECIFIED","customer":"CCCCC","color":"#D8D8D8"}],
                 dataType: "json",
                 dataFields: fields
             };
    
    var dataAdapter = new $.jqx.dataAdapter(source, {
                    loadComplete: function (records) {
                        // get data records.
                        var records = dataAdapter.records;
                        // get the length of the records array.
                        var length = records.length;
                        // loop through the records and display them in a table.
                        var html = "";
                        for (var i = 0; i < 20; i++) {
                            var record = records[i];
                            html += "<tr>";
                            html += "<td>" + record.lastname + "</td>";
                            html += "<td>" + record.firstname+ "</td>";
                            html += "<td>" + record.role+ "</td>";
                            html += "<td>" + record.customer+ "</td>";
                            html += "<td>" + record.color+ "</td>";
                            html += "</tr>";
                        }
                        console.log(html);
                        
                    },
                    loadError: function (jqXHR, status, error) {
                    },
                    beforeLoadComplete: function (records) {
    
                    }
                });
                // perform data binding.
                dataAdapter.dataBind();

    An error on console log : record undefined.
    I don’t know what is wrong…

    in reply to: Kanban: Source JSON Kanban: Source JSON #83758

    ksaidi
    Participant

    Hi Ivailo,

    Thx for your reactivity.
    I’m gonna try right now…

    KS

    in reply to: Disable right click Disable right click #83629

    ksaidi
    Participant

    Hi Ivailo,

    Thx for the answer but it’s not exactly what i want.
    You can test it here : http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/dropdowngrid.htm

    As a left click, a right click (and even a click on wheel mouse) on the dropdown list expand the content.
    I just want the list to expand only on a left click.

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