pchan

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • in reply to: Combine Ajax & Local Data #96594
    pchan
    Participant

    Just to complete the previous post :

    – JQGrid with local data — un complex Javascript object with eventually empty arrays to signify data not yet loaded

    – User actions eg. buttons or clicking on specific cells or column header are used to set specific members of a control objet

    – Define your own display routine that displays local data on the grid, based on the control object; whenever the display routine finds data missing, eg. when scrolled or paged, then it would use ajax to get missing data only.

    That will get you a fantastic MVC application on the browser, the grid being the visual component, the local memory being M, and the controller decides what to show. Net traffic is reduced to the maximum, based on required data, so it's very fast.

    The server should be asked regularly to send data that is changed (w.r.t. given dates).

    Of course, all this is possible only with a powerful and dependable grid component !

    Cheers!

    in reply to: Hide a Row in jqGrid #96593
    pchan
    Participant

    Hi,

    Tony left out the $ sign to the first pair of parenthesis, like k24 noticed.

    Also works:

    $(“#”+rowname).hide();

    $(“#”+rowname).show();

    if($(“#”+rowname).css('display') == 'none') { //row is hidden

    }else{ //row is shown…

    Hope this helps!

    in reply to: Rows number, span column, multi-sort #96503
    pchan
    Participant

    Multirow header with colspan is most important for me !

    And thanks for the fantastic plugin!

    in reply to: Combine Ajax & Local Data #96495
    pchan
    Participant

    OlegK, in my particular application where the grid is displaying lots of data in various rows and columns. When the user wants to have more detail on a specific cell (not row) by clicking it; the idea is to open up extra columns to show this extra detail. Something like a subgrid but in a vertical way. It would be wasteful to calculate and send all the existing data, including that of the extra detail; just send the extra detail would be sufficient. This reminds me of my previous applications where ajax updates only that part of the screen that needs updating.This helps to make applications that are fluid and responsive.

    Why not update only that part of the grid that needs updating (where more detail requested by user). How would you use jqGrid to do this in a general way ? maybe using a complete MVC architecture where jqGrid is the visual component ?

    And many thanks for discussing, OlegK.

    in reply to: Combine Ajax & Local Data #96476
    pchan
    Participant

    Hi all,

    I've just started to use this fantastic plugin and wish to thank everybody especially Tony.

    This package is well integrated into DB, and even the sorting order works out-of-the-box !

    However, it may be too much for a big application. A request would be for additional detail. A truely AJAX request would be to ask for the detail in addition to that already sent, so the grid needs to fill the new data into the required cells then show the additional column(s), somewhat similar to the goal of sternr to have local and ajax'ed data. I plan to have up to many tens' of additional columns.

    To do this, I have to rewrite the populate / sortData methods in grid.base.js. Since this is deeply integrated into the grid's core, I may face heavy maintenance for every new version or well lock myself out of further changes in the trunk !

    Is there any way out of this ?

    in reply to: 2 lines header, possible? #96454
    pchan
    Participant

    @ram2010:

    To have a long title to wrap in the cell on the title, change this style in the file themesui.jqgrid.css

    .ui-jqgrid .ui-jqgrid-htable th div {white-space: pre-wrap; WORD-WRAP:BREAK-WORD; position:relative;}

    The title may then take several lines, unless you add into the braces “height:38px;” to limit the height to 2 lines.

    To resize a column, aim at the cell border on the first row.

    @New Member:

    This requirement is not just wrapping the text but creating a double row of cells. There is a problem of defining column spans…

    in reply to: 2 lines header, possible? #96402
    pchan
    Participant

    Hi,

    is this possible now?

    in reply to: Jqgrid header row(s) ? #96401
    pchan
    Participant

    Hi Tony,

    3.8 is out now. Is this feature implemented yet ?

    Thanks.Smile

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

Stay connected with us in your favorite flavor!