tony

Forum Replies Created

Viewing 15 replies - 2,686 through 2,700 (of 7,981 total)
  • Author
    Replies
  • in reply to: Timeout issue? #93990
    tony
    Keymaster

    Hello,

    The clear test if this is a jqGrid issue is to try without using jqGrid

    $(“#mybutton”).click(function(){

    $.ajax({

    ….

    });

    });

    Regards

    Tony

    in reply to: Confused about JSON Data #93989
    tony
    Keymaster

    Hello,

    Yes, this is the fast rendering mode. See docs when you call the afterInsertRow what you should do.In order to be compatible with this set in the grid options

    gridview : false

    Regards

    Tony

    in reply to: Carriage return in colnames #93988
    tony
    Keymaster

    Hello,

    Yes this is true. The reason is that the div element where the text is enclosed has fixed height and overflow feature.

    In order to work this you will need to set the height of that div manually.

    Suppose you name in colModel of that field is “myfield” after the grid is created you will need to call this

    $(“jqgh_myfield”).height(30);

    Regards

    Tony

    in reply to: i have a problem with demo jqgrid 3.6 #93987
    tony
    Keymaster

    Hello

    It seems like you do not included the multiselect plugin.

    For now open the jqgrid.html and remove the line that loads the ui.multiselect.js plugin

    Regards

    Tony

    in reply to: change cursor to hand when pointer is over the rows #93986
    tony
    Keymaster

    Hello,

    do it like this. Add this after the grid css file is loaded

    .ui-jqgrid .ui-jqgrid-btable { cursor : pointer; }

    or what you want

    Regards

    Tony

    in reply to: Global default function call #93985
    tony
    Keymaster

    HEllo,

    This is interesting. In the moment I do no see any solution.

    Regards

    Tony

    in reply to: Unwanted horizontal scroll bars #93984
    tony
    Keymaster

    Hello,

    Try to set not height : '300px', but height:300,

    Also try to set the width of the grid something like width : 500

    and let me know if this help

    Regards

    Tony

    in reply to: Disable Accordion #93983
    tony
    Keymaster

    Hello,

    The best way to find solution for this is to read in the docs the grid options here:

    http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options

    Regards

    Tony

    in reply to: Get Cell Index in Cell Edit #93982
    tony
    Keymaster

    Hello,

    One possible solution is to use the serializeCellData you can do it like this

    ..jqGrid({

    serializeCellData : function(postdata) {

    var rowdata = $(“#mygridid”).getRowData(postdata.id);

    postdata.Id = rowdata.Id;

    // some other assigments to postdata array

    return postdata;

    },

    2. You can use afterSubmitCell for this purpose. This event is called after the request is complete and we pass the response from server. So you can

    return [true,””] or

    return [false,”The error from server”]

    in order to notify the user

    Regards

    Tony

    in reply to: How do I over-ride column model settings globally? #93981
    tony
    Keymaster

    Hello,

    Especially for editable options you can use setColProp method:

    http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods#add_on_grid_methods

    Regards

    Tony

    in reply to: How to pass parameters to jqgrid #93980
    tony
    Keymaster

    Hello,

    You can pass parameter to the grid using postData parameter something like this:

    (see docs)

    $(“#mygrid”).jqGrid('setGridParam',{postData:{groupID:'mygroup'}}).trigger(“reloadGrid”);

    Regards

    Tony

    in reply to: How to make the entire row bold? #93979
    tony
    Keymaster

    Hello,

    Sorry, forgot some things related to jQuery UI. In order to work this do the following:

    1. Define in the style section the following:

    .mybold td {font-weight : bold !important}

    Note the word important

    Then in order to work this call setRowData this way:

    $(this).jqGrid('setRowData', rowId, false, 'mybold');

    Best Regards

    Tony

    in reply to: Exit edit mode programmatically #93978
    tony
    Keymaster

    Hello,

    This depends on which module you are. For inline or celledit you can set the url to 'clientArray'. Intead this is not true for form edit mode. We will make some thinds in next release for this.

    Kind Regards

    Tony

    in reply to: Option values does not apear in custom_element function #93972
    tony
    Keymaster

    Hello,

    In which editing module is this?

    The custom_element is called only once, so I wonder how you determine that this is called twice or more.

    I checked all editing modules and it seems that we pass correct all the options – also in this case we speak about editoptions extended with some other values.

    I just add console.log onto the demo whre we have such example and evrething seems to ok.

    Best Regards

    Tony

    in reply to: How to set the Options #93958
    tony
    Keymaster

    Hello,

    Sorry I do not understand. What does not work?

    Regards

    Tony

Viewing 15 replies - 2,686 through 2,700 (of 7,981 total)

Stay connected with us in your favorite flavor!