davidelewis

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Author
    Replies
  • in reply to: Pager Issues (with solutions) #84075
    davidelewis
    Participant

    Well … perhaps it could be available as an option – something like:

    jQuery("#grid_id").navGrid("#pager",{standard parameters}).validateParams(true);

    in reply to: shrinkToFit is always happening for me #83920
    davidelewis
    Participant

    Whoops! Embarassed

    I doubled checked this again … If I set the grid width after hiding the column, then your solution works

    $(“#grid”).jqGrid({}).setGridWidth(600, false);

    Thanks!

    in reply to: shrinkToFit is always happening for me #83919
    davidelewis
    Participant

    Your suggestion resizes the grid, but not the grid header (

    with the class=“GridHeader”). From my example above, after hiding one of the four columns – the three remaing columns take up approx 450 pixels while the header remains 600 pixels. As soon as I resize a column, the header “snaps” to the correct width. I'm guessing that the width of the hidden column (zero pixels) is not being included in the calculation of the grid header width.

    Any other solutions?

    in reply to: shrinkToFit is always happening for me #83875
    davidelewis
    Participant

    Either this problem or a related problem seems to be introduced in the 3.3 release …

    With jqGrid 3.2.x, if I have a grid with 4 columns, each 150 pixels wide – and

    in reply to: Cannot change page in ‘onPaging’ event #83871
    davidelewis
    Participant

    The problem wasn't jqGrid or jQuery – it was a JavaScript problem …

    The line if ((requestedPage > lastPage) …

    Needs to be replaced with if (eval(requestedPage) > eval(lastPage)) …

    Thanks, again!

    in reply to: Cannot change page in ‘onPaging’ event #83870
    davidelewis
    Participant

    Hi Tony,

    Thanks for the suggestion … unfortunately it doesn't work. Is there any chance that the onpaging event completes before the setGridParam() can update the page value (as this could explain what I am observing)?

    Any other suggestions? Thanks!

    ~ David

    in reply to: jQuery(modwin).jqDrag is not a function #83684
    davidelewis
    Participant

    I finally found the solution here!

    in reply to: Another problem #83683
    davidelewis
    Participant

    Thanks YamilBracho! I had the same problem (posted here) – but this solves the problem!

    in reply to: jQuery(modwin).jqDrag is not a function #82865
    davidelewis
    Participant

    I'm not sure if I understand … do I not need to refer to the “pager” in the “jqGrid” attributes if also am using the “navgrid” function?

    As for IE, the behaviour is the same as Firefox. I'm sure I'm configuring something incorrectly – I just don't know what! Embarassed

    in reply to: jQuery(modwin).jqDrag is not a function #82863
    davidelewis
    Participant

    Yup, the stylesheets are being correctly referenced:


    Using Firefox 3.0, everything in the grid is working properly with no JavaScript errors and only CSS warnings (for IE-specific tags). Only when I add the “navgrid” do I get errors. This is perplexing ….

    in reply to: jQuery(modwin).jqDrag is not a function #82848
    davidelewis
    Participant

    Even when I manually add all the scripts (as below) rather than using the loader – I get the same error. I also tried moving around script to different loactiosn, but the error still occurs …

    The problem only occurs when I add the:

    .navGrid('#pager', {

    in reply to: jQuery(modwin).jqDrag is not a function #82843
    davidelewis
    Participant

    I'll give it a try …

    in reply to: jQuery(modwin).jqDrag is not a function #82841
    davidelewis
    Participant

    Yup … they are both included. The following four scripts are included:

    As you can see, I moved them to a parent directory called “scripts”, but I updated the “jQuery.jqGrid.js” file so that “pathtojsfiles = 'scripts/js/';” – as in documentation. Could this be causing a problem?

    in reply to: jqGrid 3.2 width bug? #82755
    davidelewis
    Participant

    Unfortunately I cannot provide a link and I haven't posted the app to a production server. However, I tried a little more experimentation …

    If I don't explicitly set the “colModel” value with a width attribute (which defaults to 150 pixels):

    … then the grid width is ignored when I set:

    shrinkToFit: false,
    width: 800

Viewing 14 replies - 1 through 14 (of 14 total)

Stay connected with us in your favorite flavor!