pars_back
مجموعه دستورات کاربردی گرید
////////////////////////refresh grid
apex.region("regionStaticID").refresh();

////////////////////////you can give focus to an IG with the following:
apex.region("regionStaticID").focus();

////////////////////////
apex.region("emp").widget().interactiveGrid("getActions").list().forEach(function(a) { console.log("Action Label: " + a.label + ", Name: " + a.name + (a.choice !== undefined ? ", Choice: " + a.choice : "") ); });

////////////////////////
apex.region("emp").widget().interactiveGrid("getActions").invoke("show-sort-dialog");

/////////////////////get grid mode
apex.region("emp").widget().interactiveGrid("getActions").get("edit"); // returns true or false

/////////////////////To turn edit mode on:
apex.region("emp").widget().interactiveGrid("getActions").set("edit", true);

////////////////////To turn edit mode off:
apex.region("emp").widget().interactiveGrid("getActions").set("edit", false);

///////////////////
apex.region("emp").widget().interactiveGrid("getActions").get("change-view");

//////////////////To change the current view to chart view (assuming it is defined) use this code:
apex.region("emp").widget().interactiveGrid("getActions").set("change-view", "chart");

/////////////////To find out the available choices use this code and look through the returned array:
apex.region("emp").widget().interactiveGrid("getActions").lookup("change-view").choices

/////////////////Another example is saving the current grid. For this you can use the save action as follows:
apex.region("emp").widget().interactiveGrid("getActions").invoke("save");

////////////////
apex.region("emp").widget().interactiveGrid("getViews", "grid").view$.grid("selectAll")

////////////////
apex.region("emp").widget().interactiveGrid("getViews").chart.view$.ojChart("option", {orientation: "horizontal"})

2 thoughts on “مجموعه دستورات کاربردی گرید

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *