tony

Forum Replies Created

Viewing 15 replies - 7,906 through 7,920 (of 7,981 total)
  • Author
    Replies
  • in reply to: Form Editing #82035
    tony
    Keymaster

    Hi,
    There are two possibilities:
    1. Use the option editurl which is a part from grid options.
    2. Use a url when you call editGridRow – something like editGridRow(rowid, {url:”myurl”});

    Regards
    Tony

    in reply to: Fill Width #82033
    tony
    Keymaster

    Hi,
    If I understand right you want to set the width of the grid to given width of some element. Right?
    Initially this can be done this way:
    // get the width of the element

    el_width = $(“elem”).width()
    $(“tbl_id”).jqGrid({
    // here are other parameters
    ….

    width : el_width,

    })

    This way the grid will have the width that you want.
    The missing part here is that there is no method to set the new width of the grid, but I think that this can be done

    Regards
    Tony

    in reply to: IE problem – reloading datagrid with different data #82032
    tony
    Keymaster

    If you use this in add Mode you can set the 3 parameter to returned data
    Something like

    if(result[0]==”succes”) {
    // do something here
    return [true, ,here_the_id_from_server]

    }

    Note that this value is set automatically. If the 3 parameter is missing I add for the id the next record

    in reply to: IE problem – reloading datagrid with different data #82031
    tony
    Keymaster

    Hi,
    Use afterSubmit event to do that. Here is example:
    (See Documentation)

    afterSubmit: function(data,postdata){
    var result = data.responseText.split(";");
    if (result[0] == "success"){
    //do something here
    return [true];
    } else return [false,"The Error message here"];
    }

    Where data is the data returned from the server and post data is the data that is posted

    Regards
    Tony

    in reply to: header vs grid column width #82028
    tony
    Keymaster

    If you run the examples from this site with FF, do you have such problems?

    in reply to: IE error in show xml data on first (table)page #82027
    tony
    Keymaster

    I have tested such words with xml and IE6, but all is Ok.
    If you use xml do you have send the approprite headers in php this is like:


    header("Content-type: application/xhtml+xml;charset=utf-8")

    in reply to: IE problem – reloading datagrid with different data #82025
    tony
    Keymaster

    Hi,
    I prefer you to check the questionMask value.
    Make alert when the value is changed – i.e – alert(questionMask)

    I think that to get the value from checkbox the expression should be:
    var questionMask = jQuery(‘select option:selected’,’#search_question’).val();

    Regards
    Tony

    in reply to: Per-Column CSS #82020
    tony
    Keymaster

    I think that there should be a more common way – set attributes of each individual cell – example
    colModel [
    {name:’name’, width:30,…,options: {align:’left’,color:’red’,colspan:’2’…}

    ]
    but I’m not sure that some attributes will work.

    Regards
    Tony

    in reply to: hide columns in the grid but not in the edit form #82019
    tony
    Keymaster

    Hi,

    Let’s spouse that the fields – field1 and field2 are hidden, but you want to display this in the form.
    I use beforeShowForm (in editGridRow) event this way.
    ….
    beforeShow : function (form_id) {
    $(“#field1”,form_id).parents(“tr:first”).show();
    $(“#field2”,form_id).parents(“tr:first”).show();
    }

    Important note – There is a bug with event names – I will publish the fixed version at end of week

    Regards
    Tony

    in reply to: Edit Record with IE7 #82017
    tony
    Keymaster

    Hi Gerard,

    Thank you. Right now I do not have IE7 by hand.

    Regards
    Tony

    in reply to: Remove the pager #82016
    tony
    Keymaster

    Hi Nathan,

    Just disable pager with

    pager : false

    or do not set this option

    Regards
    Tony

    in reply to: Rows number, span column, multi-sort #82015
    tony
    Keymaster

    Gerard,

    1. Row numbering – if you use server side scripts you can do easy this by adding an additional column for row number and return the appropriate numbers from the server. The problem is only when we use clientSide data. I will add this in the list and will what can I do.

    2. rowspan and colspan – will make some tests, but not sure that this will be easy – will add additional code (a lot) for the resizing.

    3. good idea – this will show the user which columns are sortable.

    Anyway thank you for the suggestions

    Best Regards
    Tony

    in reply to: No funcionan los ejemplos – The examples do not work #82014
    tony
    Keymaster

    Please verify, that you load correct the jqGrid.
    Maybe you should look into the jquery.jqGrid.js to refine the include paths to js files.

    Regards
    Tony

    in reply to: editRow – probably mistake in the function definition #82013
    tony
    Keymaster

    Hi,
    This is true. After day or two I will publish the fixed version.
    Thank you.

    Regards
    Tony

    in reply to: Moving columns #82012
    tony
    Keymaster

    Yes. Maybe the solution is to store initial index of the header and cols and put data to that index.

    Regards
    Tony

Viewing 15 replies - 7,906 through 7,920 (of 7,981 total)

Stay connected with us in your favorite flavor!