Flex :: How To Show Delete Image In Each Row In DataGrid

Feb 10, 2010

I want show a image onmouse over inside data grid to each row, so if I click on that image, some function should call(as per my requirement).

<mx:DataGrid width="320" height="624" verticalScrollPolicy="on" dataProvider="{blocked_Usernames}" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Blocked User Name" dataField="blockedUsernames" editorDataField="value"/>
<mx:DataGridColumn width="20" editable="false">
<mx:itemRenderer >
<mx:Component >
<mx:Image source="@Embed('assets/image/Close.png')" width="10" height="10" autoLoad="false"/>
</mx:Component></mx:itemRenderer>
</mx:DataGridColumn></mx:columns></mx:DataGrid>

View 1 Replies


Similar Posts:


Professional :: When Delete The The Last Image (5) Only The First 2 Images Show When Run In Flash Player?

Mar 1, 2011

My client has purchased a Flash template which I'm in the process of editing. The XML file has 5 images linked to the Flash file, I've replaced the first 3 images, all works when uploaded to the remote server but when I delete the the last image (5) only the first 2 images show when run in Flash Player. If I view it in live view Dreamweaver (CS5) it runs with no problems ie it runs through the 4 images as expected.Can't figure it out checked the usual things, deleted the files on the server, cleared the cache in Firefox, I'm quite rattled spent the whole day on this, still can't get it to work.

View 8 Replies

Flex :: Datagrid Data Splitting - Show All Column Values And If Uncheck Columns Has To Show

Jan 23, 2012

In my flex datagird i have a checkbox and a datgrid with seven columns. im populating values in first five column(remaining two column no values) of datgrid by an Arraycollection. now,By clicking the checkbox i want to show all seven column values and if i uncheck five columns has to show... how its possible?? heres my code

[Code]...

View 1 Replies

Flex :: Deleting Row Of Datagrid By Clicking A Button Part Of That Row In Delete Column?

Nov 23, 2010

I want to delete a row of my datagrid when someone click a button part of that row located below Delete Column. I tried many different way one of those were to

<mx:DataGrid id="userGrid" dataProvider="{userGridData}" width="800" height="500" itemClick="userGrid_itemClickHandler(event)" creationComplete="userGrid_creationCompleteHandler(event)">
<mx:columns>

[Code].....

The item render ev.renderers.UserGridEditRender has a delete button listing for click event it basically do userGridData.removeItemAt(userGrid.selectedIndex);
(UserGridData = Data provider of grid with id "userGrid") But whenever I click the button an exception is throw

RangeError: Index '-1' specified is out of bounds.

View 1 Replies

Flex :: Delete Item From Collection Bound To Datagrid And Update The Grid Selected Index

Feb 20, 2011

I have a datagrid with an xmlListCollection bound to it:

<mx:DataGrid id="dgCompetente" includeIn="Competente" x="10" y="66" width="547" height="468"
change="dgCompetente_changeHandler(event)" dataProvider="{colCompetente}"
editable="false">

[Code]......

I want the selectedIndex to remain the same. So, if I delete item 2, the next in the list should be selected. The problem is that if I delete item 2, item 3 will be selected and I have no idea why.

View 1 Replies

Flex :: Show Row Index For DataGrid Rows?

Nov 24, 2009

Is it possible to dynamically show row index for DataGrid rows ?

I have a static ArrayCollection which is set to be DataGrid's data provider and I would like to always have row numbering for each populated row (e.g. in a column called "#").

View 1 Replies

Actionscript 3 :: Show Tool Tip In Mx Datagrid Row In Flex?

Dec 13, 2011

I want to know how i show the tool tip of each data grid row or show some specific column's data in tool tip.

View 1 Replies

Flex :: Show A Progressbar On Datagrid Data Update?

Apr 24, 2010

It might sound like a trivial question but how can I show progress bars, when datagrids and other components that "talk" to web services, update their data providers

View 1 Replies

Flex :: Show Red Error Border On DataGrid Cell

Apr 27, 2010

I can successfully add a validator on an item in my datagrid, by passing in the particular element in the dataProvider to the validator, but I can't get the red border to show up around the cell if the validation fails. I have stepped through the validator, and confirmed that it is passing back a failure, but I can't figure out why the red error border doesn't show up. I have a feeling its because I am passing the item in my dataProvider as the validator source, rather than the 'cell' item, but I can't find a way to access the cell.

View 1 Replies

Flex :: Customize Datagrid To Show Connectivity Between Tasks

May 18, 2010

I have made a program in Flex for creating simple schedules, similar to MS Project or Vico Control. I have one problem that I would like to solve. (You can see it here: OnTime Project Scheduling tool made in Flex

The tasks of the schedule are represented as Gantt Chart, for which I created a itemRenderer inside one of the rows in the DataGrid. The tasks are shown as gantt diagrams, but I would also like to show the connectivity between tasks.

take a look at the image below, to see what I am trying to accomplish here: (above is the image of how datagrid looks now, and below is the thing I would like to add)

how I could do this inside DataGrid's item renderer?

View 1 Replies

Make Flex 3 Datagrid Show Only One Row Of An ArrayCollection's Results?

Aug 11, 2010

Is there a way to make a Flex 3 Datagrid show only the first node of an arrayCollection, instead of showing all of the arrayCollection's data?[code]...

View 3 Replies

Flex :: Show Hand Cursor On A Datagrid Header?

Dec 15, 2010

Is it possible that when mouse is over the datagrid header the cursor changes to hand cursor instead of the pointer?

View 1 Replies

Flex :: Datagrid Columns Drag And Show Error Message?

Oct 8, 2010

I have a data grid where users can drag columns and reposition them. But there is a strange requirement that some columns should not be draged to the left of some other column. eg, assume the columns are: name, price , start date, end date, The end date should not be dragged and placed before the start date. i.e. The user can have start date, price , name , end date. name, start date, price , end date. But at no point can end date appear before start date. Is there a way to do this flex? Is there a way to know where the user is trying to drop the column and show error message ?

View 2 Replies

Actionscript 3 :: Flex - Unable To Show Datagrid Inside A TitleWindow?

Nov 2, 2010

I'm trying to add a DataGrid inside a spark TitleWindow and for some reason its not showing up correctly.When I put the same code in the main mxml, it comes up correctly. The exact same code shows up weird in the TitleWindow.

<mx:DataGrid x="10" y="51" width="535" height="215" id="musicianGrid">
<mx:columns>
<mx:DataGridColumn headerText="First Name" dataField="firstName" width="90"/>
<mx:DataGridColumn headerText="Last Name" dataField="lastName" width="90"/>

[code]....

Within the titlewindow it looks like this In the main mxml it looks like this There is no change in the code...

View 3 Replies

Actionscript 3 :: Datagrid Freeze Pane / Always Show Column In Scrollable Datagrid

Feb 28, 2012

I have a datagrid with some custom renderrers and I'm just curious how I should approach the ability to freeze and always show the left 3 most columns at all times when scrolling left/right.

I thought that I might have to resort to 2 datagrids, side-by-side, the first showing the 3 columns that I want at all times, and the ability to scroll the rest. Only issue then I guess is linking the row selection to select that row in both and to tie the column sorts together...

Or would it be better to try and take columns 4+ and shrink their width to 0 as a person scrolls right, and then increase it back to the max width as they scroll left? Though that would cause funny issues to happen as the content of the datagrid would get smaller and smaller until you were 100% to the right and the scrollbar would disappear.

View 1 Replies

Flex :: Combobox Backspace Or Delete Key Does Not Delete Highlighted Text

Mar 26, 2010

I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'

1) the data provider is filtered to show all items starting with 'st'
2) text is set to auto-suggest string such that the un-typed part is highlighted.

So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before

View 2 Replies

ActionScript 3.0 :: Delete Selected Row In Datagrid?

Dec 1, 2009

How do i delete the selected row in datagrid, and how can i change the selection color. at present it turns blue, i want it be red on selection, and then on some button click want to delete the selected row.

View 2 Replies

Flash :: Delete All Rows In A DataGrid?

Dec 28, 2011

I need to delete all existing rows from a data grid, i have tried using this but doesn't work[code]...

View 3 Replies

ActionScript 3.0 :: Flex - Remove Image Icon From A Flex Datagrid

Jan 18, 2011

I am loading the data externally from xml and displaying in a datagrid. I have 2 buttons addRow and deleteRow. My datagrid headertext names are "name" "age" "rollno" "image", where image also will be loading externally thru an xml file. now when i am pressing the deleteRow button, whole row is getting deleted but an image icon is still appearing under "image" headertext. It was not an actual image but a blank image icon kind of thing is appearing, how to remove the icon. i want my whole row to be deleted. but its not happening.

View 1 Replies

Flex :: Datagrid - Use An Image Multiple Times?

Dec 3, 2009

i want to reuse an image multiple times within an item renderer, is it possible to embed the image and then reuse multiple times without having to go back to the server for the image? Is this the most performant solution?

View 1 Replies

Flex :: Advanced DataGrid Image Renderer?

Jan 12, 2010

I need to develop Advanced Datagrid like the below attached image. So I had developed the Grid with some columns but do not know how to rendering the image in the result part of the grid. how to rendering the images in the result part.

View 1 Replies

Flex :: DataGrid Itemrenderer Image Not Displaying?

Dec 22, 2010

I have a Datagrid with an ItemRenderer assigned to a column which is a Currency column(String). The renderer is mean to display the Flag of the currency eg; for USD it should display a USD flag image etc. At the moment the column is appearing Blank without an image. I have the following renderer (which extends UIComponent). I am dynamically loading the images in the commitProperties() method. At the moment I have hard-coded it to the USD image to get it to work

public class CenteredEmbedImage extends UIComponent implements IListItemRenderer,IDropInListItemRenderer
{
private var _loader:Loader;

[Code]....

View 1 Replies

Flex :: Put Image In Header Using HeaderRenderer For Datagrid?

Mar 18, 2011

how to create an headerRenderer and embed and image in the first header (column) for my datagrid.

View 1 Replies

ActionScript 3.0 :: Remove Image Icon From A Flex Datagrid?

Jan 18, 2011

I am loading the data externally from xml and displaying in a datagrid. I have 2 buttons addRow and deleteRow. My datagrid headertext names are "name" "age" "rollno" "image", where image also will be loading externally thru an xml file.now when i am pressing the deleteRow button, whole row is getting deleted but an image icon is still appearing under "image" headertext. It was not an actual image but a blank image icon kind of thing is appearing, how to remove the icon. i want my whole row to be deleted. but its not happening.

View 6 Replies

Flex :: Adding A Image To A Datagrid Created In AS Class

Jul 9, 2010

I have created a datagrid in ActionScript class and I want to add an Image to one of the columns..I tried to add an image this way..but it doesnot work.

[Embed(source="../../../../css/images/redCircleIcon.png")]
public static const redIcon:Class;
var statusRedImg:Image = new Image();
statusRedImg.source = redIcon;

[Code]....

View 1 Replies

Flex :: Moving State Using Image Click Within Datagrid ItemRenderer?

Sep 7, 2009

I used play button image within datagrid iteam renderer, if I click image then move to another state (by using currentState ='play'). So I tried like

<mx:DataGridColumn textAlign="center" headerText="" dataField="col2">
<mx:itemRenderer><mx:Component>
<mx:HBox textAlign="center" paddingLeft="17">
<mx:Image source="@Embed(source='image/play_button.png')" click="currentState='Playsystem'"/>
</mx:HBox></mx:Component></mx:itemRenderer>

But it's shows error like undefined state 'Playsystem'. But Already I have state.

View 1 Replies

Flex :: Zooming Effect On Datagrid Cell With An Image In The Itemrenderer?

Oct 2, 2009

how to zoom the image displayed with the help of an item renderer.If i apply the Zoom effect on rollover ,the particular cell zooms the image with the scroll bars. Is their any other way of doing this without showing the scrollbars.

View 1 Replies

Flex :: Flash - Use Image As The Selection And Hovering Background In DataGrid?

Dec 13, 2010

I want to display an image instead of Color in item Selection and Hovering(mouse over) in Flex DataGrid. how i can do it ?

View 2 Replies

Xml :: Flex - Nodes Will Not Delete Despite Calling "delete"?

Feb 9, 2011

I'm trying to use the delete keyword to remove nodes from an xml file and it just plain won't work.Here's a stripped down example of what I'm working with. Every node has a child named "deleteme". If its value is equal to 1 I want to remove it from the xml file. If its anything else I want to leave it be. The delete method is deffinately gettig call but it's having no effect.

<?xml version="1.0" encoding="utf-8"?>
<stuff>
<i>

[code]......

View 1 Replies

ActionScript 1/2 :: Hide And Show Datagrid?

Aug 7, 2011

How do I hide a datagrid and then show it?I have a button to select. The button when clicked should show the datagrid. Once the user clicks a cell on the datagrid, it should hide again.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved