grid

Approach on changing row color on orders grid in admin

大憨熊 提交于 2019-11-29 08:08:00
I need to change row color in magento orders grid based on order status. For start I don't want a complex solution with configurable interface. I just want to know where to start. What is the best approach ? ʍǝɥʇɐɯ Full, working solution: Copy js/mage/adminhtml/grid.js to js/colors/adminhtml/grid.js Make the file 666 and the folders (js/colors & js/colors/adminhtml) 777. Edit it and after line 208 (before the line containing }.bind(this) ) add: colorize(); At the end of the file add: function colorize () { $$('td').each(function(macguffin) { if(macguffin.innerHTML.strip()=="Processing")

Need to scroll one WPF Grid

删除回忆录丶 提交于 2019-11-29 08:06:26
I want to create two grids in the WPF Page. One Grid need scrollbar or scroll viewer. Another Grid is static.The grids are placed one by one in the page. How can I create and set the scroll in first Grid ? aladinfajr <ScrollViewer> <StackPanel> ... </StackPanel> </ScrollViewer> Sounds like this user justs wants the first grid to scroll, such as: <StackPanel> <ScrollViewer> <Grid> </Grid> </ScrollViewer> <Grid> </Grid> </StackPanel> 来源: https://stackoverflow.com/questions/839062/need-to-scroll-one-wpf-grid

display image in a grid using extjs

二次信任 提交于 2019-11-29 07:59:48
问题 I am new to extjs. I want to display icon images for each grid elements. can you please help me anybody? I am getting the image path from an xml file. My code is below. here I am displaying image path. I have to replace it by displaying image. Ext.onReady(function(){ var store = new Ext.data.Store({ url: 'new_frm.xml', reader: new Ext.data.XmlReader({ record: 'message', fields: [{name: 'first'},{name: 'last'},{name: 'company'},{name: 'email'},{name: 'gender'},{name: 'form-file'},{name: 'state

When editing a grid, how do I disable specific fields by row?

我只是一个虾纸丫 提交于 2019-11-29 07:50:57
I have a kendo grid with data in it and multiple columns (say col 1, 2, and 3). Columns 1, 2, 3 need to be able to be edited (or preventing editing) based off the values of each other. This is row specific. For instance, if column 1 (date) is < column 2 (date) then column 3 is not allowed to be edited. I know it's simple enough to disable or enable an entire column but my requirements are row specific. So row 1 could have column 3 enabled and row 2 could have column 3 disabled. Any thoughts? My suggestion is creating an editor function that validates the condition. This of course has the

How to set row border and background color in WPF Grid

醉酒当歌 提交于 2019-11-29 06:15:47
问题 How can we set border and background color in the WPF grid control , i am creating rows and column dynamically and adding then to grid, can we set color and border from the code behind? 回答1: The Background color can just be set for the entire Grid by using the Background property: <Grid Background="Red" /> Or if you want it set for individual cells, you need to add an element to the cell that has its Background property set. As for Borders, a Grid only contains the ShowGridLines property,

Add Rows/Columns to a Grid dynamically

怎甘沉沦 提交于 2019-11-29 06:01:20
I have a child UserControl comprising of multiple textboxes, labels, image etc. I need to populate this user control in a Parent User control which has a Grid. The number of child user controls that need to be populated in the parent user control are determined at run time and can change. Basically the number depends on the search result. So it can be from 0 to n. How can I populate my child user control in parent control? Or is there a better alternate to using a Grid control for this? Note: I have to do this in my ViewModel. To have a dynamic Grid size(column/row count), you can use helpers

remember after refresh selected row in extjs grid

。_饼干妹妹 提交于 2019-11-29 05:55:24
I have a problem. I use extjs grid . This grid will be refreshed every seconds . I refresh with this function: ND.refresh = function() { ND.commList.load(); } var refreshSeconds = refreshRate * 1000; var t = setInterval('ND.refresh()', refreshSeconds); But when someone selected a row to highlight it it reset this selection. How can I remember the selected row and highlight it again after refresh? This is my grid: var grid = Ext.create('Ext.grid.Panel', { autoscroll: true, region: 'center', store: ND.dashBoardDataStore, stateful: true, forceFit: true, loadMask: false, stateId: 'stateGrid',

How GridLayout items come from the Adapter(List/Image) in Android App

青春壹個敷衍的年華 提交于 2019-11-29 05:07:42
Is it possible to Get the GridLayout items from the Adapter in Android. Like, The items in the GridView come from the ListAdapter associated with this view. Please clarify my doubt.. Thanks Gridlayout doesn't have any Adapters as its not derived from AbsListView . Only GridView comes with Adapters. Yes, it is possible. You don;t say what you are using to create the GridView. Following is an example of getting the data from a cursor when you click on a cell of the grid (and putting it into an intent to call another activity): gridview.setOnItemClickListener(new OnItemClickListener() { public

Arranging collection items in a grid

*爱你&永不变心* 提交于 2019-11-29 04:33:58
I would like to arrange items of a collection in a grid with a specific number of columns and rows (say 4x6). Each item exposes the dependency properties (integer) X and Y and should be placed in the relevant cell of the grid. Note that the collection can change during runtime which should update the grid items. I couldn't find any good solution. But maybe it is even possible without using the code-behind? Don't mind conversion or something. This stuff changes anyway. The used collection class isn't important. (You can choose one.) How can I solve this problem? Any appropriate suggestions

How to map a point onto a warped grid

不羁岁月 提交于 2019-11-29 03:56:05
Say you have a collection of points with coordinates on a Cartesian coordinate system. You want to plot another point, and you know its coordinates in the same Cartesian coordinate system. However, the plot you're drawing on is distorted from the original. Imagine taking the original plane, printing it on a rubber sheet, and stretching it in some places and pinching it in others, in an asymmetrical way (no overlapping or anything complex). ( source ) You know the stretched and unstretched coordinates of each of your set of points, but not the underlying stretch function. You know the