michaelg

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 34 total)
  • Author
    Replies
  • in reply to: Currency and Pound Symbol prefix #97380
    michaelg
    Participant

    Thanks very much for your post Tony.

    in reply to: Currency and Pound Symbol prefix #97375
    michaelg
    Participant

    Hey guys,

    Just wondering if anyone has come across a solution for this – would greatly appreciate any input

    Cheers,

    Michael

    michaelg
    Participant

    I wonder if it is possible to simulate the behaviour you want in this way:

    have say 5 columns in the grid

    1) a yes/no column A

    2) a yes/no column B

    3) a yes/no column C

    4) a yes/no column D

    5) a text column, that comines the results of columns 1-4 and outputs the results to your format.

    Make columns 1-4 not visible in the grid, but show up in the edit dialog

    Make column 5 visible in the grid, but now show up in the edit dialog

    Then, when you save your data from the edit, set the data for column 5 to whatever you want the results of columns 1-4 to say.

    I hope that makes sense and helps

    Cheers,

    Michael

    in reply to: Clearing search #97320
    michaelg
    Participant

    I tried the solution here: http://efreedom.com/Question/1-3865584/JqGrid-Reset-Search-Options

    … however _search is still set to true even when i do … postdata._search = false

    🙁

    in reply to: Vertical record display #96580
    michaelg
    Participant

    Couldn't you just feed the data into the grid as a table with 2 columns (“Table”, and “Data”), so the grid is still the same, but each table will be a different row rather than a column?

    in reply to: Currency and Pound Symbol prefix #96413
    michaelg
    Participant

    Does anyone have any clues about this one? It's got me stumped, and my site goes live in a few days Surprised

    Any suggestions or help would be greatly appreciated

    Cheers,

    Michael

    in reply to: Changing row after cell inline editing #96073
    michaelg
    Participant

    Hi there,

    Perhaps you could attach an onkeypress event handler function to the input element.

    in reply to: auto-selecting all chars in cell-edit #96072
    michaelg
    Participant

    Hi there,

    I've put this functionality in my grid by selecting the input element by its id (if you use firebug you will see that the ID's follow a naming convention), and then calling the javascript focus() method.

    in reply to: Desparately need to do cell edit #95461
    michaelg
    Participant

    Hi Manoj,

    You're grid's id is “list” …

    jQuery(“#list”).jqGrid({

    … but your editCell and restoreRow calls are trying to edit a grid with id of “grid_id” …

    jQuery('#grid_id').editCell(iRow, iCol, ed);

    … change this to …

    jQuery('#list').editCell(iRow, iCol, ed);

    i hope that helps

    cHeers,

    michael

    michaelg
    Participant

    Hi shawn,

    can you try …

    pager: jQuery('#htmlPager')

    … instead of

    pager: '#htmlPager'

    Cheers,

    Michael

    in reply to: subgrid resizestop #95360
    michaelg
    Participant

    Just in case someone else has a similar requirement – the solution I have found was to change the jqgrid common js file.

    I changed …

    I would have prefered to do this without changing source code, but couldnt figiure it out Laugh

    in reply to: Load an image into a cell #95351
    michaelg
    Participant

    Hi Rottweiler,

    You could also do it client-side, by using a custom validator.

    Cheers,
    Michael

    in reply to: subgrid resizestop #95317
    michaelg
    Participant

    Hmmm perhaps there is a way to have a single global variable, and set its value to the ID of the subgrid when resize starts.

    I'm guessing i'll have to modify jqgrid source code to do this though Confused

    in reply to: Edit Form – relational select menus #95248
    michaelg
    Participant

    Yep I think your right, if the number of OPTIONs is huge, then it would be best to load them via AJAX when needed.

    It would be even better if you prevent loading the OPTIONs a second time if they've already been loaded.

    Perhaps, it would be easiest to …

    a) Have a seperate SELECT for each of the different types, and hide/unhide the whole select depending on what is selected in the first SELECT

    b) When your un-hiding one of these SELECTs, you could check if it has already been loaded,and if not then load it up via AJAX

    in reply to: Edit Form – relational select menus #95236
    michaelg
    Participant

    If i were trying to solve this problem i would …

    1) populate the second SELECT with all possible values (eg. all hair colours, all shirt sizes, etc.)

    2) attach a function call to the onchange event of the first SELECT

    3) in this function, i would loop through all OPTION's in the second SELECT, and make them either hidden or visible, depending on the value of the first select

    Maybe theres a better way, just an idea 🙂 I hope it helps!

    Cheers,

    Michael

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

Stay connected with us in your favorite flavor!