treetable

Primefaces TreeTable frozen columns

痴心易碎 提交于 2020-01-15 09:47:33
问题 is it possible to make the first two columns of a primefaces treetable frozen? This is my TreeTable: <h:form id="mmvUebersicht"> <p:treeTable id="massnahmenUebersichtTable" value="#{mmvOrganisationseinheitenTreeHandler.root}" var="_tree" selection="#{mmvOrganisationseinheitenTreeHandler.selectedNode}" selectionMode="single" scrollable="true" scrollHeight="500"> <p:ajax event="expand" listener="#{mmvOrganisationseinheitenTreeHandler.onNodeExpand}" /> <ui:remove> <p:ajax event="select" update="

How to show tree lines in second column in a TreeTable

蹲街弑〆低调 提交于 2020-01-15 07:21:35
问题 I am using TreeTable (com.jidesoft.grid, see TreeTable) to display hierarchical data, which uses a special cell renderer on the first column to paint +/- icon as well as tree line. So, a typical View appears as following: | Column1 | Column2 | ----------------------------- |+Item1 | Item4 | | -Item2 | Item5 | | item3 | item6 | While I want the following view for my TreeTable, with +/- buttons and tree lines in second column: | Column1 | Column2 | ----------------------------- |Item1 | +Item4

Bug after update TreeTable

ぐ巨炮叔叔 提交于 2020-01-07 01:55:09
问题 I got a problem after updating the a TreeTable, as i understand this is because model is not refreshed, tried to refresh it but it doesnt help. Here is what i see after update: (erased headers by myself) No rows added, but if i scroll horizontally, the rows are added and seen. Here is my update code: if (events) { tEvents.unbindAggregation("rows"); tEvents.bindAggregation("rows",{ path: "events>/prg_years(ID_SCENARIO=" + filterKRVR.scenario + ",I_YEAR=" + filterKRVR.year + "m)" + "/HisGTO",

How can I use a treetable to show all rows in an Oracle SQL table?

放肆的年华 提交于 2019-12-24 00:48:36
问题 I have this table: CREATE TABLE perarea ( id_area INT primary key, nombre VARCHAR2(200), id_areapadre INT references perarea(id_area) ); And this was added to access the data: My intention is to create a hierarchy showing areas and their subordinates in the treeview. Then when a user clicks a node, have a table on the right of the treetable load all employee from that area. First thing's first though, how can I populate the treetable? Thank you! 回答1: It's helpful to think of a JTree as a view

jquery树形表格实现方法

回眸只為那壹抹淺笑 提交于 2019-12-23 13:29:45
效果图 准备步骤: 具体使用的Dome可以在这个位置下载 http://download.csdn.net/detail/jine515073/7986227 1.引入jquery.treeTable.js和jquery.treeTable.css 前台代码如下: <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <link href="/resources/js/treeTable/vsStyle/jquery.treeTable.css" rel="stylesheet" type="text/css" /> <style type="text/css"> table, td, th { border: 1px solid #8DB9DB; padding: 5px; border-collapse: collapse; font-size: 16px; } </style> <script src="/resources/js/jquery-1.7.2.min.js" type="text/javascript"> </script> <script src="/resources/js/treeTable

hide primefaces table column header

半城伤御伤魂 提交于 2019-12-22 03:56:49
问题 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! 回答1: You can solved that with custom CSS by setting the thead display

easyui+treegrid实现繁琐的小功能

半世苍凉 提交于 2019-12-20 17:54:51
分页+多选 <html> <head> <title>treegrid</title> <link rel="stylesheet" type="text/css" href="/MgmtCenter/resource/jquery-easyui-1.4.3/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="/MgmtCenter/resource/jquery-easyui-1.4.3/themes/icon.css"> <script language="javascript" src="/MgmtCenter/device/js/jquery-1.8.3.min.js"></script> <script language="javascript" src="/MgmtCenter/resource/jquery-easyui-1.4.3/jquery.easyui.min.js"></script> <script type="text/javascript"> $(function() {      /*初始化时加载内容*/ $('#treeTable') .treegrid( { url : 'ajaxSafePolicyListNew.action?pageNumber='

SAPUI5 create JSON for TreeTable / empty rows

て烟熏妆下的殇ゞ 提交于 2019-12-19 10:52:05
问题 I want to create a SAPUI TreeTable from a JSON request, currently my output looks like this (as you can see, every node contains an empty row -> I do not know where this is coming from and I do not want to have these empty rows): My Table definition: //Create an instance of the table control var oTreeTable = new sap.ui.table.TreeTable({ columns: [ new sap.ui.table.Column({ label : new sap.ui.commons.Label({ text : "", }), template : new sap.ui.commons.TextView({ text : "{Title}", textAlign :

jQuery treetable text aligned to icon - span.indenter

大城市里の小女人 提交于 2019-12-13 02:25:00
问题 I have a treetable which columns have an icon and text like this (this is fine)*: However, when I reduce the width of the screen, this happens: And I would like to have something like this: My html is like this: <tr data-tt-id="2" data-tt-parent-id="1"> <td> <i class="fa fa-lg fa-file-text-o"></i> <a href="javascript:void(0)">Title</a> </td> </tr> And my js is: $("#requestForQuotationTable").treetable({ expandable: true, indent: 15 }); And the code generated by treetable is this: <tr data-tt

avoid nodes of p:treeTable to collapse after update

走远了吗. 提交于 2019-12-12 08:48:59
问题 i have a p:treeTable in a form and a p:dialog in another form where from p:dialog i add data to the p:treeTable on submit of h:commandButton of the dialog i add update of p:treeTable in orded to see the added node The issue is that all expanded nodes the user has opened will all collapse I found this question Avoiding the collapsing of p:treeTable after update which in the question he wrote solved but no answer or solution for his question 回答1: To avoid collapsing or expanding you have to