jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts

  • Robby
    Member

    Hi Peter,

    I have used “cellbeginedit” to get what column has being edited. Can I use something like “return false;” which can stop the
    editing of column and don’t let “updaterow” event to fire ?

    Ravi Joshi

    in reply to: Error : Invalid JSON primitive Error : Invalid JSON primitive #16101

    Robby
    Member

    Don’t worry I got it working now. There was a mistake from my side.

    Ravi J

    in reply to: Error : Invalid JSON primitive Error : Invalid JSON primitive #16087

    Robby
    Member

    Hi Peter,

    I have changed my SOURCE object as following :

            source = {
    datatype: "json",
    type: 'POST',
    datafields: [
    { name: 'Kontonummer', type: 'string' },
    { name: 'Navn', type: 'string' },
    { name: 'Adresse1', type: 'string' },
    { name: 'Adresse2', type: 'string' },
    { name: 'Adresse3', type: 'string' },
    { name: 'UserCount', type: 'string' },
    { name: 'CCOrderEmail', type: 'string' }
    ],
    formatdata: function (data) {
    $('#page').BlockUI('Loading....');
    var num = parseInt(data.pagenum) + parseInt(1);
    var checked = $('#chkBrugere').is(':checked');
    return "{'Kontonummer': '" + $('#txtKontonummer').val() + "', 'WebShopBrugere': '" + checked + "', 'Navn': '" + $('#txtNavn').val() + "', 'FreeText': '" + $('#txtFreeText').val() + "', 'Department': '" + $('#ddlAfdelinglist').val() + "', 'PageSize': '" + data.pagesize + "', 'PageNumber': '" + num + "'}";
    },
    cache: false,
    root: 'Debitors',
    url: '/ajax/webshop-helper.aspx/GetDebtors'
    };

    But getting same error.
    It’s only working when I have blank values in input controls.

    Thanks.


    Robby
    Member

    Thanks Peter, I have removed the “updatebounddata” from the script.

    I have one more requirement within Grid but don’t know whether its there or not. Sometime I am loading around 1000 Records
    in the Grid with Page Size 250 or 500 or many be more then I need to scroll down the page to hit next page button from paging
    section. Is there any way to duplicate the same paging section at the top of Grid ? So I don’t have to go at the bottom.

    Thanks,
    Ravi Joshi


    Robby
    Member

    I got it working after resigning the Value of “dataAdapter” to the grid again under Update section.

            $("#accountlist").jqxGrid({ source: dataAdapter });
    $("#accountlist").jqxGrid('updatebounddata');

    Thanks.

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