tony

Forum Replies Created

Viewing 15 replies - 3,646 through 3,660 (of 7,981 total)
  • Author
    Replies
  • in reply to: Correct width alignment of buttons and text in Navigator #91913
    tony
    Keymaster

    Hello,

    Without providing the link to the problem can not help. I feel that the grid css is not loaded – or at least the path to the css is wrong. Check this in FireBug – Net tab

    Regards

    Tony

    in reply to: loading xml data from remote php script not working #91912
    tony
    Keymaster

    Hello,

    Could yo please post your jqGrid configuration or provide a link to the problem.

    Regards

    Tony

    in reply to: IE height autoscroll for grid – FIX #91910
    tony
    Keymaster

    Hello,

    Thanks. Discussed here, but it is not good solution. Try to have a initially vertical scroll in FF – i.e have 100 rows loaded and set the height of 150.

    Regards

    Tony

    in reply to: Custom Search – Using Selects #91908
    tony
    Keymaster

    Hello,

    Not sure that I can help on this.

    Another possible solution is to get this result before/after creation of the grid and convert the values in a way that they can be set in editoptions value

    in reply to: Row Totals #91907
    tony
    Keymaster

    Hello,

    Not sure what you mean . There is a method footerData which can set and get this data.

    Regards

    Tony

    in reply to: beforeRequest: dont works on jqGrid 3.6.2 #91906
    tony
    Keymaster

    Mark,

    Thanks.

    Also some other events should be converted to this calling format and of course documented.

    Tony

    in reply to: Session death with multiple grids #91905
    tony
    Keymaster

    Hello,

    Try to implemet the following logic for the 3 grids:

    Create the grid initiallly with datatype local and then set the data type to json and trigger with setTimeout – i.e.

    $(“#grid”).jqGrid({

    datatype:'local',

    });

    $(“#grid”).jqGrid('setGridParam',{datatype:'json'});

    setTimeout(function(){$(“#grid”).trigger(“reloadGrid”)}, 100 );

    Regards

    Tony

    in reply to: TableToGrid options available? #91904
    tony
    Keymaster

    Hello,

    Look at datefmt option in the docs

    Regards

    Tony

    in reply to: filter data loaded with xmlstring #91901
    tony
    Keymaster

    Hello,

    If you look into the docs you will see that when using json ot xml string the data automaticalli is set to local after reading the data.

    Local searching and pagination is not supported in this release. It is planed for 3.7 release.

    Best Regards

    Tony

    in reply to: sort column by day of week #91900
    tony
    Keymaster

    Hello,

    IMHO – Ideally is to add custom sort type, which I think can be done.

    Regards

    Tony

    in reply to: Edit Form: disable form pagers & edittype ‘label’ #91899
    tony
    Keymaster

    Hello,

    This can be done and if I can remember it is discussed into the forum.

    Anyway – use the the beforeShowForm in edit mode something like this:

    beforeShowForm : function (formid) {

    $(”#pData, #nData”, formid).hide()

    }

    where pData and nData are the id's of these buttons.

    For the second.

    Sorry this is not documented and I apologize for this.

    When using custom_value in form editing to this function are passed 3 parameters

    custom_value(cellobject, action, cellvalue)

    where action can be set or get. Default is set. So in your case:

    function getLabelValue(e, action, textvalue) {

    if(action == 'get') return e.innerHTML;

    else if(action=='set') $(e).html(textvalue);

    }

    I will update the documentation

    Best Regards

    Tony

    Edit: It is a good idea for label type 🙂

    in reply to: sortable columns #91898
    tony
    Keymaster

    Hello,

    Maybe if you reored the call you will have the neded result i.e. cal getGridParam before remapColumns.

    Regards

    Tony

    in reply to: Drag and drop – update row #91897
    tony
    Keymaster

    Hello,

    Here is some exmple. Also I have added some other things into the docs.

    Actually you can use the beforedrop event.

    Here is a little example from my project:

    in reply to: TableToGrid options available? #91874
    tony
    Keymaster

    Hello,

    The name of the column is constructed as:

    If the th element has id the name becomes the id, if this is not true the name is the html content of the th element.

    You can see what names you have simple using getGridParam with colModel and print the names.

    Best Regards

    Tony

    in reply to: Load grid data upon click on some button #91871
    tony
    Keymaster

    Hello,

    try this

    $(”#mygrid”).jqGrid({

    datatype : 'local'

    });

    $(”#mygrid”).jqGrid('setGridParam',{datatype:'json'});

    The grid initiallly will load with no data and after that can accept any request.

    Regards

    Tony

Viewing 15 replies - 3,646 through 3,660 (of 7,981 total)

Stay connected with us in your favorite flavor!