jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Field math operation Field math operation #66936

    yllsuarez
    Participant

    great

    in reply to: Grid inside jqxWindows freezed Grid inside jqxWindows freezed #66777

    yllsuarez
    Participant

    Dimitar, when include an Adapter instead of the array source all became clear.

    Thanks a lot.

    in reply to: Scrolling a Windows Scrolling a Windows #66776

    yllsuarez
    Participant

    Thanks Nadezhda.

    When I start using an Adapter, all became clear.

    in reply to: Grid inside jqxWindows freezed Grid inside jqxWindows freezed #66775

    yllsuarez
    Participant

    Hi Dimitar, thanks a lot for ur time.

    I follow your suggestion, but the grid is still showed the first time nice, but the others time that is called the data is not refreshed.

    I am using the code below,

    $(“#MenuTasks”).on(‘itemclick’, function (event) {
    var args = event.args;
    var rowindex = $(“#assignedtask”).jqxGrid(‘getselectedrowindex’);
    var dataRecord = $(“#assignedtask”).jqxGrid(‘getrowdata’, rowindex);

    switch ( $.trim($(args).text()) ) {
    case “Edit Tasks Reported”:
    BuildReportedGrid( “Task”, dataRecord);
    $(“#popupWindow”).jqxWindow(‘show’);
    break;
    case “New Task Report”:
    NewWSWindows(“Task”, dataRecord);
    break;
    }
    });

    //Initialize PopMenu for grids
    $(“#popupWindow”).jqxWindow({
    width: 600, height:
    400, resizable: true,
    isModal: true,
    autoOpen: false,
    cancelButton: $(“#Cancel”),
    modalOpacity: 0.01,
    animationType: ‘fade’,
    initContent: function() {
    $(“#reportedgrid”).jqxGrid({
    width: 550,
    //source: weeklysource,
    autoHeight: true,
    sortable: true,
    showstatusbar: true,
    statusbarheight: 50,
    showfilterrow: true,
    filterable: true,
    showaggregates: true,
    selectionmode: ‘singlerow’,
    columns: [
    { text: ‘ID’, datafield: ‘id’},
    { text: ‘Task’, datafield: ‘title’, columntype: ‘textbox’, filtertype: ‘input’, width: 400 },
    { text: ‘Report’, datafield: ‘effort’ , cellsalign: ‘right’ , width: 90 , aggregates: [‘sum’]}
    ]
    });
    }
    });

    function BuildReportedGrid( reportype, datarow) {

    var currentws = _.where(myweekly, { updtype: reportype, title: datarow.title} );

    var weeklysource = {
    localdata: currentws,
    datafields:
    [
    { name: ‘id’ , type: ‘number’ },
    { name: ‘title’, type: ‘string’ },
    { name: ‘effort’ , type: ‘number’ }
    ],
    datatype: “array”
    };

    $(“#reportedgrid”).jqxGrid({ source: weeklysource });

    }

    in reply to: Scrolling a Windows Scrolling a Windows #66718

    yllsuarez
    Participant

    I am defining the jqWindow in the ready() function as follow:
    $(“#popupWindow”).jqxWindow({ width: 600, height: 400, isModal: true, autoOpen: false, cancelButton: $(“#Cancel”), modalOpacity: 0.01 });

    So, the popupWindow is called through this function:
    function ShowRowDetails(typeTask, dataRecord) {
    BuildReportedGrid( typeTask, dataRecord);
    $(“#popupWindow”).jqxWindow(‘show’);
    }

    In BuildReportedGrid I populated a grid, that, as I said before the first show the real data, after that never refresh or repaint the jqWindows.

    in reply to: Grid inside jqxWindows freezed Grid inside jqxWindows freezed #66714

    yllsuarez
    Participant

    Hi Dimitar,

    I don’t know exactly where initialize the jqWindow. I need send some parameters in order to build the jqGrid inside the jqWindow.

    I am defining the jqWindow in the ready() function as follow:
    $(“#popupWindow”).jqxWindow({ width: 600, height: 400, isModal: true, autoOpen: false, cancelButton: $(“#Cancel”), modalOpacity: 0.01 });

    So, the popupWindow is called through this function:
    function ShowRowDetails(typeTask, dataRecord) {
    BuildReportedGrid( typeTask, dataRecord);
    $(“#popupWindow”).jqxWindow(‘show’);
    }

    In BuildReportedGrid I populated a grid, that, as I said before the first show the real data, after that never refresh or repaint the jqWindows.

    in reply to: Scrolling a Windows Scrolling a Windows #66635

    yllsuarez
    Participant

    Thanks for take me on count.

    I put a Grid inside a jqxWindows, when the grid is showed the first time work great.

    But, the second time grid show values but i can not select any row, looks like freezed.

    Also if the Grid is largest in Height the Windows not show the Scrooll.

    Regards

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