Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Finally I found My answer, In order to ensure many flexigrids in my pages to work properly without making many async requests and cause the browser to mix data, I can set its property onSuccess and pass a function there.</p> <pre><code>//FILL THE OFFERS GRID jQuery("#tblOFFERS").flexigrid({ url: 'index.php?option=com_virtuemart&amp;view=offers&amp;task=getOffers&amp;page=1&amp;format=raw', dataType: 'json', singleSelect:true, colModel : [ {display: 'id', name : 'id', width : 100, sortable : true, align: 'center'}, {display: 'startdate', name : 'startdate', width : 180, sortable : true, align: 'center'}, {display: 'enddate', name : 'enddate', width : 180, sortable : true, align: 'left'}, {display: 'product_name', name : 'product_name', width : 120, sortable : true, align: 'left'}, {display: 'discount_amount €', name : 'discount_amount', width : 100, sortable : true, align: 'left'}, {display: 'discount_percent %', name : 'discount_percent', width : 120, sortable : true, align: 'right'} ], searchitems : [ {display: 'startdate', name : 'startdate', isdefault: true}, {display: 'enddate', name : 'enddate'}, {display: 'product_name', name : 'product_name'}, {display: 'discount_amount', name : 'discount_amount'}, {display: 'discount_percent', name : 'discount_percent'} ], sortname: "id", sortorder: "asc", usepager: true, title: 'Offer', useRp: true, rp: 15, showTableToggleBtn: true, width: 900, onSubmit: addFormData, height: 200, onSuccess : fillTheNextGrid buttons: [ {name: 'Test', onpress: test} ] }); //FILL THE PRODUCTS GRID function fillTheNextGrid( jQuery("#tblPRODUCTS").flexigrid({ url: 'index.php?option=com_virtuemart&amp;view=offers&amp;task=getProducts&amp;page=1&amp;format=raw', dataType: 'json', singleSelect:true, colModel : [ {display: 'id', name : 'id', width : 100, sortable : true, align: 'center'}, {display: 'name', name : 'name', width : 180, sortable : true, align: 'center'}, {display: 'price', name : 'price', width : 180, sortable : true, align: 'left'} ], searchitems : [ {display: 'id', name : 'id', isdefault: true}, {display: 'name', name : 'name'}, {display: 'price', name : 'price'} ], sortname: "id", sortorder: "asc", usepager: true, title: 'Products', useRp: true, rp: 15, showTableToggleBtn: true, width: 900, onSubmit: addFormData, height: 200, buttons: [{name: 'Test2', onpress: test}] }); ) </code></pre> <p>the source <a href="http://code.google.com/p/flexigrid/wiki/FAQ" rel="nofollow">http://code.google.com/p/flexigrid/wiki/FAQ</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload