ActionScript 2.0 :: Customization Of DataGrid Component (or Alternatives)?
Jul 20, 2010
This DataGrid Components is giving me a massive headache. It's a massive pain to customize.I do some work for a graphic designer, who has given me a picture of an element which I'm to implement in an existing AS2-based Flash project (targeted flash version is not important). Here's the picture for reference:
Trying to make the default DataGrid work like this I'm quickly figuring out is nearly impossible. Firstly, I don't think it's possible to make alternating rows fade out like that. I'm willing to accept the fact I'm doomed to solid-color alternating rows for now.
My main problem at the moment is that I can't figure out how to change the size of the header. I need a larger font for the header than the items, and I need the size of the header itself to expand. Neither of which I can figure out how to do.
So does anyone know a) how to change the headers on the DataGrid, or b) where to find a more flexible (in terms of skinning) DataGrid component for AS2 which is cheap (preferably free)?
I would like to use the word wrapper for datagrid header, the problem is that it cuts the word to a new line, what i need is to add - sign after the word cutted...what i mean is: admins- trator
I'm looking for a button component that allows me to customize the text field.The Flash button component allows me to edit/reskin everything except the text field. However, I can change the buttons textField via AS, but only during run time, I want a button component that allows me to change the text field so I can see the button on the stage with out having to compile a swf.
i'm using flash CS4 and i'm wondering how to place a component into a DataGrid.I was able to grab this script from the live docs on how to place an image to a DataGrid but I want to replace it with a button.
Trouble with my DataGrid component (aDg), i want to tell it to got a fixed height, and then have a scrollbar when the lines into the Datagrid are biger than its height, but with this code, it doesn't work, the grid continues to get bigger without scrollbar :
Code: myDP= new DataProvider(fileXML); aDg.dataProvider = myDP;
I am trying to create a DataGrid component with AS and it's not showing up. Code: import mx.controls.*; createClassObject(DataGrid, "dgTalent", 0, {_x: 0, _y: 0}); dgTalent.columnNames = ["Character", "Allowed"]; dgTalent.addItem({Character: "Affliction", Allowed: "Affliction"}); It's still really basic right now, but I have to keep it that way until I can at least get the darn thing to show up.
Wasn't sure where to post this one as I'm not sure where the error is occuring.I have datagrid components being populated from a mySQL DB using php. The grids exist on external swfs being loaded into a parent clip.The datagrids populate locally no problem when tested individually and when loaded into the parent clip. They have also been working from the server in previous days, but I was doing final tests checks on some recent final changes and now things aren't working.obviously I went back and ran through what I changed but nothing really applied to the grids.Codes are below
Code: //DISPLAY ON TAP BEERS var myOnGridArray:Array = [];
I am trying to figure out how to make the datagrid component have alternating row colors.I have poured over the manual but cannot seem to fine a property to support this
I have a DataProvider object which loads an XML object during instantiation. I set my datagrid.dataProvider to the DataProvider object. There are 13 columns, and approximately 40 rows.
Scrolling the datagrid, and resizing columns has alot of lag. Is this to be expected when using the DataGrid component with larger datasets?
I want to have some sort of a list, which will contain movieclips (or thumbnails) ... is this possible to implement using the List component or DataGrid component?
I m using FLASH CS3, I used Datagrid and Combobox component from components panel, and simply add some data inside in that. setupComboBox(); function setupComboBox():void { cb.setSize(200, 22); cb.prompt = "Select a Credit Card"; cb.addItem( { label: "MasterCard", data:1 } ); [Code] ..... It seems working fine. My problem is, I want two different type of skining of two different component (DataGrid & Combobox). in the same fla. E.g if datagrid have gray color skin type and combobox have black color skin type.
I created an application to show a datagrid with a custom column in Flex 3. How can I access the method loadDetails in this code?:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ public function loadDetails(id:String) : void { // Some code here
[Code].....
When I tried to run this code Flex throws an error. It says that loadDetails is not defined. I suppose that error is because of scope.
I have a DataGrid component that I would like to update every 5 seconds. As rows are being added to this DataGrid I noticed that every update causes it to reset the scroll bar position to the top. How can I manage to keep the scroll bar at its previous position?
A few hours ago I've asked how to create a custom component (textInput and label component and created a Component Definition) and with your answers I can do that now.
Problem 2: I'd like to use that component in a datagrid column so that the user can type a value in the textInput which will in turn update the underlying dataprovider. I know I should use a cellrenderer like I've done with a checkbox column
My datagrid component appears to be broken. When I drag one out onto the stage, its just a square. Nothing in it. Just a square... Then, when I tried to programmatically add it to the stage, using an example straight off the docs, it throws some errors:[URL]
[Code]..
This sounds very bad, especially considering that I need to use the DataGrid to complete my program. What am I doing wrong and how can I fix it? This is AS3, right in frame 1 of the main timeline.
I'd like to extend the standard DataGrid component in flex with mxml. But I want to add buttons to the bottom of the component. I've tried attempting the following but its not working...Am I adding the Button to the wrong element?
I have a custom component of which have a advancedDataGrid inside it. I want thiscomponent to be reusable so need is set the datagid selectionMode as a component property.In mxml i want set property like this:
<comp:MyComp itemDataGridSelectionMode="singleCell" .../> Inside MyComp actionScript i have a metatag like this: [Inspectable(enumeration="singleRow, multipleRows, singleCell, multipleCells",
Does anyone know how to connect the Macromedia's datagrid component to a PHP/MySQL database? I can't seem to find ANY info or tutorials on the web for this.
I am looking for a solution to complete within AS2 that allows a user to hover over a column header within a datagrid and a tooltip would pop-up.I'm completeing a sports statistics sheet within Flash and I am obviously putting numbers in each column, else I would use the full column header but its just a number so I don't want to increase the width of the columns just for that.If anyone knows of a way to make each individual column header able to pop up a tooltip plz post or recommend something. To give an example if it isnt obvious of what I'm trying to doLets say my Table looks like soGP | G | A | +/- | %
Trouble with my DataGrid component (aDg), i want to tell it to got a fixed height, and then have a scrollbar when the lines into the Datagrid are biger than its height, but with this code, it doesn't work, the grid continues to get bigger without scrollbar :