jQWidgets Forums

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Grid Group error Grid Group error #100203

    pablosym
    Participant

    Gracias Martin!

    in reply to: Grid Group error Grid Group error #100183

    pablosym
    Participant

    function cargarGrilla(objData) {

    //localData = obj;

    var source =
    {
    dataType: “json”,
    pagesize: 100,
    localdata: objData,
    datafields:
    [
    { name: ‘fecha’, type: ‘string’ },
    { name: ‘razonSocial’, type: ‘string’ },
    { name: ‘remito’, type: ‘string’ },
    { name: ‘nombre’, type: ‘string’ },
    { name: ‘observacion’, type: ‘string’ },
    { name: ‘codigo’, type: ‘string’ },
    { name: ‘producto’, type: ‘string’ },
    { name: ‘cantidad’, type: ‘int’ },
    { name: ‘costo’, type: ‘float’ }
    ]
    };

    var dataAdapter = new $.jqx.dataAdapter(source);

    // initialize jqxGrid
    $(“#jqxgrid”).jqxGrid(
    {
    width: ‘100%’,
    height: ‘470px’,
    source: dataAdapter,
    editable: false,
    selectionmode: ‘singlerow’,
    editmode: ‘click’,
    groupable: true,
    groups: [‘fecha’, ‘razonSocial’],
    //groupsrenderer: groupsrenderer,
    showgroupaggregates: true,
    showstatusbar: true,
    showaggregates: true,
    statusbarheight: 25,
    autoshowfiltericon: true,
    filterable: true,
    sortable: true,
    theme: ‘office’,
    pageable: true,
    pagesizeoptions: [‘100’, ‘500’, ‘1000’],
    localization: getLocalization(‘es-AR’),
    columnsresize: true,
    rendered: function (type) {
    if (type == “full”) {
    $(“#jqxgrid”).jqxGrid(‘expandallgroups’);
    }
    },
    columns: [
    { text: ‘FECHA’, datafield: ‘fecha’, cellsformat: ‘d’, cellsalign: ‘center’, align: ‘center’ },
    { text: ‘PROVEEDOR’, datafield: ‘razonSocial’, align: ‘center’ },
    { text: ‘REMITO’, datafield: ‘remito’, align: ‘center’ },
    { text: ‘USUARIO’, datafield: ‘nombre’, align: ‘center’ },
    { text: ‘OBSERVACION’, datafield: ‘observacion’, align: ‘center’ },
    { text: ‘CODIGO’, datafield: ‘codigo’, align: ‘center’ },
    { text: ‘PRODUCTO’, datafield: ‘producto’, align: ‘center’ },
    {
    text: ‘CANTIDAD’, datafield: ‘cantidad’, aggregates: [“sum”], cellsalign: ‘right’, align: ‘center’, cellsformat: ‘d2’,
    cellsrenderer: function (row, column, value, defaultRender, rowData) {
    if (value.toString().indexOf(“Sum”) >= 0) {
    return defaultRender.replace(“Sum:”, “Tot “);
    }
    },
    aggregatesrenderer: function (aggregates, column, element) {
    if (aggregates.sum !== undefined)
    return ‘<div style=”position: relative; margin-top: 4px; margin-right:5px; text-align: right; overflow: hidden;”>’ + “Total” + ‘: ‘ + aggregates.sum + ‘</div>’;

    }
    },
    {
    text: ‘COSTO’, datafield: ‘costo’, aggregates: [“sum”], cellsalign: ‘right’, align: ‘center’, cellsformat: ‘d2’,
    cellsrenderer: function (row, column, value, defaultRender, rowData) {
    if (value.toString().indexOf(“Sum”) >= 0) {
    return defaultRender.replace(“Sum:”, “Tot “);
    }
    },
    aggregatesrenderer: function (aggregates, column, element) {
    if (aggregates.sum !== undefined)
    return ‘<div style=”position: relative; margin-top: 4px; margin-right:5px; text-align: right; overflow: hidden;”>’ + “Total” + ‘: ‘ + aggregates.sum + ‘</div>’;

    }
    }
    ]
    });


    pablosym
    Participant

    Excellent, thanks Peter


    pablosym
    Participant

    Hi Peter
    For me it is an issue because it makes a total sub by group that is added
    If I have 3 groups gives me a total sub for each of them
    How can I add an image for you to see?

    in reply to: context menu movile context menu movile #90728

    pablosym
    Participant

    Hi Peter,
    If I already know that there is no right button on the mobile, that’s why I want to make it when you click on the contextual menu, with what you said I worked fine, but from the web I can right click and activate the contextual menu 2 times Enter the same event click, so I ask if there is a way to differentiate which button is pressed from the web or directly cancel the right button of the context menu

    in reply to: context menu movile context menu movile #90722

    pablosym
    Participant

    Well it works Thanks, now I have to see how to cancel the right button, since the 2 are activated, is there any way to identify it?

    in reply to: context menu movile context menu movile #90720

    pablosym
    Participant

    Good idea, I’m trying now that when you click on the appointment, open the contextual menu, it opens, but when you release the mouse button it closes automatically and I do not understand why, you can help me thanks

    $(“#scheduler”).on(‘appointmentClick’, function (event) {
    // esperar = setTimeout(aver(event), 4000); //Llamamos a settimeout de la manera correcta

    event.preventDefault();

    $(‘#scheduler’).jqxScheduler(‘openMenu’);

    event.preventDefault();

    });

    in reply to: context menu movile context menu movile #90717

    pablosym
    Participant

    Thanks, there is no way to realize keeping pressed on the appointment for a few seconds and enable the contextual menu?

    in reply to: Disable day specific Disable day specific #83838

    pablosym
    Participant

    Hi Ivailo
    Its work fine!, Thank you!

    in reply to: load data json ajax load data json ajax #83649

    pablosym
    Participant

    Hi
    To make it work I had to serialize json in a txt file, I can not send the json response directly from the web service. why?


    pablosym
    Participant

    Thanks Peter, but as I get all the recurrence of a appoiment?
    Could you give me an example of that


    pablosym
    Participant

    Hi, could you please give me an example of how to persist in a database full agenda with a appointment repeatContainer in event Add?
    thxs

    $(“#scheduler”).on(‘appointmentAdd’, function (event) {
    var args = event.args;
    var appointment = args.appointment;
    });


    pablosym
    Participant

    Hi Peter!, thanks a lot. work fine

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