tony

Forum Replies Created

Viewing 15 replies - 7,966 through 7,980 (of 7,981 total)
  • Author
    Replies
  • in reply to: header vs grid column width #81917
    tony
    Keymaster

    This bug is corrected. Maybe you have a older copy of jqGrid. Download the last revision from:
    http://www.trirand.com/jqgrid/js/jquery.jqGrid.js

    in reply to: Row Editing Example #81915
    tony
    Keymaster

    Ashish Sharma,

    with a little modifications and some tricks maybe you can do this in easy way.
    I have updated the saveRow function. Now the full parametres are:
    saveRow(rowid, succesfunc, url, extraparam, aftersavefunc) where:
    rowid is the id of the row;
    successfunc – this function accept the server response and should return true or false if the update is ok. If not set the default return value is true. This function is called before the actual update of the grid data (client side);
    url – you can specify other url, which override the editurl parameter – default null;
    extraparam – this is a array with extra parameters, than can be passed to the server;
    aftersavefunc(rowid,serverResponse) – to this function are passed two parameters – the id of the row and the response from the server and is called after update the data (client side)

    So in your case you should use aftersavefunc.
    The trick is that you should return the needed data from the server after the update and use it in aftersavefunc to update the fields in the row.

    You can download the updated revision from:
    http://www.trirand.com/jqgrid/js/jquery.jqGrid.js

    Note that the demo package and jqGrid files are not updated.

    P.S. I do not have make the full tests, so if you encounter any error please let me known

    Regards
    Tony

    in reply to: Row Editing Example #81913
    tony
    Keymaster

    Ashish Sharma,

    Could you please describe in more detail what you try to do?
    Which methods do you use?
    If possible please post a code.

    in reply to: reloadGrid + cache problem (IE,Mozilla) #81910
    tony
    Keymaster

    Aha,
    Here is your problem (it is actually not a problem):
    function action(){
    id = jQuery(“#element”).getSelectedRow();
    jQuery.get(); // ajax call to my server (update data), no return data;
    jQuery(“#element”).trigger(“reloadGrid”); // refresh grid after ajax call
    }
    You make two ajax call – the first is to update data and the second is to retrieve it. Since the calls are asynchrounus it is not known which is the first – the update or the read.
    To resolve the problem you should make something like this:
    function action(){
    id = jQuery(“#element”).getSelectedRow();
    jQuery.get(…,async:false,…); // ajax call to my server (update data), no return data;
    jQuery(“#element”).trigger(“reloadGrid”); // refresh grid after ajax call
    }

    Or the clear method is:
    You should known if the data is updated with success from the server – i.e in your get function you should return some information on what is happen – if the update is ok then call reload grid.
    Regards

    in reply to: reloadGrid + cache problem (IE,Mozilla) #81908
    tony
    Keymaster

    Ok,
    I figured it.
    Download the last revision from:
    http://www.trirand.com/jqgrid/js/jquery.jqGrid.js

    You do not need to specify in the url new Date.
    Please let me known for the result
    Regards
    Tony

    in reply to: reloadGrid + cache problem (IE,Mozilla) #81906
    tony
    Keymaster

    Hi Laurent,
    In my pages I specify in the url option:

    url:’mypage.php?nd=’+new Date().getTime(),

    This prevent the caching.
    I think that this trick should be added in the jqGrid.
    Please tell me if you continue to have problems after adding a new Date.getTime()
    Regards
    Tony

    in reply to: Remember Selected #81905
    tony
    Keymaster

    In the final release I plan to have onSelectRow when a multiselect is true.
    This callback will accept two parameters (iRow, selected) where iRow is the id of row and selected will be the state if the row is selected – true if selected false if unselect.
    Having this you can construct you own array (add selected and remove unselected) with selected values using onSelectRow.
    Regards
    Tony

    in reply to: Moving columns #81904
    tony
    Keymaster

    Hi Jonathan,
    This is good idea, but not applicable when reading data from xml after moving columns – ie the xml is
    data

    datan
    In this case data will be placed not in the right column.
    Instead of that I will think for this in the next release (not in this)

    Tony

    in reply to: Row Editing Example #81901
    tony
    Keymaster

    Sorry about this. I forgot to update the demo package with last version.
    Now you can download the package and test

    Tony

    in reply to: Filter rows #81900
    tony
    Keymaster

    Jonathan,

    This can be done using a searchdb plugin. I have updated this plugin so it can be integrated with the jqGrid. The updated version of serchdb support dropdown 🙂
    In the moment I work hard on documentation and integration with other plugins like serchdb, jqModal, datePicker…
    A lot of examples will be published soon

    Tony

    in reply to: In-line editing #81899
    tony
    Keymaster

    Jonathan,

    This is done and should be published soon. I have add a textarea and checkbox too.

    Tony

    in reply to: DblClick on subGrid #81898
    tony
    Keymaster

    Currently you can not do this.There are no actions attached to the subgrid row if you click or dblclick. This is a good idea on how we can operate on subgrid in the future. Any ideas will be wellcome.

    Regards
    Tony

    in reply to: getJason without data #81897
    tony
    Keymaster

    Thanks for recommendation. I will see what I can do

    Tony

    in reply to: SubGrid and records==0 #81896
    tony
    Keymaster

    Thanks for that.
    The same should be for xml too. I have change little the reading of subgrid – in this case this checking is not needed.

    Tony

    in reply to: Table Height #81895
    tony
    Keymaster

    Thanks,
    This feature is added to the final release.

Viewing 15 replies - 7,966 through 7,980 (of 7,981 total)

Stay connected with us in your favorite flavor!