问题标签 [celltemplate]
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 - javascript在没有数据显示时显示消息
我正在研究 angularjs 应用程序。我正在根据用户输入的值显示角度 UI 网格。当角度 UI 网格中没有要显示的值时,我想显示一条消息,说没有找到记录。请在此处找到演示
例如,当用户在 From 文本字段中给出 Atlanta 和在 To 文本字段中给出 Chicago 并单击 SearchLocations 时,它将显示 UI 网格。但是当用户键入一些东西而不是显示空白时,我想显示 NO Records 喜欢的消息。另一个问题是我正在尝试添加一个带有单选按钮的列,以便用户可以在他们想要选择行时选择该单选按钮。通过向其中添加新列,我无法成功在网格的每一行中显示单选按钮。任何建议都会非常有帮助。作为一个新手,有很多问题需要解决。谢谢。
js代码:
HTML 代码:
我尝试为每一行添加一个单选按钮,但未能显示出来。我尝试将以下代码添加到新添加的列中,以便它在每一行中显示单选按钮,以便用户可以选择任何一行。
当没有要显示的网格和在 UI 网格的每一行中显示单选按钮时,任何显示消息的提示都会有所帮助。
wpf - WPF DataGrid: Selecting CellTemplate by DataType of ItemsSoure
I am Building a DataGrid where i want to switch the images inside a cell based on the underlying datatype of the current item.
Question: Is it possible to apply this type of template switching? Preferably in xaml-only?
ItemsSource is
which contains Items of type
This is where i currently am:
Thanks for every possible help!
jquery - 如何在 Angularjs ui-grid 中添加 jQuery 日期选择器?
我一直在尝试通过使用自定义单元格模板来添加Jquery Datepicker
UI Angularjs
-grid。
当我date
从 中选择一个时,一旦完成加载Jquery date picker
,UI-Grid
功能就不适用于相应的单元格。JQuery date picker
我尝试强行删除自定义目录中的 DOM 元素,但没有运气。
将其值加载ui-grid
到.JQuery date pciker
cell-grid
使用的版本是 angular v1.2.3
, ui-grid v3.0.6
.
c# - VisualTreeHelper 在 DataGridTemplateColumn.CellTemplate 中找不到控件
我使用此方法列出用户控件的所有按钮:
除了DataGridTemplateColumn.CellTemplate中的按钮外,它运行良好
“ VisualTreeHelper.GetChild ”似乎无法在数据网格项中找到控件。
javascript - 将 UI Grid 行数据绑定到 cellTemplate 中的 javascript 调用
我想从 UI-Grid cellTemplate 调用一个 javascript 函数,将一些行的实体值作为参数传递。
如果我直接从 href 调用该函数,它会在前面加上“不安全”。
如果我从 onclick 属性调用它,它不会正确绑定(虽然没有得到 unsafe 前缀。)
我应该如何调用它并正确绑定它?
尝试:
点击尝试:
Angular 1.5.0 UI-Grid 4.0.6
angularjs-ng-click - Angularjs ui-grid 单元格模板中的 ng-click 不起作用
我不知道为什么使用以下模板 ng-click 不起作用:
$event.stopPropagation() 执行但不执行 console.log。
有人知道为什么吗?
谢谢你。
angularjs - 为什么 grid.appScope.value 在 celltemplate 中返回 undefined
在网格单元格模板中,我正在尝试获取一个像这样的网格的父范围内的值
但grid.appScope.typeFlux
未定义。那么我怎样才能得到这个值。
谢谢。
javascript - 如何在按钮单击现有网格时添加带有自定义单元格模板的新行
这是我的网格的定义。一旦我单击某个按钮,将调用添加行函数,我想使用新的 cellTemplate 在网格中添加一行。每次它返回一个文本框。
angularjs-directive - 作为 cellTemplate 的 html 文件在指令 compile: 或 pre: function 中不起作用
在我来到这里之前,我确实阅读了这个帖子:https ://github.com/angular-ui/ui-grid/issues/2078 ,但仍然没有找到解决方案。
非常相似的问题:
我完全复制cT
到'myCellTemplate.html'并尝试加载它,但没有工作,但如果我使用内联cT
它工作正常。我厌倦了将 'myTemplate.html' 更改为 'myCellTemplate.html'templateUrl:
以查看指令是否可以成功加载 html,它实际上也在工作。所以我想知道compile:
->pre:
函数是否有不同的路径,所以它在当前路径中找不到“myCellTemplate.html”?
有什么想法吗?
更新
在我将路径更改为“/partial/.../myCellTemplate.html”后工作