grid

ExtJS 4 - How to add background colors to columns of a grid?

两盒软妹~` 提交于 2019-12-07 01:21:28
问题 I have a grid in which I need to provide different background colors to various columns. These column colors should also not be overwritten by the mouse-over color. I have tried using cls and tdCls but no luck. Could anyone guide at how this could be achieved? Thanks in advance. 回答1: NetEmp is right here, you want a renderer and you want to use the direct 'style' method or I did it below using the following: function greyRenderer(lpValue, opMeta, opData) { if (opData.data["Condition"] == 0) {

MouseDown doesnt work in Grid (only on buttons which in grids)

醉酒当歌 提交于 2019-12-07 01:12:03
问题 I have problem with MouseDown event. My app looks like that, I have grid in which im adding buttons in code behind <Grid Grid.Column="1" Name="gridWithButtons" MouseDown="normalModeButtonsWP_MouseDown" > <WrapPanel Name="normalModeButtonsWP" MouseDown="normalModeButtonsWP_MouseDown" ></WrapPanel> </Grid> But when im pressing mouse button in grid/wrappanel ( i mean in empty space between buttons for example) it doesnt work. Works only when im pressing button which is in wrap/grid. Anyone know

Ext-JS: How to disable cell editing for individual cells in a grid?

一曲冷凌霜 提交于 2019-12-07 01:00:56
问题 I am now building a web application with Ext-JS 4.0.2, and I am using a editable grid to control the data to be shown for a table on the same page. To make the grid editable, I followed the API documentation and used the following: selType: 'cellmodel', plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 }) ] However, for this grid, there are several cells that are not supposed to be changed. I could simply let the event handler change the data back to the right state once

Making a grid in a ListView ItemTemplate fill

十年热恋 提交于 2019-12-06 23:58:01
问题 I have a ListView which has a data template based on a grid. The xaml is as follows: <ListView ItemsSource="{Binding SomeItemSource}" HorizontalAlignment="Stretch" Height="281"> <ListView.ItemTemplate> <DataTemplate> <Grid HorizontalAlignment="Stretch" Margin="3" Width="Auto"> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="70"></ColumnDefinition> <ColumnDefinition Width="*"><

WPF Grid: Is there an easy way to readjust the row items if I need to insert new rows?

扶醉桌前 提交于 2019-12-06 18:09:40
问题 It appears that grid row and column definitions are hard-coded like this: Grid.Row="3" Grid.Column="1" I am in the middle of development on a new WPF app and I am having to constantly add and delete new rows from my grid as the client makes up their mind on how the form should look. I am discovering that this is quite a tedious task. If insert a row near the top, I have to manually change all the row indexes in the XAML beneath the row I just inserted. Is there an easy way to auto-adjust all

Why InvalidateRow/InvalidateColum does not work?

假如想象 提交于 2019-12-06 16:24:29
问题 InvalidateRow and InvalidateColum are not working for TStringGrid. The methods will not invalidate the entire Row/Col. InvalidateGrid always works (so this could be a dirty work-arround until the cause of the bug is found). In some circumstances (it seems to be random) InvalidateRow and InvalidateColum seem to work also. Update: I have found which circumstances will trigger the bug: the grid must be larger than the visible area and the position is outside of the view. Any ideas? Delphi 7, Win

kendo ui mvc grid editortemplate issue

我的梦境 提交于 2019-12-06 16:09:18
问题 What I am trying to do : I have a form with Kendo UI controls like DatePicker(s), Dropdownlist(s), NumericTextBox(s) on the first half of the page Second half has a Kendo UI MVC Grid control This Kendo UI Grid control has 8 columns in which 2 columns has a Kendo dropdownlist(EditorTemplate) and CheckBox(EditorTemplate). The Kendo UI Grid control is Ajax binding. When the save button is clicked, all the values from the Kendo UI controls(first half) and Kendo UI grid control(second half)

How to focus on editable textfield when checkbox is checked in ExtJS Grid?

試著忘記壹切 提交于 2019-12-06 16:07:49
I am creating a grid with checkcolumn and celledit. I have 3 columns 1 is for checkboxes and other is editable text field and 3rd is the productname, using celledit to edit the price. When I will check a checkbox on a record the focus should be on the textfield for that particular record. Here is the code sample: Ext.define('MyApp.view.EntryPage', { extend : 'Ext.grid.Panel', alias : 'widget.entryPage', title : 'Product Price Entry', store : 'ProductStore', loadMask: true, plugins: [Ext.create('Ext.grid.plugin.CellEditing', {clicksToEdit: 1})], initComponent:function(){ var me = this; this

Vaadin Grid Table: how to draw border for certain columns?

断了今生、忘了曾经 提交于 2019-12-06 16:02:57
I'm using Vaadins Grid table for data representation. Therefore I want to draw a thick line for the right border of the Employee -ID-column and for both border sides of the name or name and surname column. The result should look like this: How I can manage that? Morfic Continuing from where we left off in your other question regarding cell background , update your CellStyleGenerator to handle your other columns. For the sake of brevity I'll just demo a column with both borders, but you'll get the idea: grid.setCellStyleGenerator(new Grid.CellStyleGenerator() { @Override public String getStyle

How to create a dynamic grid using vue?

六月ゝ 毕业季﹏ 提交于 2019-12-06 15:37:28
What is the best way to create a grid dynamically with Vue? I was thinking of using the v-for loop to generate cards on a page for X number of 'modules', but would like to arrange them in rows of 3. e.g Card | Card | Card Card | Card | Card You can use CSS grid layout , make sure to check browser support . We'll need to make the container a grid container using display: grid and use grid-template-columns . You can create a component that accepts a number prop and then use it in the repeat() notation. repeat({numberOfColumns}, minmax({minColumnSize}, {maxColumnSize})) new Vue({ el: "#app", data