gridpanel

ExtJS DateFormat Issue

混江龙づ霸主 提交于 2020-01-14 10:46:31
问题 I haven't found an existing question on this exact problem (there were several that were similar but did not help). I have a GridPanel with exam results, including when the exam was complete. The date returned from the SQL server is formatted like ' yyyy-mm-dd hh:mm:ss.uuu ' (2011-04-15 19:45:13.197). My problem is that even though the time is 19:45, it always displays as 7:45 AM. The dateformatter I am using in the datastore is ' Y-m-d H:i:s ' and ' F j, Y, g:i A ' in the column model. I

ExtJS DateFormat Issue

时间秒杀一切 提交于 2020-01-14 10:46:05
问题 I haven't found an existing question on this exact problem (there were several that were similar but did not help). I have a GridPanel with exam results, including when the exam was complete. The date returned from the SQL server is formatted like ' yyyy-mm-dd hh:mm:ss.uuu ' (2011-04-15 19:45:13.197). My problem is that even though the time is 19:45, it always displays as 7:45 AM. The dateformatter I am using in the datastore is ' Y-m-d H:i:s ' and ' F j, Y, g:i A ' in the column model. I

Drag N Drop controls in a GridPanel

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 01:44:28
问题 I have been fooling around with dragging and dropping controls in a grid panel in delphi 2010. Move a panel/button/whateever the contents are from one cell to another cell. Replacing existing or swapping places. I have not figured out how I know which cell was dropped on because they work with column indexes and also row indexes. so if I have a gridpanel which has 3 columns and 3 rows, and I have a button in cell 1/1... and I drag that button from 1/1 into 3/3 how can I get that cell location

extjs 5 grid's scrollbar does not work in border layout panel

眉间皱痕 提交于 2019-12-24 06:26:09
问题 in border layout panel , the grid's scroll-bar doesn't work correctly even though the store of grid is long enough to make the grid overflow! if my grid is in none border layout panel , the scroll-bar is OK, but when i put the grid in the border layout panel , either there is no scroll-bar ,either there is a invalid scroll-bar! { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', title: 'west bottom grid(I am begging for your

extjs 5 grid's scrollbar does not work in border layout panel

馋奶兔 提交于 2019-12-24 06:26:09
问题 in border layout panel , the grid's scroll-bar doesn't work correctly even though the store of grid is long enough to make the grid overflow! if my grid is in none border layout panel , the scroll-bar is OK, but when i put the grid in the border layout panel , either there is no scroll-bar ,either there is a invalid scroll-bar! { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', title: 'west bottom grid(I am begging for your

How to get the value of the checked radiobutton in wpf

馋奶兔 提交于 2019-12-24 02:05:33
问题 I have four RadioButtons in a grid panel, but when I do this: <GroupBox x:Name="radioButtons"> <RadioButton Content="1" Height="16" HorizontalAlignment="Left" Margin="10,45,0,0" Name="status1" VerticalAlignment="Top" /> <RadioButton Content="2" Height="16" HorizontalAlignment="Left" Margin="10,67,0,0" Name="status2" VerticalAlignment="Top" /> <RadioButton Content="3" Height="16" HorizontalAlignment="Left" Margin="10,89,0,0" Name="status3" VerticalAlignment="Top" /> <RadioButton Content="4"

Removing controls from a TGridPanel

北慕城南 提交于 2019-12-23 20:22:47
问题 I'm using TGridPanel to manage a number of panels. I create the panels and add them to the GridPanel using code like the following: var pnl: TPanel; begin pnl := TPanel.Create(GridPanel2); pnl.Caption := 'Panel One'; pnl.Tag := 1; pnl.Parent := GridPanel2; pnl.Name := 'pnlOne'; GridPanel2.ControlCollection.AddControl(pnl); pnl := TPanel.Create(GridPanel2); pnl.Caption := 'Panel Two'; pnl.Tag := 2; pnl.Parent := GridPanel2; pnl.Name := 'pnlTwo'; GridPanel2.ControlCollection.AddControl(pnl);

Is it possible to show more than one summary row in gridpanel of extjs?

瘦欲@ 提交于 2019-12-23 08:56:47
问题 Following is my code to show a grid panel with total cost summary. I want to show another summary row with average. So any help? Ext.require(['Ext.data.*', 'Ext.grid.*']); Ext.onReady(function() { Ext.define('NewEstimate', { extend: 'Ext.data.Model', fields: ['description', 'cost'], validations: [{ type: 'length', field: 'description', min: 3 }, { type: 'int', field: 'cost', min: 1 }] }); var rowEditing = Ext.create('Ext.grid.plugin.RowEditing'); var store = Ext.create('Ext.data.Store', {

Integrating Ext.grid.panel validation and Ext.data.Model.validations

随声附和 提交于 2019-12-22 18:08:34
问题 I've been learning ExtJS4 after having done quite a bit of dev in ExtJS3. I'm quite intrigued by the new class Ext.data.Models, but I would love to integrate these validations with the validation function in Ext.grid.Panel. Can anyone point me in the direction of any examples of using the validations property of Ext.data.Model in a Grid panel? I've tried adding the validations to the model and putting invalid values in the grid, but it doesn't seem to throw an errors or the normal red lines.

In IE7 the first click on a grid causes an ExtJS Ext.grid.GridPanel to jump to the top of the page

大憨熊 提交于 2019-12-21 20:49:48
问题 I have a strange issue with an Array fed ExtJS gridPanel - in IE7 only, before the rowclick event is fired, when I click on a row, the page scrolls up 2-3 rows. On repeated clicks, the page scrolls up until the page is at the top of the page. Then only the rowclicks are passed through to my handler. I only have two listeners registered on this grid: listeners: { rowclick:function(grid, rowIndex, e) { ... my handler }, sortchange : function(grid, rowIndex, e){} Do you have any ideas? 回答1: I