tony

Forum Replies Created

Viewing 15 replies - 4,831 through 4,845 (of 7,981 total)
  • Author
    Replies
  • in reply to: Setting Caption for Edit Grid #88576
    tony
    Keymaster

    Hello,

    You call editGridRow twice which IMHO is not good.

    In order to change the edit caption dynamically do this:

    beforeShowForm : function (formid) {

    var mytitle = “My text to show”; // or what you want

    $(“.ui-jqdialog-title”,”#edithd”+mygridid).html(mytytle);

    }

    wher mygrid id is the id of the grid.

    Best Regards

    Tony

    in reply to: How to expand or collapse grid?? #88575
    tony
    Keymaster

    Hello,

    It is again the common problem – which is the first the egg or the chicken?

    – Also in order to check if you have records – the grid is already construct (expanded), since of the ajax call (we do not know initially how many records we have).

    – If you make the grid initially hidden it is quite possible, that you have records in the view

    and so on.

    I think that there are two possible solutions:

    1. Before to open the grid check if the current query has records. (The most clear way)

    If this is the case construct the grid with hiddengrid:false otherwise hiddengrid:true

    2. Use loadComplete event to check if you have records and then either use setGridState (currently this method is only in GitHub)

    or trigger the click to hide/show grid button.

    Best Regards

    Tony

    in reply to: supressing tooltips in jqgrid #88574
    tony
    Keymaster

    Hello,

    Currently no, but I will think on this direction.

    Best Regards

    Tony

    in reply to: jqGrid with complex features. #88573
    tony
    Keymaster

    Hello,

    1. Not sure what you mean with this, but you can use a custom formatter for this purpose. If you mean additional row – currently this is not possible.

    2. Maybe you will need to use afterInsertRow event.

    3. To be a honest I never try this , but you can

    colModel :[

    {name:'somename'… stype:'select', searchoptions:{multiple:true, size:3}..}

    ]

    Best Regards

    Tony

    in reply to: Problem in addRowData ($.jgrid.stripHtml(v)) #88570
    tony
    Keymaster

    Hello,

    Does your data contain special characters?

    Regards

    Tony

    in reply to: jqGrid 3.5.2 BUG IE8 page index in ajax request #88569
    tony
    Keymaster

    Hello,

    Do not understand, and I think that

    Forum

    Have nothing to do with what you describe.

    Best Regards

    Tony

    in reply to: Hidden field on insert/edit #88565
    tony
    Keymaster

    Hello,

    Not understand what you mean. What you use – inline edit or form edit.

    If you use form edit module you can use defaultValue (work only in add mod) – look into the docs.

    Regards

    Tony

    in reply to: Problem when press Button Next Page #88564
    tony
    Keymaster

    Hello,

    Remove pagina=” + paginaActual from url and do

    ..jqGrid({

    ….

    postData:{pagina:paginaActual},

    });

    Also you do not need to trigger the grid. It is done automatically after this event ends.

    Regards

    Tony

    in reply to: Minimize Grid Trigger #88563
    tony
    Keymaster

    Hello,

    Better is this:

    $(”.ui-jqgrid-titlebar-close”, “#gbox_mygrid”).click(…)

    where mygrid is the id of the grid.

    Regards

    Tony

    in reply to: Inline edit select lists not working after upgrade to 3.5 #88562
    tony
    Keymaster

    Hello,

    Could you please try this way:

    … editoptins:{value:{“”:”Select”,”Y”:”Yes”,”N”:”No”}}

    direct in the colModel

    Regards

    Tony

    in reply to: navGrid + buttons #88561
    tony
    Keymaster

    Hello,

    What you mean with “what I have to do to get an add-, edit-, search- and delete-button”

    Regards

    Tony

    in reply to: Add slave data #88560
    tony
    Keymaster

    Hello,

    What event do you use for this purpose? If you use onSelectRow event

    in reply to: oneditfunc #88559
    tony
    Keymaster

    Hello,

    Use setCell method just before calling the editRow method.

    Regards

    Tony

    in reply to: How to display custom images in treegrid nodes #88558
    tony
    Keymaster

    Hello,

    Adding dynamicaly images in tree grid currently is not possible. You can change only the predifined images. This is in the todo list for the next versions.

    Best Regards

    Tony

    tony
    Keymaster

    Hello,

    Use dataInit event (see docs) to adda image and a click event to this image.

    Best Regards

    Tony

Viewing 15 replies - 4,831 through 4,845 (of 7,981 total)

Stay connected with us in your favorite flavor!