grid

Submit all of grid rows with Extjs form submit

余生长醉 提交于 2019-12-12 04:54:55
问题 I have a grid panel in a form. Any row of the grid panel have a filefield. I want to send any row (name field and filename field) to server. Model : Ext.define('FM.model.DefineCode', { extend: 'Ext.data.Model', fields: [ {name: 'id', type: 'int'}, {name: 'name', type: 'string'}, {name: 'filename', type: 'string'} ], validations: [ {type: 'presence', field: 'id'}, {type: 'presence', field: 'name'}, {type: 'presence', field: 'filename'} ] }); Store: Ext.define('FM.store.DefineCode', { extend:

What ExtJS 4.2 standard function gets executed for grid selection when using Ext.selection.RowModel (default) selModel?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 04:44:44
问题 There is a bug with the way the Ext.grid.Panel rowexpander plugin works when a nested grid is set to renderTo to the rowexpander div id. When this is implemented, it's difficult to see what is actually being selected. The reason for this is because the config "disableSelection" and "trackMouseOver" are to be both considered for highlighting. I have to set "trackMouseOver: false" so that hovering over grid rows doesn't interfere with reproducing this behavior. Then "disableSelection: false"

Change size of <h1> tag when responsive Bootstrap [duplicate]

蹲街弑〆低调 提交于 2019-12-12 04:14:49
问题 This question already has answers here : Resizing Headings when Window Size Changes (2 answers) Closed 2 years ago . Is there any way to change the text size of <h1> tag when it goes on extra small or small screen size? Because <h1> has its own default size which is normal for medium size but very large for small and extra small. I want to change that size when it goes to small screen size or extra small screen size. 回答1: You can create a custom .css file (for example: site.css) and then use

Is there a way to set a cell in grid in edit mode with Vaadin 8 grid

梦想的初衷 提交于 2019-12-12 03:53:59
问题 I have defined a grid like this using Vaadin 8: ListDataProvider<Value> gridDataProvider = new ListDataProvider<>(new ArrayList<>()); GridSelectionModel<Value> selectionModel; Grid<Value> grid = new Grid<>(Value.class); TextField editorField = new TextField(); editorField.setSizeFull(); Binder<Value> binder = new Binder<>(); binder.bind(editorField, Value::getValue, Value::setValue); Editor<Value> gridEditor = grid.getEditor(); gridEditor.setBinder(binder); gridEditor.addSaveListener(

Magento showing wrong total records in sales./order grid

耗尽温柔 提交于 2019-12-12 03:48:16
问题 I will try my best to explain what I am doing. I have manually added four columns in grid.php file for sales/order grid. Now it's showing the wrong count in the total records. There are more than 1500 records, but it shows only 1190. So here is the code grid.php file. <?php class Mage_Adminhtml_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Widget_Grid { public function callback_skus($value, $row, $column, $isExport) { $increment_id = $value; $_order = Mage::getModel('sales/order')-

How to get the row index of selected checkbox on grid GXT

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:41:59
问题 I am working with GXT (2.2.5) and need to get the row index of chenged checkbox on the grid. What i am doing is to create a grid and apply a GridCellRender to show a checkBox in first column, then when any checkBox change their value (listener at the OnChange event), the row index of changed checkbox must be taken. This is a part of my code by the moment: checkColumn.setRenderer(new GridCellRenderer() { @Override public Object render(ModelData model, String property, ColumnData config, int

Scripts are not running as expected while running them using selenium webdriver Grid

允我心安 提交于 2019-12-12 03:35:25
问题 I want to run same script on three browser IE, Chrome and Firefox at a time (i.e., parallel). I am using the following code in Testng.xml file <test name="RunTests-1"> <parameter name="browser" value="firefox" /> <parameter name="port" value="http://localhost:4444/wd/hub" /> <classes> <class name="Com.TestSuite.class1"/> </classes> </test> <test name="RunTests-2"> <parameter name="browser" value="chrome" /> <parameter name="port" value="http://localhost:4444/wd/hub" /> <classes> <class name=

Using grid_propagate(False) in Python Tkinter

拥有回忆 提交于 2019-12-12 03:23:43
问题 I am creating a frame the uses the grid manager. And I have a label widgets in it. I want the label widget to fill to the frame that it is in. But instead the frame re sizes itself to the label widget. I have tried using the method grid_propagate(False). But it does not seem to be working. I don't know if it is just the way that I am using it but can someone help me figure out why it is not working? def fields(self): frame_row = 0 frame_column = 0 row_count = 0 color = "red" for i in range(50

Why don't added records appear in grid?

非 Y 不嫁゛ 提交于 2019-12-12 03:18:06
问题 I created a custom field for multiple file uploading, the problem is in the first step i couldn't even add selected file to grid, can you tell me what is the problem of my code? I looked at firebug and there is no java-script error. Ext.define('VDOA.form.fields.Attachment', { extend: 'Ext.form.FieldContainer', mixins: {field: 'Ext.form.field.Field'}, requires: ['Ext.form.field.Base'], alias: 'widget.attachment', layout: 'fit', constructor: function() { var me = this; me.items = [ { itemId:

Adjust height/position of multiple listviews so that content is aligned

江枫思渺然 提交于 2019-12-12 03:17:39
问题 I'm designing an application where I need to position multiple ListView s in a way that the content is aligned like this (simplified): What I have: The outer layout is a Grid (black) The ListView (grey) on the left has a small header The ListView s (grey) on the right are generated in an ItemsControl and have a fairly large header (vertical text). Also, they are part of a UserControl with additional content above them (not shown here) What I want: The contents (red) of all ListView s should