grid

ExtJS: How to set defaults for Grid columns within initComponent?

╄→гoц情女王★ 提交于 2019-12-10 12:16:20
问题 as you notice below, I'm using Ext.Array.merge to render columns within initComponent . I'm try to set columns ' flex property as default in initComponent . How can I achieve to this arrangement? initComponent: function () { var me = this; Ext.on('resize', function () { me.height = window.innerHeight - App.MAIN_FOOTER_HEIGHT - App.MAIN_HEADER_HEIGHT - 100 }); me.createGridMenu(); me.columns = Ext.Array.merge(me.getListColsStart(), me.getListCols(), me.getListColsEnd()); //I need to set

VCL篇:DevExpress v16.1新功能介绍

爱⌒轻易说出口 提交于 2019-12-10 11:28:51
PDF Viewer (CTP) DevExpress VCL v16.1将PDF Viewer控件加入Community Technology Preview (CTP),意味着可以直接在VCL应用中直接浏览PDF文件,无需额外安装PDF阅读器。 支持的功能有: 内容缩放和滚动 Side-by-side和连续页面布局 嵌入式字体 可以将任何页面导出为图片 可在设计时生成Ribbon/Toolbar UI Callout Popup Control VCL Callout Popup Control支持显示OS X/iOS样式的自定义弹出窗口,支持的功能有: 弹出动画效果 可选的圆角效果 可自定义弹出位置 Range Track Bar Editor v16.1新增一个全新的Range Track Bar Editor,一个可以选择区间值的进度条。这个编辑器可以用于两种类型的使 用场景:standalone (in unbound or data-aware mode) 和 inside container controls(比如Grid, TreeList, Pivot Grid 和 Vertical Grid控件)。 Grid Control Windows Explorer View Windows Explorer View 模仿了 Microsoft Windows

Extjs 4 grid filtering

给你一囗甜甜゛ 提交于 2019-12-10 10:06:51
问题 this is exactly what I am looking for http://www.developerextensions.com/index.php/extjs-filter-row but I could not find a version which would work well with extjs 4 Its very possible that I created a false code because I am noobie in extjs so could you please help me with this or some similar extension how exactly to implement it and make it work? Thank you very much in advance. 回答1: You don't need to use external plugins. In Ext JS 4.1 filtering can be done easily without any plugins. There

Android From gridview layout index convert into row and column

巧了我就是萌 提交于 2019-12-10 10:05:44
问题 If I have index starting from 0, of a position on a grid, how can I turn that into a row, column? I'm getting incorrect results with the following. Fortunately I know how many rows and columns I have and in my case its 11 by 11. int column = position % columns; int row = position / columns; 回答1: // x : horizontal position in range [0; columns-1] // y : vertical position in range [0; rows-1] int x = index % columns; int y = index / columns; int column = x + 1; int row = y + 1; to reverse: int

How to show a menu in a grid - ExtJS 5?

柔情痞子 提交于 2019-12-10 07:01:25
问题 I am trying to show a menu in a grid panel. I have a actioncolumn to display an icon and i want apply an effect... when the mouse is over that icon, a menu will be displayed. How i can do this in extjs 5? My actioncolumn is this: { xtype: 'actioncolumn', width: 70, items: [{ icon: 'resources/images/icons/cog_edit.png', // Use a URL in the icon config tooltip: 'Edit', handler: function(grid, rowIndex, colIndex, a, b, c) { } }] } 回答1: Referring to this post that I mentioned in the comments,

How to make RecyclerView's grid item to have equal height and width?

谁都会走 提交于 2019-12-10 02:19:24
问题 I define my RecyclerView as grid by setting its layout with GridLayoutManger that has a span count of 3 which are already working fine. I also add an item decorator to my recycler view which will manage the spacing between grid items, this also works fine. public class GridSpacingItemDecoration extends RecyclerView.ItemDecoration { private int spanCount; private int spacing; private boolean includeEdge; public GridSpacingItemDecoration(int spanCount, int spacing, boolean includeEdge) { this

Snap to grid mouse locking up

删除回忆录丶 提交于 2019-12-09 21:09:53
问题 I am working on an application which draws a simple dot grid. I would like the mouse to snap between the points on the grid, eventually to draw lines on the grid. I have a method which takes in the current mouse location (X,Y) and calculates the nearest grid coordinate. When I create an event and attempt to move the mouse to the new coordinate the whole system becomes jerky. The mouse doesn't snap smoothly between grid points. I have copied a code sample below to illustrate what I am

Editable GRID (ExtJS) using PHP+MySQL

自闭症网瘾萝莉.ら 提交于 2019-12-09 19:47:06
问题 I have a little trouble with understanding of recording data to MySQL database. Now, I have some table in my DB showing in Grid. I attached an Editor, but i don't know, how to use it correctly (sending editable data into a php-script). May I ask for help? Thanks. view.js Ext.onReady(function() { var cols = [ { dataIndex: 'id', header: 'id', hidden: true }, { dataIndex: 'title', header: 'Title', width: 200, editor: 'textfield'}, { dataIndex: 'author', header: 'Author', width: 200, editor:

Populating Bootstrap grid with dynamic data using #each in Meteor

做~自己de王妃 提交于 2019-12-09 18:20:20
问题 Firstly thanks for your help and forgive my infant Meteor and Bootstrap skills. I am having a similar problem to the question raised here that has generate some suggestions but no solution. I want to populate a BootStrap grid using data from MongoDB in a Meteor template using #each. Since the BootStrap grid has 12 columns and I want to display 4 'cells' per row I believe I need to - Create a row using . Output four data elements inside ...element... Close the 'row div' with . Create the next

Editable jQuery Grid Recommendations with REST API

做~自己de王妃 提交于 2019-12-09 17:21:16
问题 First, i already read the question "jQuery Grid Recommendations" but it doesn't answer to my question. I have a small REST API with MongoDB Backend just : Get all equipements : GET /equipements HTTP/1.1 {{_id:key1, name:Test Document 1, plateforme:prod}, {_id:key2, name:Test Document 2, plateforme:prod}, ...} Get equipement with the key : key1 GET /equipements/key1 HTTP/1.1 {"_id": "key1", "name": "Test Document 1", "plateforme": "prod"} Add new equipement PUT /equipements HTTP/1.1 {"_id":