tony

Forum Replies Created

Viewing 15 replies - 7,951 through 7,965 (of 7,976 total)
  • Author
    Replies
  • in reply to: queston about width and height #81935
    tony
    Keymaster

    trollskog,

    This behavior can be controlled with CSS.
    Access the style sheet and find: table.scroll tbody td item.
    The four parameters with which you can experiment are

    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    height : auto;

    Note that text-overflow is property only for IE.

    Regards
    Tony

    Tony Tomov

    in reply to: question about search in bigset #81933
    tony
    Keymaster

    trollskog,

    The behavior should be changed at server side, not at client side.
    In server side code you maybe may use LIKE %string% and not LIKE string%. Example

    SELECT fld1, fld2 FROM table WHERE fld1 LIKE ‘hou%’ will give you all rows that begin with hou. An the other side:
    SELECT fld1, fld2 FROM table WHERE fld1 LIKE ‘%hou%’ will give you all rows that contain hou.

    Regards
    Tony

    Tony Tomov

    in reply to: roadmap #81932
    tony
    Keymaster

    jmdavid,
    Thank you for pointing me of plugin repository.
    I check the new plugin site – the jqGrid is still available, but not visible – I do not know why.
    About the release. The most tasks are done, but they need a serious testing. The hardest task is documentation. Hope to finish all to end of nex week. I do not known, but maybe is better to publish the new features for testing in this site.

    regards
    Tony

    Tony Tomov

    in reply to: roadmap #81929
    tony
    Keymaster

    jmdavid,

    I’m working hard in the moment of jqGrid.
    The changes are:
    1. Refactor the grid – the grid have now modular structure. The reason for this is that the code is going bigger and is out of control. We would have – basic grid and then module subgrid, module inline editing and the new module navigator – add,edit,delete,search grid.
    2. Better documentation – the missing part
    3. Of course correcting a couple of bugs.

    Regards
    Tony

    Tony Tomov

    in reply to: change url #81928
    tony
    Keymaster

    dedi,

    Currently is not possible to convert Querystrings to flat keyword. The ajax requests are send via the pair name value.
    As I see you use php and maybe Apache. With Apache you can use mod_rewrite to do that in .htaccess file.

    Another possible solution is to use global $.ajaxSetup and beforeSend callback. In this callback you can grab the url and convert it to flat keywords. For more details see jQuery documentation
    Regards
    Tony

    Tony Tomov

    in reply to: rich cell attribute #81927
    tony
    Keymaster

    dian,

    About second request:
    Currently you can do that – just in jqGrid options type: mtype:”POST” and all ajax requests will be via POST. The default value of this option is GET.

    If I understand right you want to put additional attributes in the TD of each column. Currently not possible. I will think about this in next release. This can be for TR too. Since the parameters in colModel going to be grow we must make another decision about this.

    Regards
    Tony

    Tony Tomov

    in reply to: Editable Field #81926
    tony
    Keymaster

    Hi,
    You can do that. Just in colModel set the flowing:

    colModel = [{name:"somename"....editable:true,editoptions{readonly:true}},
    ...
    ]

    Enjoy

    Tony Tomov

    in reply to: Row Editing Example #81925
    tony
    Keymaster

    Hi,

    Please check the new feature grid as subgrid in the example page in section Advanced. Note that you can download the new feature only from this site – Download-> Last Revision of jqGrid

    Tony

    Tony Tomov

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

    I do not have idea, but could you please try to pass to the ajax url a additional parameter new Date().getTime() instead of cache: false

    Regards
    Tony

    Tony Tomov

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

    Hi,
    Could you please try with complete – i.e. –

    jQuery.ajax({ url: ‘deleteRemedialAction.php?&raid=’+lastsel2, cache: false,
    complete: function(html){
    j(‘#remedialActionTable’).trigger(“reloadGrid”);
    jQuery(“div.statusbar”).append(html);

    Tony Tomov

    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

    Tony Tomov

    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

    Tony Tomov

    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.

    Tony Tomov

    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

    Tony Tomov

    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

    Tony Tomov

Viewing 15 replies - 7,951 through 7,965 (of 7,976 total)

Stay connected with us in your favorite flavor!