tony

Forum Replies Created

Viewing 15 replies - 7,876 through 7,890 (of 7,981 total)
  • Author
    Replies
  • in reply to: Seems to be a bug #82100
    tony
    Keymaster

    Hi nico,
    Thank you for this. I think that this is not a bug. The problem is that you set in the colModel some value to “true” instead of some_property:true.

    I think that the correct way is this:

    hc = (cM.hidden==true) ? true : false;
    sf = (cM
    .search==false) ? false: true;

    three lines checking is strick.

    Regards
    Tony

    in reply to: How make it works. #82094
    tony
    Keymaster

    I notice – you try load jqGrid twice. Either edit jquery.jqGrid.js to point to right directories and renove …grid.jqGrid.js.. from src, or simly load only grid.base.js and grid.subgrid.js but not the both.

    Also check the right paths in jquery.jqGrid.js

    http://localhost:81/js/grid.base.js 213 bytes – this is not true – the size is about 35K

    Regards
    Tony

    in reply to: How make it works. #82088
    tony
    Keymaster

    Hi,
    Try this

    jQuery(“#list2”).jqGrid({ url:’http://localhost:81/admin/person/view1′,
    datatype: “json”,
    ….

    I.e point to the full path to port 81.

    Regards
    Tony

    in reply to: reload grid periodically #82087
    tony
    Keymaster

    Not sure that this will help, but if you make a external request with jQuery via ajax and then pass this request to the jqGrid you should terminate the request – i.e if the variable is my_request you shoild make my_request = null. Also this is common technique – if you look in jqGrid code every request after success is terminated.

    Regards
    Tony

    in reply to: reload grid periodically #82084
    tony
    Keymaster

    Sorry – there is a missing part here – the working example should be:

    $(“#mgrid”).setGridParam({datastr:the_new_string_here, datatype: ‘xmlstring’}).trigger(“reloadGrid”);

    This is since after reading the xmlstring the datatype is set to clientSide which should be replaced.

    Regards
    Tony

    in reply to: reload grid periodically #82083
    tony
    Keymaster

    If you use xmlstring one possible solution is:
    Load the grid initially with the xml string data
    Then after every 15 sec you can do
    …..
    $(“#mgrid”).setGridParam({datastr:the_new_string_here}).trigger(“reloadGrid”);

    in reply to: header vs grid column width #82082
    tony
    Keymaster

    Sachin Mittal,

    Thank you – added;
    This resolves another bug in Safari3 too.

    Regards
    Tony

    in reply to: editRow(id, true) does not accept Enter Key #82081
    tony
    Keymaster

    Hi,

    You can publish code within code tags. See Some XHTML is allowed when you post here.

    Do not known what is happen. If the ESC key work, that mean that maybe you bind your own Enter key, or there is another event that prevent Enter key. Simply to test. Try first it without any special binding or functions like onclick and etc.

    Regards
    Tony

    in reply to: multiple level subgrid #82077
    tony
    Keymaster

    Hi,

    You can look for this in Examples : Advanced->Grid as Subgrid
    Please read a documentation on how to realize this.

    This is not a feature, but implementation

    Regards
    Tony

    in reply to: Cell Tooltip #82076
    tony
    Keymaster

    Do not known which version do you use, but look at end of code for moseover and mouseout even
    The lines begin with


    ...
    td = (e.target || e.srcElement);
    ...

    Below this code you can comment
    td.title on boot events.

    Possible solution
    Search for a formatColl function and add the needed title. Maybe you will need to extend a colModel for this work, or find a better solution 🙂

    Regards
    Tony

    in reply to: header vs grid on hidden columns #82075
    tony
    Keymaster

    Will try to correct this as soon as possible

    Tony

    in reply to: header vs grid on hidden columns #82072
    tony
    Keymaster

    Hi,

    Reason for this is that we do not known that this column will be late shown using the showCol method. I will think about this problem.

    You can resolve this confusion when you set a common width of the grid using the width parameter. In this case the hidden fields are not recalculated.

    Regards
    Tony

    in reply to: Cell Tooltip #82070
    tony
    Keymaster

    If you mouseover of the cell the tooltip is the content of the cell. Currently there is no way to do what you want so easy. One possible solution is to disable the current action when we mouseover and to use formatCol function.

    Regards
    Tony

    in reply to: error handling #82069
    tony
    Keymaster

    Ton,

    I do not understand what you mean. There are method for destroying and unloading the grid.

    Regards
    Tony

    in reply to: Form Editing #82068
    tony
    Keymaster

    Actually these methods construct a form. The name is taken from colModel. Whet you post is a pair name:value. In addition is passed and idrow and type of operation. See documentation for more details.

    Regards
    Tony

Viewing 15 replies - 7,876 through 7,890 (of 7,981 total)

Stay connected with us in your favorite flavor!