Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I Chain load two flexigrids one after the other
    primarykey
    data
    text
    <p>I need the first flexigrid to make the ajax call and load its data and when its done, the second flexigrid will make the next ajax call when it is it's turn. How can I do this?</p> <pre><code>//FILL THE OFFERS GRID jQuery("#OFFERS").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, buttons: [ {name: 'Test', onpress: test} ] }); //FILL THE PRODUCTS GRID jQuery("#pnlProducts").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>
    singulars
    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. 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