tony

Forum Replies Created

Viewing 15 replies - 6,586 through 6,600 (of 7,981 total)
  • Author
    Replies
  • in reply to: select all method #84756
    tony
    Keymaster

    Hello,

    There is a method onSelectAll. See examples.

    Regards

    Tony

    in reply to: Search/Sort parameters #84754
    tony
    Keymaster

    Hello,

    There is parameter in colModel index. If set the posted data is the index. By example colModel : [ {name: 'name2', index:'myindex'..}..] will post the myindex when sorting.

    Regards

    Tony

    in reply to: Add Modal Form #84738
    tony
    Keymaster

    Hello,

    Maybe you should use the new afterComplete event. When the row is inserted in main grid, you may have to open the subgrid and lunch the modal. Not sure what you try to do.

    Regards

    Tony

    in reply to: editGridRow use #84736
    tony
    Keymaster

    Hello,

    ….

    }).navGrid('#pager2',

    {add:true,edit:true,del:true},

    {closeAfterEdit:true}, // edit options

    {closeAfterAdd:true}, //add options

    {}

    );

    in reply to: what is edit url php content? #84735
    tony
    Keymaster

    Hello,

    Of course you can controll this. The script can tell the grid if this operation is successfull or not. You can catch the output from your script using the afterSubmit event , aftersavefunc or afterSubmitCell depending on the modules your use. Also refer to docs.

    Regards

    Tony

    in reply to: How to control the Tool Tips? #84734
    tony
    Keymaster

    Hello,

    The upcomming release fix this problem allowing to add custom tooltip.

    Regards

    Tony

    in reply to: How can i add total sum to some columns? #84733
    tony
    Keymaster

    Hello,

    Currently no. You should do this manually.

    Regards

    Tony

    in reply to: JSON Data Type Problem #84732
    tony
    Keymaster

    Hello,

    Maybe the easy way (which I should test) is

    cell = cell +””;

    before inserteding.

    Regards

    Tony

    in reply to: Expand / collapse row using a method #84731
    tony
    Keymaster

    Hello,

    One possible solution (use the last version of jqGrid) to collapse all opened subgrids is:

    var minuses = table.find(”img[src$=minus.gif]“,”#mygridid”).each(function() {

    $(this).parents(”td”).eq(0).click();

    });

    The same to expand all.

    Regards

    Tony

    in reply to: filterGrid: initialize filter model #84730
    tony
    Keymaster

    Hello,

    You can use afterSearch event (see docs) something like

    // I suppose you name for the select is myselect

    afterSearch : function () {

    jQuery(“select[@name=myselect]”,”#filterelem”).empty();

    // here your code to add new options.

    }

    Regrds

    Tony

    in reply to: Grid As SubGrid with loadComplete #84729
    tony
    Keymaster

    Hello,

    The problem that you have is how you call the function in the subgrid.

    You call it like this

    loadComplete: createStatusActions(subgrid_table_id)

    The right is:

    loadComplete: createStatusActions

    Or simple if you want to thest make this:

    loadComplete:function() {

    // here the code from createStatusActions

    }

    Regards

    Tony

    in reply to: UpdateGrid after edit #84728
    tony
    Keymaster

    Hello,

    The right call is:

    jQuery('#list').saveRow('','','','',aftersavefunc);

    and not

    jQuery('#list').saveRow('','','','',aftersavefunc());

    Regards

    Tony

    in reply to: width not working properly #84727
    tony
    Keymaster

    Hello,

    You have not needed comma in the colModel in the last column definition. If you check this in IE6 you will have error:

    in reply to: problem create in checkbox #84726
    tony
    Keymaster

    Hello,

    Thanks. Fixed.

    Regards

    Tony

    in reply to: Themes #84725
    tony
    Keymaster

    Hello,

    One possible solution is to create your own custom style sheet based on the one of the temes. In this sheet you can replace the class scroll with other name.Then when you create the grids you can:

    Where myscrollclass is the new defined from you class.

    Regards

    Tony

Viewing 15 replies - 6,586 through 6,600 (of 7,981 total)

Stay connected with us in your favorite flavor!