tony

Forum Replies Created

Viewing 15 replies - 7,696 through 7,710 (of 7,981 total)
  • Author
    Replies
  • in reply to: how to add a url for cell? #82480
    tony
    Keymaster

    Yes you should add a url to returned data.

    in reply to: Problems with Height:100% #82475
    tony
    Keymaster

    This forum will be changed soon.

    Regards

    in reply to: How to handle error from the server ? #82474
    tony
    Keymaster

    Sorry this event is not documented.

    Regards

    in reply to: How to handle error from the server ? #82473
    tony
    Keymaster

    Use a loadError Event in the params, something like

    loadError: function (xhr,st,err)
    {
    ..
    }

    See docs
    Regards

    in reply to: Bug in getRowData() handling of non-breaking spaces #82472
    tony
    Keymaster

    Thanks,

    I will corect this

    Regards
    Tony

    in reply to: Submit form to function instead of editurl #82471
    tony
    Keymaster

    If you want to run this way you should not define

    function SaveRecord()
    {

    }

    but
    var SaveRecord = function() {

    }

    Regards
    Tony

    in reply to: Problems with Height:100% #82462
    tony
    Keymaster

    Setting the 100% height of the table means the table will occupy 100% of the available space vertically. Here available space means space of it’s parent control.

    Not sure if this will work, but try to set a table in div which height is 100%
    Something like
    div style=”height:100%”
    table id=”mygrid”
    end div

    A interesting article can be found here:
    http://apptools.com/examples/tableheight.php

    Regards
    Tony

    in reply to: DropDowns in Inline Editing #82461
    tony
    Keymaster

    Reg,

    I will check the second note. As usual IE has its own standarts.

    Regards
    Tony

    in reply to: Inline Editing Twice #82460
    tony
    Keymaster

    Reg,

    This not a bug, but feature 🙂 (it is a way you set it in onSelectRow)

    Lets look in onSelectRow event – I suppose you use the code provided in the examples – right?

    onSelectRow: function(id) {
    if(id && id!==lastsel){
    jQuery(‘#rowed3’).restoreRow(lastsel);
    jQuery(‘#rowed3’).editRow(id,true);
    lastsel=id;
    }
    }

    What is here? You select a row – the condition is that the id is selected and this id is not equal to the last selected row – lastsel.
    You make some changes and press enter to save the row. After this the last selected row lastsel is equal to the id, but you stay on this row.
    You try to edit it again, but surprise it is not editable since of this condition – if(id && id!==lastsel).
    I leave this open to you haw to overcome this.

    Regards
    Tony

    in reply to: Submit form to function instead of editurl #82459
    tony
    Keymaster

    phipps73,

    Not sure that this will work, but you can try this.
    In editurl set a dummy existing file to the server, then use a beforeSubmit event construct and send a js function to the server with the data.

    Regards
    Tony

    in reply to: how to add a url for cell? #82458
    tony
    Keymaster

    wzhyu,

    You can do this in the returned data – i.e the returned data should contain a href link to a page.

    Regards
    Tony

    in reply to: record changes in xml instead request to server #82457
    tony
    Keymaster

    julizar,

    I think – yes. First set in editurl a dummy existing file in the server.
    Then after the row is saved you can use getRowData method to obtain the changed values. This is array of type name:value. So after this you can iterate the array and make the appropriate xmlstring.

    Regards

    in reply to: use javascript XML object in jqGrid #82451
    tony
    Keymaster

    No need to do that.

    You just need to pass xmlObj.responseText as data string

    Kind regards
    Tony

    in reply to: POST data … #82450
    tony
    Keymaster

    To save the row I use jQuery $.post with 3 params – the url, the array that is posted, and the callback. So my question is: Which version of jQuery do you use?

    Regards
    Tony

    in reply to: Strange error: cur has no properties #82449
    tony
    Keymaster

    The problem is here:
    jsonReader: {
    repeatItems: false,
    memberid:”0″
    }

    Should be
    jsonReader: {
    repeatItems: false,
    id:”memberid”
    }

    Or better:
    …jQgrid({
    ….
    colModel[{name:’memberid’,key:true…..}
    …..
    ],
    …..
    jsonReader: {
    repeatItems: false,
    }

Viewing 15 replies - 7,696 through 7,710 (of 7,981 total)

Stay connected with us in your favorite flavor!