hpoe

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Author
    Replies
  • in reply to: multiple Rows selected inspite of multiselect: false #92446
    hpoe
    Participant

    You are the man! Thank you.

    It will not be easy to change that situation , because this is a very general routine in which I had to add the leading space because the string “0” and “00” became both 0 in the representation of some fields. I will try to make a distinction between the first and the other columns!

    Thanks again and regards

    hpoe

    in reply to: multiple Rows selected inspite of multiselect: false #92393
    hpoe
    Participant

    Hi Tony

    thank you for your answer. But that's not the case. The first Column is always the internal item #. Given by the underlying system it is not possible to have the same item# serveral times.

    colNames and colModel are generated by a stored procedure and it is different for every page.

    to see and try:

    http://debrunner.mediando.ch/s…..duct=19391

    best regards

    hpoe

    in reply to: MSIE 8 latest Edition 8.0.6001.18813, context menu fails #88239
    hpoe
    Participant

    Hello Tony

    yes, it is working in the demo now. Please don't forget to correct the example code as well.

    In my own project it is not working with your solution, but I used a different way to attach the content menu to the grid, I followed the approach which was published in the integration section in spanish, where the context menu is attached in the afterInserRow event.

    If I leave out the MSIE specific code it works in my project.

    Thanks for your work.

    Regards

    hpoe

    in reply to: MSIE 8 latest Edition 8.0.6001.18813, context menu fails #88225
    hpoe
    Participant

    Hello Tony

    thanks, for replying.

    onContextMenu: function(e, menu) {

    in reply to: MSIE 8 latest Edition 8.0.6001.18813, context menu fails #88224
    hpoe
    Participant

    Hello Tony

    thanks, for replying.

    onContextMenu: function(e, menu) {

    in reply to: Autowidth/Autoheight and IE problems #87886
    hpoe
    Participant

    tony said:

    Hello,

    Could you please look this:

    http://www.trirand.com/blog/?p…..mment-3198

    and let me known if this resolve the problem.

    Also here is the message:

    For those of you having problems when you only have one row, and the scrollbars appear on Internet Explorer, here is a quick hack… just add it on some function (like updatepager() on grid.base.js

    if ($.browser.msie) {
    $a = $(’.ui-jqgrid .ui-jqgrid-bdiv’);
    $a.css(’padding’, ‘0 0 15px 0′);
    if(ts.p.height == ‘100%’){
    $a.css(’overflow-y’, ‘hidden’);
    }
    }

    Regards

    Tony


    Hello Tony,

    after the code line 1094 original:

    hpoe
    Participant

    Hi Tony

    I will test the changes. Thanks a lot for your help.

    Hurray, it works in my local test environment!!! Great work. and Thanks again.

    Also in the much moor complex production environment jqGrid toggle FilterToolbar works!

    Regards

    HPoe

    hpoe
    Participant

    Hello Tony,

    I appreciate your help very much. By the way, also with Chrome there is no problem with the toogle Filtertoolbar feature.

    So far jqGrid 3.5 was very helpful and also stable. I have to admit, that I don't have much experience with jquery let alone jqgrid, but with your hints in the past I could get it working.

    Regards

    HP

    in reply to: help button in titlebar #87528
    hpoe
    Participant

    Thanks, I tried, but I went back to the solution with a link zust above the grid.

    Regards

    hpoe

    in reply to: help button in titlebar #87512
    hpoe
    Participant

    Thanks for replying.

    I do not understand. Where do you want to put image in the grid title bar or in the menu which appear when you right click?

    The button should be in the Grid title bar, to give the user all the info he needs to work with the grid including the menu. Of course I can put a link above the grid and make the information available that way, but I would prefer to have that button in the grid title bar, if that is possible. The main reason is of course that the grid is a new feature for the customers.

    Regards hpoe

    hpoe
    Participant

    tony said:

    The problem for you is maybe iCol value – is this right?

    Regards

    Tony


    Hello Tony,

    thanks for your anwser,

    your answer has a point, either iCol or the length must be wrong. I will check this again. Still I think, that the length is not correct, since it worked ok with the workaround.

    After checking again, I must admin that you are right. The iCol value is wrong in msie8. I have corrected the wrong value.

    Thank you for your continuous and excellent work.

    Regards
    hpoe

    in reply to: set a range for datepicker #87097
    hpoe
    Participant

    getYear is a bad idea, MSIE works different then FF.
    better use getFullYear, which works the same in all browsers and always returns 4 digits

    in reply to: onCellSelect and IE7 #87005
    hpoe
    Participant

    Thanks Tony,

    i have to add that also ie8 reacts the same, even when not in compatibility mode.

    • No problems with firefox 3.0.10
    • No problems with google chrome 1.0.154.65
    • No go with opera 9.64
    hpoe
    Participant

    var mynumberofcolumns = $(”#mygrid”).getGridParam(”colModel”).length-1;

    Thanx Tony, that helped

    keep up the good work! jqGrid is really nice and getting better all the time.

    Regards
    HPOe

    hpoe
    Participant

    jQuery().ready(function() {
    jQuery(”#list”).jqGrid({
    url:’/shop/mediando/get_product.cfc?#session.urltoken#&method=getMasterproductInfo&id_masterproduct=#id_o_product#&sprach_cd=#sprach_cd#’,
    datatype: ‘json’,
    mtype: ‘GET’,
    #colNames#
    colModel:[#colModel#],
    pager: ‘#pager’,
    height: ‘auto’,
    width: 825,
    shrinkToFit: false,
    imgpath: ‘/shop/javascript/jquery/themes/basic/images’,
    loadError: function(xhr,st,err) {alert(’Type: ‘+st+’; Response: ‘+ xhr.status + ‘ ‘+xhr.statusText);},
    loadonce: false,
    rowNum: 20,
    rowList: [20,30,40,50,100],
    sortname: ‘PRODUCT_NUMBER’,
    sortorder: “asc”,
    viewrecords: true,
    toolbar: [true,”top”],
    //The JSON reader. This defines what the JSON data returned from the CFC should look like
    jsonReader: {
    root: “ROWS”, //our data
    page: “PAGE”, //current page
    total: “TOTAL”, //total pages
    records:”RECORDS”, //total records
    userdata:”USERDATA”, //Userdata we will pass back for feedback
    cell: “”, //Not Used
    id: “0″ //Will default to frist column
    },
    caption: ‘#session.lang_6000#’
    });

    jQuery(”#t_list”).height(25).hide().filterGrid(”list”,{gridModel:true,gridToolbar:true});

    if (jQuery(”#list”).getGridParam(’records’) > 20) {
    jQuery(”#t_list”).height(25).show().filterGrid(”list”,{gridModel:true,gridToolbar:true});
    }
    ////////////////////////////////////////////////////
    alert(jQuery(”#list”).getGridParam(’records’););

    jQuery(”#list”).navGrid(’#pager’,{edit:false,add:false,del:false,search:false,refresh:false})
    .navButtonAdd(”#pager”,{caption:”Search”,title:”Toggle Search”,buttonimg: ‘javascript/jquery/themes/basic/images/find.gif’,
    onClickButton:function(){
    if(jQuery(”#t_list”).css(”display”)==”none”) {
    jQuery(”#t_list”).css(”display”,””);
    } else {
    jQuery(”#t_list”).css(”display”,”none”);
    }
    }

    });
    });

    this is the whole code, the colnames and the colmodel is dynamically loaded from the database.

Viewing 15 replies - 1 through 15 (of 17 total)

Stay connected with us in your favorite flavor!