jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: ToolBar position ToolBar position #68819

    ypahnu
    Participant

    i did something like

    
    myToolBar = $('#mytext').prev().html();
    $('#topbar').prepend(myToolBar);
    

    but the toolbar don’t work 🙁
    I bealeve since Editor toolbar don’t have any ID it’s selected by prev() too.


    ypahnu
    Participant

    I have done something similar

    $("#myExcel").on('cellendedit', function (event){
    var args = event.args;
    
       if(dataField==='qty'){                
                      
         rowData.total = rowData.price * value;
         $("#myExcel").jqxGrid('updaterow', args.rowindex, rowData);
      }
      // u can add same to price
    }
    
    in reply to: Multicell Copy-Paste Multicell Copy-Paste #68503

    ypahnu
    Participant
    if(rowBoundIndex === -1 && dataField==="tipo"){
                    console.log("ADD row");
                    console.log(rowData);
                    $("#myExcel").jqxGrid('addrow', null, {tipo: value});

    My solution, can’t find any other way .. just started to day on grids. Thanks

    in reply to: Multicell Copy-Paste Multicell Copy-Paste #68500

    ypahnu
    Participant

    How about if I paste 2 rows into a grid with 1 row?

    It would be great that more rows appear as I past it from excel.
    I notice that

    $("#myExcel").on('cellendedit', function (event)
    console.log(event.args.rowindex);

    show 0 on 1st row
    show -1 on 2nd row,

    There’s anyway to extend the size of the grid on paste?

    My humble solution

    if(rowBoundIndex === -1 && dataField==="tipo"){
                    console.log("ADD row");
                    console.log(rowData);
                    $("#myExcel").jqxGrid('addrow', null, {tipo: value});
    }
Viewing 4 posts - 1 through 4 (of 4 total)