Romyn

Forum Replies Created

Viewing 15 replies - 16 through 30 (of 30 total)
  • Author
    Replies
  • in reply to: Changing Format before save #87990
    Romyn
    Participant

    Thanks Tony,

    That looks to be just the job. I tried it quickly but couldn't get it to work – what version to I need to be running for this?

    Cheers

    Romyn

    in reply to: flag icons in row #87899
    Romyn
    Participant

    Hi,

    If you look at the javascript in this example…

    http://www.thekmz.co.uk/GEPlugin/wip/test/gridtest2/new/gridtest2.htm

    …it demostrates 2 methods I've used in the past.

    Col1 is done by setting the image using setcell after the grid has loaded.

    Col2 is done by using the formatter which is the method I now use and is probably cleaner. In my case if the value in the cell=1 show the image – if it's 0 don't. The same principle would work with country codes.

    However if you want to do it within your data, as opposed to with a format, then method 1 gives an idea of the format of the cell contents you'd need.

    (Ignore the other stuff in there – that's just there to switch between show/hide image when clicking on the cells)

    Hope that helps a bit – you'll probably need something slightly different but the basic idea is there I think.

    Regards

    Romyn

    in reply to: Autowidth/Autoheight and IE problems #87887
    Romyn
    Participant

    Thanks for digging that out Tony,

    For now I've added

    in reply to: Autowidth/Autoheight and IE problems #87873
    Romyn
    Participant

    Thanks – that would be useful. I've tried searching for it but can't find it using what I thought were obvious search terms.

    (The 1st one I've now posted on the jQuery-UI googlegroup – hopefully someone will come to my rescue over there).

    Regards

    Romyn

    in reply to: Autowidth/Autoheight and IE problems #87857
    Romyn
    Participant

    Thanks for the reply Tony.

    You're right – issue 1 does seem to be a problem with either the UI-Accordion or the UI-Layout control – got to work out which now. I did try you're suggestion vis-a-vis width instead of innerwidth but it made no difference unfortunately. I've added an Alert in that gives the width when the pane is resized and it appears that with IE the width just decreases by 1px no matter how much the pane size is decreased by (FF shows the correct value in the alert). Increasing the width is fine in both. That's a clue at least.

    As for the 2nd issue – I've tried build 12 and now have loaded the latest from GitHub behind it but it still does the same thing – not showing all records in IE even though set to autoheight. It seems as though IE doesn't take into account the horiz scrollbar although FF does.

    Any ideas?

    in reply to: editCell + afterSaveCell + move to next #87751
    Romyn
    Participant

    Thanks Tony – that seems to have done the trick Smile

    Regards

    Romyn

    in reply to: How to show an icon in a jqGrid cell ? #87531
    Romyn
    Participant

    Hi,

    I put this together to show a bug (now fixed) so would be a shame to waste it.

    If you look at

    http://www.thekmz.co.uk/GEPlugin/wip/test/gridtest2/new/gridtest2.htm

    that does what you want.

    2 ways – method 1 does it directly and method 2 uses the formatter to show a different image dependent on the value in the cell. (Also on clicking the cell the image toggles on/off with a blank.gif.)

    Hope that helps

    Romyn

    in reply to: Image in cell – was working now doesn’t in IE #87530
    Romyn
    Participant

    Thanks Tony – that works a treat now 🙂

    in reply to: Local Array and rowid #87443
    Romyn
    Participant

    Thanks for that Tony – all working now with id=0 etc.

    in reply to: Focus on grid row #87303
    Romyn
    Participant

    Hi,

    …then just do it when you need to. I've just tried it, as I needed to the same, and it worked fine. I have a number of grids that initialise and load when the page is loaded and in addition to that I select a default row within one of those grids (grid_r)…. so I do (my function names)

    initialiseGrids();

    loadGridData();

    $(”#grid_r”).setSelection(curr_ID);

    where curr_ID is my default row number.

    That then selects the row for me and executes the OnRowSelect function which does whatever it does etc.

    As long as the grid is there you can do it whenever you want within your code.

    Hope that helps

    Regards

    Romyn

    in reply to: Input Masks #87294
    Romyn
    Participant

    Thanks…

    …once I work out what you mean (I'm a js newbie) I'll give that a go.

    (Meanwhile if anyone has an example of this please feel free to post it)

    Thanks again

    Romyn

    edit: that was easier than I thought…

    using 3.5 and the masked input plugin linked from jQuery's site at

    http://plugins.jquery.com/project/maskedinput

    when defining the Cols in the Col Model I did

    {name:

    'stime_duration',

    index:'stime_duration',

    editable:true,

    editoptions:{dataInit:function(el){$(el).mask(“99:99:99”);}}

    },

    and it worked first time 🙂

    in reply to: Focus on grid row #87293
    Romyn
    Participant

    …or

    …if you meant how to select a row with code as opposed to actually clicking on it then …from the demos – http://trirand.com/jqgrid/jqgrid.html – Advanced

    in reply to: set width on multiple JQGrids using setGridWidth #87291
    Romyn
    Participant

    Thanks Tony – glad I could help in some small way.

    Amended the example link above (as well as including the first grid in the accordion resize) and all 3 grids now resize correctly Smile

    As an aside I was originally using the mim-ed version and to get this to work had to download all the separate files from github – is that right? and the mim-ed build is only updated occasionally.

    Anyway great stuff

    Romyn

    in reply to: Standalone demo/example #87290
    Romyn
    Participant

    Hi,

    If you go the the 3.5 online demos at

    http://www.trirand.com/jqgrid35/jqgrid.html

    ..and in the first section, Loading Data, go to the last of those – Array Data. That uses a local array to load the data so you can use that method as a basis for testing layout etc. (I believe you need to remove the gridimgpath line though as that is no longer used in the latest version …. but don't quote me on that)

    Hope that help and/or is what you meant …..

    Regards

    Romyn

    in reply to: set width on multiple JQGrids using setGridWidth #87240
    Romyn
    Participant

    Hi,

    I've got the same problem…

    …but first, as this is my first post, can I say thank you Tony for a wonderful component – it really is quite special – and also thanks to the other posters who have assisted me in solving most of the issues I have had since discovering jqGrid a few weeks ago.

    Anyway back to the original topic. I've got an Accordion with one grid on page 1 and 2 grids on page 2. All are set to autowidth:true and when the page first loads grids 1 & 2 size to the Accordion width but grid 3 doesn't.

    I've also got the Accordion on the East Pane of a UI-Layout setup which when that pane is resized (by dragging the left hand border) the Accordian resizes and then calls a function that should resize the grids. Only the 1st grid called to be resized does – I've left the 1st grid out of this call in my example to show that it does size correctly on load and not as a result of a call to that function after the grids have been setup.

    Here's the test page that shows all this going on..

    http://www.thekmz.co.uk/GEPlugin/wip/test/gridtest/gridresizetest1.htm

    I think this is the same issue the OP has.

    (As an aside the image I have as the column name in grid 3 looks fine on FF & IE6 but doesn't vertically align in IE7 – a minor thing I'd also like to solve)

    Again thanks Tony for this fantastic plugin – and hope you can help in solving the above. (I'm using 3.5 if that makes any difference)

    Regards

    Romyn

    (edit – just checked the Col header image and it seems ok on IE7

    need to reproduce the problem from my full page as a separate post)

Viewing 15 replies - 16 through 30 (of 30 total)

Stay connected with us in your favorite flavor!