treetable

Trigger function after update complete

不想你离开。 提交于 2019-12-12 06:37:26
问题 How can I perform the functions order, when the update function works with xsodata?! So far my problem is with updating the tree table and then open the previous rows that has been opened before update. I am using the setTimeout function but i know it is actually not the answer to this problem. tEvents.unbindAggregation("rows"); tEvents.bindAggregation("rows",{ path: "events>/prg_years(ID_SCENARIO=" + filterKRVR.scenario + ",I_YEAR=" + filterKRVR.year + "m)" + "/HisGTO", parameters: {

Add row at root to JQuery treetable

六月ゝ 毕业季﹏ 提交于 2019-12-11 19:18:58
问题 I'm working with the treetable plugin and I want to add a new row on the root of the table, I use loadBranch and it works fine to add rows inside the tree but can't find a method to add on the root. 回答1: You can add rows to the root by sending null as the first argument to loadBranch: $("#tree").treetable("loadBranch", null, rows) 来源: https://stackoverflow.com/questions/15519979/add-row-at-root-to-jquery-treetable

How to change icon of TreeTable in Primefaces?

馋奶兔 提交于 2019-12-11 01:55:47
问题 I have simple treeTable. http://www.primefaces.org/showcase/ui/treeTable.jsf I want to change expand and collapse icon of this treeTable. How can I do that? 回答1: If you want to use custom icons (images), override the following CSS classes for their respective uses, on the treetable: ui-icon : to customise the expanded-row state icon (the triangle) .ui-icon { width: 16px; height: 16px; background-image: url("/your-image-here"); } ui-icon-triangle-1-e ui-c : to customize the collapsed-row state

Show Context Menu after condition Check in Primeng Angular 4

女生的网名这么多〃 提交于 2019-12-08 06:44:54
问题 I have to show a context menu in a primeng tree table only in the second level. Is there any way to show the context menu only after some condition check in typescript (angular 4)? 回答1: you can bind onContextMenuSelect event and play with [hide], I have done it like this.. in html... <p-contextMenu #cm [model]="items" [hidden]="contextMenu"></p-contextMenu> and in ts .. viewDetails(selectedNode) { this.contextMenu = false; if (selectedNode.children.length == 0) { this.contextMenu = false; }

Using TreeTable with different root and node types

跟風遠走 提交于 2019-12-07 18:37:26
问题 I have the following problem: I want to have a JTeeTable-like table component except that the roots (classes below) and the nodes of the tree are not of the same type. For instance, suppose that I have the following classes: public final class Entry { private int id; private String title; private String notes; private List<SubEntry> subEntryList; /** @see SubEntry*/ } public final class SubEntry{ private int id; private String title; private String notes; } Although these two class look

Show Context Menu after condition Check in Primeng Angular 4

你。 提交于 2019-12-07 05:44:28
I have to show a context menu in a primeng tree table only in the second level. Is there any way to show the context menu only after some condition check in typescript (angular 4)? you can bind onContextMenuSelect event and play with [hide], I have done it like this.. in html... <p-contextMenu #cm [model]="items" [hidden]="contextMenu"></p-contextMenu> and in ts .. viewDetails(selectedNode) { this.contextMenu = false; if (selectedNode.children.length == 0) { this.contextMenu = false; } else { this.contextMenu = true;} } hope it works.. For me, the best option was to use

How to select all in PrimeFaces TreeTable?

落花浮王杯 提交于 2019-12-07 05:12:23
问题 I have a PrimeFaces tree table and would like to add a check box which allows the user to select/unselect all. Here is an extract from my xhtml <p:selectBooleanCheckbox itemLabel="Select all" value="#{mainViewBean.selectAll}"> <p:ajax listener="#{mainViewBean.onSelectAll}" update="@this :mainForm" /> </p:selectBooleanCheckbox> <p:treeTable id="treeToAssign" value="#{mainViewBean.treeValue}" var="vh" selectionMode="checkbox" selection="#{mainViewBean.treeSelection}"> <f:facet name="header">

Using TreeTable with different root and node types

☆樱花仙子☆ 提交于 2019-12-06 00:04:21
I have the following problem: I want to have a JTeeTable-like table component except that the roots (classes below) and the nodes of the tree are not of the same type. For instance, suppose that I have the following classes: public final class Entry { private int id; private String title; private String notes; private List<SubEntry> subEntryList; /** @see SubEntry*/ } public final class SubEntry{ private int id; private String title; private String notes; } Although these two class look similar and may motivate for a case for inheritance, they are NOT related that way . Think of it as a car

How to select all in PrimeFaces TreeTable?

自古美人都是妖i 提交于 2019-12-05 10:22:18
I have a PrimeFaces tree table and would like to add a check box which allows the user to select/unselect all. Here is an extract from my xhtml <p:selectBooleanCheckbox itemLabel="Select all" value="#{mainViewBean.selectAll}"> <p:ajax listener="#{mainViewBean.onSelectAll}" update="@this :mainForm" /> </p:selectBooleanCheckbox> <p:treeTable id="treeToAssign" value="#{mainViewBean.treeValue}" var="vh" selectionMode="checkbox" selection="#{mainViewBean.treeSelection}"> <f:facet name="header"> Tree Table </f:facet> <p:column> <h:outputText value="#{vh.name}" /> </p:column> </p:treeTable> and here

hide primefaces table column header

一个人想着一个人 提交于 2019-12-05 02:02:57
I have a p:treeTable and the tree contents are all in one column. The tree is a shared component so some of my pages require column header and and some don't. In the pages where the columnHeader is empty, it creates the an empty row for the column header, which I don't want. I do want the column contents, just not the header when there is no column header. How can I fix this? Any pointers/ideas would be great. Thanks! You can solved that with custom CSS by setting the thead display attribute to none: Example: div[id="testForm:first"] thead { display:none; } if your JSF is similar to this: <h