问题标签 [dynamic-columns]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
jquery - 用jquery隐藏列?
首先,我是 javascript/jquery 的新手,我在 stackoverflow 上找到了几个用于在 html 表上隐藏列的示例,这就是我需要的:
通过使用 jQuery 选中复选框来自动隐藏表列
它适用于 jsfiddle:
http:/ /jsfiddle.net/highwayoflife/8BahZ/4/
但我不知道,我做错了什么,为什么当我把它放在一起时它对我不起作用:
任何帮助表示赞赏:请尝试尽可能简单地解释它,就像我写的那样。提前致谢!
indexing - 通过 Hector 检查 Cassandra 中的动态列是否已经存在二级索引
在将数据导入我的 Cassandra 测试集群后,我发现我需要为某些列创建二级索引。由于数据已经在集群内,我想通过更新 ColumnFamilyDefinitions 来实现这一点。
现在,问题是:这些列是动态列,因此它们对 getColumnMetaData() 调用不可见。
如何通过 Hector 检查是否已经创建了二级索引,如果不是这样,则创建一个?(我认为如何创建它的部分可以在http://comments.gmane.org/gmane.comp.db.hector.user/3151中找到)
如果这不可能,我是否必须将此动态列族中的所有数据复制到静态列族中?
oracle - 如何在 Oracle 10 中将行转置为动态列
我有一个名为 TEST_HIST 的表,每天都会更新 1800 次测试中每个测试的 PASS/FAIL 状态。该表位于 Oracle 10 中。
我需要生成以下报告,其中每个每日结果集都出现在列中
表 TEST_HIST 如下所示:
谢谢你。
css - 将 query_posts 放在 3 列布局 css 中
嗨,我试图将 query_posts 列表放在 3 列布局中...
我需要 CSS 将 12 个相同类别的帖子划分为 4|4|4,按上次编辑排序 感谢您的帮助
primefaces - 问题使用动态列
我正在使用 primefaces 3.5 。我正在尝试<p:ajax>
与动态列一起使用。
<p:ajax>
不会触发我期望的动作。我的代码如下
任何人帮助我!
c# - WPF MVVM Dynamic Columns Multi-Threaded
I am currently working on a C# System.Windows.Controls.DataGrid that needs to generate the columns dynamically depending on the data. It can add and/or remove columns during runtime.
I am using a Thread in the ViewModel class to update the ObservableCollection that feeds the DataGrid.
I have read that post which explains the best solution I have found for my problem. Although, the Columns.CollectionChanged Delegate from the DataGridExtension class throws a InvalideOperationException : The calling thread cannot access this object because a different thread owns it.
Heres some code to picture it all :
The View XAML
ViewModel Class
DataGridExtension class
The section where I put /// This is where I tried to fix the exception. /// is where the exception is getting thrown, exactly at myGrid.add(...);
The myGrid object does not allow me to add that column to be added to the collection of columns of the DataGrid. Which is why I surrounded it with a Dispatcher.Invoke. Strangely, if I execute myGrid.Columns.Add(new DataGridTextColumn()); it works and I can see the empty columns getting added in the view but myGrid.Columns.Add(temp); throws the exception.
There must be something I don't catch with this thing.
Please HELP!!!!
EDIT following Stipo suggestion
jquery - 将列附加到从右侧偏移的 HTML 表格中
如何计算表第一行中的列数,减一,然后在该位置插入一列到我的表中?我希望该列的第一行与其他列不同。
本主题讨论插入新列。问题是它使用从左侧开始的固定位置来插入列。它也不会更改顶列。
这是我从该帖子改编的示例代码:
本主题讨论确定“表”中的列数。该示例似乎不起作用,因为在 HTML 中放置多个表会产生问题:
有一个jsfiddle伴随着列的计数。
编辑:问题解决了,我能够制作一个修改后的小提琴,根据行索引值将不同的内容放入不同的行中。
这将非常有用,因为我在不同的行上有不同类别的文本输入框,并且我根据类别对它们求和。我现在可以动态地向所有行添加新列,但仍然在每行中保留唯一的单元格类。惊人的!
sql-server - 根据 SQL 中的其他列设置列值
我有通过带有动态列名的数据透视表生成的表。数据透视的结果存储在临时表##MyTable 中。
带有示例列和数据的##MyTable 的结构如下,
除了 dFrom、dTo、0 和 20000.00 之外,所有这些列都是动态的。
现在的要求是将相邻 Column 的值更新为包含除 NULL 以外的值的列为 0。例如,在上述情况下,在 Column 1801.00 和 2401.00(它们是动态列)中设置了值分别为 00:15 - 00:30、00:30 - 00:45 和 02:00 - 02:15 的行。
此外,列 [0] 必须包含与任何包含 NULL 以外的值的列中的值相同的值。与上述情况一样,对于 00:15 - 00:30 和 00:30 - 00:45 的行,列 [0] 应包含 2.1;对于 02:00 - 02:15 的行,列 [0] 应包含 3.5。
提前致谢。
jquery - 唯一标识 HTML 表格以计算列数
我需要将列附加到特定位置的 HTML 表中。本主题讨论这样做- 非常方便!我的问题是columnCount()
下面显示的函数没有针对特定表的能力。它计算 HTML 中存在的所有 TD,这些 TD 在生成索引值时最终会导致问题。
我有两个 JS 小提琴。
- 一种功能,因为只有一张桌子。
第二个不起作用,因为存在两个表。
第二个小提琴返回无效
colCount
值,无法将列放在目标表中。我对选择器仍然太陌生,无法在上下文中应用正确的选择器......我正在慢慢学习这种语言。
编辑: 链接到具有更正代码的 JSFiddle。我希望这可以帮助其他正在努力使用选择器语法的人!