Questions tagged [celltemplate]

91 questions
2
votes
1 answer

WPF DataGrid Column Virtualization

I'm attempting to perform an horizontal virtualization on my DataGrid . My collection is of type : List which it's first dimension length is 64 and second is roughly 5000 I've been using Paul McClean's VirtualCollection to achieve…
eran otzap
  • 12,293
  • 20
  • 84
  • 139
2
votes
1 answer

jQuery Sparkline in a cell in ng-grid using CellTemplate and Directive

I am trying to bring jQuery Sparkline at each row in one cell in ng-grid. The column contains numeric array data. Plunkr --> http://plnkr.co/edit/1eNEcx6FQWcJynlVYvFw?p=preview I am using directive with cell template to achieve this. Cell…
inthiyan
  • 21
  • 1
  • 3
2
votes
1 answer

WPF DataGrid with different UserControl in each Cell

I hava a data model which looks like this: public class Model { public string DisplayAs {get;set;} // TextBox, CheckBox, ComboBox public string Value {get;set;} public string DisplayName {get;set;} // Row1, Row2, ... } Now I want to…
Reini
  • 1,233
  • 3
  • 19
  • 34
1
vote
1 answer

WPF Dynamic DataTemplate: GridView CellTemplate is not null but VisualTree property is null

I am trying to set the DataTemplate of my ListView.GridView's CellTemplate dynamically at runtime. The problem is when I do this, nothing happens. I checked the CellTemplate and it's not null but its VisualTree property is null. Any suggestions?…
Tawani
  • 11,067
  • 20
  • 82
  • 106
1
vote
0 answers

WPF DataGrid with mutable row/cell types - reuse templates

I have a complex table of data (about 150 rows, between 1 and 100 columns) which I want to display and edit using a DataGrid in WPF, but I've hit a big stumbling block. Please forgive me (and correct me) if my terminology is off in points, as I'm…
BitPoet
  • 36
  • 6
1
vote
0 answers

Control in Display Template loosing value after Edit template is put to action in dxg:GridControl's GridColumn

i have a dxg:GridControl in which i have dxg:GridColumn and on every row there is a Display and Edit template like below
1
vote
1 answer

Dynamic Button in WPF DataGrid - CellTemplateSelector

I have a datagrid in which I want to add a button to each line. This button should have another function depending on a condition. The datagrid consists of a list of some files that can be installed or, if already present, uninstalled using the…
Gardinero
  • 331
  • 2
  • 13
1
vote
1 answer

GridView in ListView with high number of rows, columns and cell templates

I'm having a problem with my ListView/GridView. In fact, my grid has 285 rows, and 24 columns constructed dynamically. My grid was so slow then I decided to do some other tests directly in XAML (which theorically should be more efficient). All the…
metalcam
  • 392
  • 2
  • 16
1
vote
1 answer

Change ListView CellTemplate based on state of item

I have a ListView that is has an ObservableCollection as its ItemsSource, and it has several columns. One of these is a State column which, depending on the current state of the item, shows a different message. Currently this is implemented as a…
Stigma
  • 1,686
  • 13
  • 27
1
vote
1 answer

html file as cellTemplate not working in directive compile: or pre: function

Before i came here, i did read through this thread: https://github.com/angular-ui/ui-grid/issues/2078, but still didn't find the solution. Pretty similar issue: angular.module('XXX') directive( 'myDirective', [function() { return { …
Cloud_cal
  • 132
  • 2
  • 12
1
vote
1 answer

How to add a new row with custom cell Template on button click in to an existing grid

var nameTemplate = "" function templateFunction() { if ($scope.useBindScript === true) { nameTemplate = '
'; } else { nameTemplate = '
ppb20
  • 11
  • 3
1
vote
2 answers

ng-click in Angularjs ui-grid cell Template doesn't work

I don't know why with the following template ng-click doesn't work:
Tuximo
  • 57
  • 11
1
vote
1 answer

Cell templates based on the cell value

I have an angular grid with a first column row has to be shown as an anchor link or a label based on a javascript condition of that cell value doesnt starts with the character 'M'. If cell value of column 1 starts with character 'M' the column…
sam
  • 85
  • 1
  • 8
1
vote
1 answer

Customizing the style of a cell in UI grid on the basis of some condition

I am using a UI grid of angular. I want to customize the CSS style of one particular cell for all rows in the grid based on some check. I am trying: $scope.gridOpts.columnDefs[2].cellTemplate='something' if some condition is met, else use some…
user2865480
  • 51
  • 1
  • 6
1
vote
2 answers

Search text from cell template not working in ui-grid

I have defined a conditional cell template for one of the column. Its displaying the data correctly but I am not able to search for the text in the cell template. Here is my plunkr: https://plnkr.co/edit/TDX5jtPord1hkzCVaw3L?p=preview var template1…
undefined
  • 3,464
  • 11
  • 48
  • 90