how to create cells in flex(have to find each cell) - apache-flex

can any one help me how to make cells in flex....
Suppose if i need 4 columns and 10 rows...it should display grid with rows and columns.
And i should be able to find each cell.

It depends. If you need a table-like component you can use the mx:Datagrid component or if you have custom component which you want to repeat you can use the s:Datagroup (Repeater in Flex3) with a Tile layout. You can use getElementAt() to get the cell.

Related

Vaadin Grid Column Re-Order (Vaadin 14 / Flow)

I'm using Vaadin grid and have two grids which are more or less configured the same. One has a header row configured. I retrieve it by prependHeaderRow() method.
On both of the grids I enable column reordering by setting setColumnReorderingAllowed(true).
On both I'm then able to drag columns. BUT the one without header row lets me reorder the columns (see fig 1) and the other one prevents me from reordering by indicating all columns in grey-ish while dragging the column (fig 2).
Figure 1
Figure 2
Has somebody any idea why Vaadin grid is preventing my from re-ordering while header row is prepended? And if yes how I can get around it?
Kind regards
Ben

bootstrap stacking middle column

I just started using bootstrap.. i am trying to create a page with three column.
The middle column then needs to split into further ten rows. Each row will then have corresponding php echos
I have added the code on what i am doing on this page
http://www.bootply.com/BYbAeQUSsB#
I need to know if this is the right way of making rows in a column or is there another efficient way. i need to be responsive.

What is the Maximum Limit of Display Column in Obout Grid Control?

My Problem related to Obout Grid is that I have to display more than 250 Column in grid.
& i am getting error
If i display around 100 columns its running well & display all records. Can any one tell what is limit of records that we can display in Grid
Hello I got Solution,
This is a limitation of the standard Unit class:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.unit.pixel.aspx
"The Unit class can represent values only between -32768 and 32767."
So you need to make sure that the sum of all the columns' widths is smaller than 32767.
The default width of a Column is 175px, so if you auto generate the columns you will be able to use up to 187 columns.
If the columns are auto generated, you can reduce the width of the columns using the ColumnsCreated event:
http://www.obout.com/grid/aspnet_events_columns.aspx
If the columns are manually defined using the Columns collection simply set a smaller width for some of them.
reference from blog: http://www.aspbucket.com/2015/11/what-is-maximum-limit-of-display-column.html

Dynamically display image in a Sharepoint 2010 list

I want to display image dynamically in a list. I have two columns in a list. The first column contains some numerical values and other contains smiley icon. My requirement is, if number in first column is greater than 50, I want happy smiley to be appear in a second column in a list, and sad smiley for less than 50 number. Currently I use hyperlink column to display image in a list. And I am adding image manualy.
I am looking forward, if it is possible to automatically display image based on first column number. Something like calculated columns. Lets say,
HyperLink/Picture Formula:
column =IF([someNumer]>50, "href = c:\Test\happySmiley.ico", "href= c:\Test\happySad.ico" )
I was wondering if we could do something like this, or any other suggestion is appreciated..
You are looking for KPI indicators.
You can also find great overview here:
How to create a SharePoint KPI column
And also check similar question on SPSE:
Make all KPI Status Icons in diamond shape

Flex: Make columns aligned between 2 DataGrids?

I have 2 advanced data grids, one above the other. They both have the exact number of columns, and pertain to each other in the same way. But each is showing different data, which is why I split into 2 grids. However, on each one you can resize the columns, what I would like is to make it so that if you resize a column on either datagrid the same column on the opposite datagrid resizes as well, so they are both always lined up.
Is there a way to do this?
Thanks!!
private function onColumnStretch(e:AdvancedDataGridEvent):void
{
(adg1.columns[e.columnIndex] as AdvancedDataGridColumn).width = (adg2.columns[e.columnIndex] as AdvancedDataGridColumn).width;
}
Add to dategrid:
columnStretch="onColumnStretch(event)"

Resources