tony

Forum Replies Created

Viewing 15 replies - 6,376 through 6,390 (of 7,981 total)
  • Author
    Replies
  • in reply to: Server Side Form Validation #85199
    tony
    Keymaster

    Hello,

    It is possible and I use this technique in all my projects.

    afterSubmit : function (data, postdata) {

    // data is the data returned from your server

    // postdata is the array posted to the server

    // this event should return array indicating if the post is ok

    // Suppose you return text from server something like

    // error: The post has error for error; and ok:data is ok if ok

    // then

    result = data.responseText.split(“:”);

    if (result[0] = “error” ) {

    return [false,result[1],””];

    } else {

    return [true,””,””];

    }

    Hope this help

    Regards

    Tony

    in reply to: client side JSON and SortGrid behaving oddly! #85198
    tony
    Keymaster

    Hello,

    Use the sorttype property in colModel. Also refrer to docs.

    Regards

    Tony

    in reply to: Client side manipulation #85197
    tony
    Keymaster

    Hello,

    Sorry it is my bad. The option is for filterGrid.

    Also when the cell is edited and saved I use addClass(“dirty-cell”)

    When you wan to remove this you can removeClass(“dirty-cell”)

    also you can use hasClass too to determine if the cell is dirty.

    To get these cells use getChagedCells('dirty') method

    Regards

    Tony

    in reply to: Export jQGrid data to Excel – Solution that worked for me #85196
    tony
    Keymaster

    Hello,

    Thank you for shering the code with the community.

    Regards

    Tony

    in reply to: Search when using a data array #85195
    tony
    Keymaster

    Hello,

    Local filtering and search currently is not supported.

    Regards

    Tony

    in reply to: Add Form Labels #85194
    tony
    Keymaster

    Hello,

    Try

    onclickPgButtons : function (which, formid, rowid) {

    $(“#sData”,formid).trigger(“click”);

    }

    Regards

    Tony

    in reply to: Params not being saved in cookie #85193
    tony
    Keymaster

    Hello,

    It is quite possible.The max size of cookie is browser depended.

    Regards

    Tony

    in reply to: loadComplete/setRowData : elem[0] undefined #85192
    tony
    Keymaster

    Hello,

    The most common problem here is maybe that you have no consistency in the colModel and data returned from server – i.e you have in the data more columns, but not in colModel

    Regards

    Tony

    in reply to: cells not 100% width… #85191
    tony
    Keymaster

    Hello,

    One additional note

    hidden:'true' will never work – instead use

    hidden:true

    Regards

    Tony

    in reply to: Beginner help – JSON data not being formatted #85190
    tony
    Keymaster

    Hello,

    I think you should construct the grid first and then use another url to obtain the data. If your data and grid are in the same php call page nothing will be happen. To avoid this you can solve this using datastr parameter first. Read the docs.

    Regards

    Tony

    in reply to: Inline editing : Enter and Tab issue #85189
    tony
    Keymaster

    Hello,

    In the upcomming release 3.4 there will be a method that save the data locally without using the ajax.

    Regards

    Tony

    in reply to: Grey out not editable field on edit form #85188
    tony
    Keymaster

    Hello,

    There is documentation. From this site Click on Documentation and then

    jqGrid->Form Editing->Edit Row – look at events there is example.

    In your case

    jQuery(”#editgrid”).editGridRow(gr,

    {width: 400,

    height:280,

    modal:false,

    reloadAfterSubmit:false,

    onInitializeForm : function (formid) {

    // your code goes here

    }

    });

    Regards

    Tony

    in reply to: Problem with verticle bar #85187
    tony
    Keymaster

    Hello,

    Currently I can not reproduce this in my IE7

    Regards

    Tony

    in reply to: Grid header height #85186
    tony
    Keymaster

    Hello,

    I never try, but you can experiment with height in setLabel something like

    setLabel(0, “Invoice Number” ,{color:'red', 'text-align':'center','font-size':'15px', 'word-wrap': 'break-word', height:'30px'})

    Regards

    Tony

    in reply to: checkbox not showing #85185
    tony
    Keymaster

    Hello,

    In your case you will have checkbox when you edit the data. To solve this use the new formatter. You just need this:

    { name:

    'BD', index: 'BD', width: 40, align: 'center', sortable: false,

    formatter:'checkbox',editoptions:{value:“true:false”}},

    I.e replace edittype with formatter. Do not forget to include the jquery.fmatter.js from 3.4 beta.

    Regards

    Tony

Viewing 15 replies - 6,376 through 6,390 (of 7,981 total)

Stay connected with us in your favorite flavor!