Rumen

Forum Replies Created

Viewing 15 replies - 31 through 45 (of 67 total)
  • Author
    Replies
  • in reply to: Jquery.UI themes slowing down page load #90381
    Rumen
    Participant

    This is very weird, I do not really see a reason for this happening. jQuery UI ThemeRoller themes are typically very optimized. Can you open FireBug for FireFox and see what is really causing the problem (there is a performance loading profiler there)

    Can you try with different themes (other than Redmond?)

    Can you use Google CDN for jQuery themes (described here)

    http://choosedaily.com/1760/jquery-ui-themeroller-themes-google-cdn/

    I am afraid that at this point we have standartized on ThemeRoller (since 3.5) and there is no easy way to not use jQuery UI Themes.

    But the problem is surely elsewhere.

    Kind Regards,

    Rumen Stankov

    in reply to: How to set a search filter by default? #90363
    Rumen
    Participant

    Yes, this is one way to do it, but the best solution in this case I believe is to simply filter the datasource server-side before binding the grid.

    Since you wil know the filtering criteria on initial load anyway, why not just filter your database using it and send data to the grid? Otherwise, you will need to launch

    in reply to: no data display with JQGrid and Turbogears #90340
    Rumen
    Participant

    From what I can tell, this could be the controller not sending the data in the correct JSON response format. Do you have control over that?

    My suggestion is using a tool like Fiddler or FireBug to see what really gets sent back to the client (View Source in Browser will not work sinice the grid uses client-side rendering based on JSON)

    Another thing to try – you can hook the loadError event of the grid and see if it gets fired and with what data.

    Regards,

    Rumen Stankov

    in reply to: Documentation on URL parameters #90339
    Rumen
    Participant

    In the download section of this site there is a PDF document, where this is described in each section, e.g. for single field filtering

    When the find button is clicked, jqGrid adds three parameters to the url, in name=value pairs:

    in reply to: JQgrid Asp.net problem #90220
    Rumen
    Participant

    Hello,

    EditType = CheckBox (and EditType in general) is only used in edit mode, e.g. in inline or edit dialog editing. In standard read only mode, the value of the actual field is displayed (true / false in your case).

    If you wish to modify that, you can hook the CellBinding event, check for that column and modify the default “True / False” formatting to anything you wish HTML-wise, e.g.

    in reply to: delete – No url is set? #90012
    Rumen
    Participant

    Yes, so I do not really set editUrl set, you need editurl as well in order to edit / add / delete items.

    jQuery(“#rowed1”).jqGrid({ url:'server.php?q=2',

    editurl: “server.php”,

    datatype: “json”, colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'], colModel:[ {name:'id',index:'id', width:55}, {name:'invdate',index:'invdate', width:90, editable:true}, {name:'name',index:'name', width:100,editable:true}, {name:'amount',index:'amount', width:80, align:”right”,editable:true}, {name:'tax',index:'tax', width:80, align:”right”,editable:true}, {name:'total',index:'total', width:80,align:”right”,editable:true}, {name:'note',index:'note', width:150, sortable:false,editable:true} ], rowNum:10, rowList:[10,20,30], imgpath: gridimgpath, pager: jQuery('#prowed1'), sortname: 'id', viewrecords: true, sortorder: “desc”, caption: “Basic Example” }).navGrid(“#prowed1”,{edit:false,add:false,del:false})

    in reply to: Sorting with Paging #90009
    Rumen
    Participant

    Yes, the page the grid is currently on is accessible in the property (option, in jQuery UI terms) “page”. To access it, use something like that

    var grid = $(“#myGridID”);

    var page = grid.getGridParam('page')

    then pass the page variable on with the sort events.

    in reply to: delete – No url is set? #90008
    Rumen
    Participant

    Can you please copy paste your definition of the grid? Typically the grid uses “editUrl” for add / edit/ delete operations.

    in reply to: Using named functions with jqgrid events #90004
    Rumen
    Participant

    You can hook them by reference with setGridParam

    Rumen
    Participant

    Hello,

    I believe in cases like that the best way is to use the addRowData method of the grid. You can grab the PDF documentation of the grid from the Downloads section of this site (bottom of the page) and check addRowData information there (especially pages 43-45)

    Hope this helps.

    Rumen Stankov

    in reply to: Sub Grid problem #89993
    Rumen
    Participant

    Just wanted to tell that this is now addressed — thanks George for reporting this both here and tosupport@trirand.net. New download bits are available.

    If anyone else is interested

    in reply to: want to access DOM #89989
    Rumen
    Participant

    Hello,

    jqGrid is a client-side grid and uses client-side rendering. This by the way is great approach, since the grid HTML is practically zero (only the table and pager placeholders you have noticed). To see what the grid really renders, I recomment FireBug for FireFox — this will allow you to see the markup and checkboxes.

    This however might not be the best approach, I suggest getting the PDF documentation from the “Download” settings and read about the client-side API of the Control, the getRowData / setRowData methods in particular might be exactly what you need.

    Regards,

    Rumen

    in reply to: Clone jqGrid #89936
    Rumen
    Participant

    jQuery clone is only intended to clone HTML elements, as far as I can tell. It is just not possible to clone complex object like jqGrid with that.

    As far as I can tell, this can be relatively easy to do if you just replicate your jQuery init script (with different IDs).

    Regards,

    Rumen Stankov

    in reply to: altRows not working #89921
    Rumen
    Participant

    Yes, I see. In IE it is really different than FireFox / Chrome / Safari. In this particular example:

    http://www.trirand.net/examples/appearance/alternate_row_background/default.aspx 

    and choosing UI Darkness from themes, the alternating background is clearly visible for the aforementioned browsers and hardly visible (I think only the foreground color is a bit different, but not background).

    in reply to: auto reload grid/cells #89920
    Rumen
    Participant

    Interesting, since this seems weird (I mean why it would take progressively longer upon each request). So can you please try the following, instead of using the loadComplete event, set a global setTimeout handler for that, e.g.

    window.setTimeout( startAutoRefreshing, 10000);

    and see if you get better results?

Viewing 15 replies - 31 through 45 (of 67 total)

Stay connected with us in your favorite flavor!