ActionScript 2.0 :: Datagrid Allow Editing On One Row / But Not Another?
Sep 14, 2004I was just wondering if it is at all posible to make a DataGrid with only certain rows editable?
View 1 RepliesI was just wondering if it is at all posible to make a DataGrid with only certain rows editable?
View 1 RepliesI was just wondering if it is at all posible to make a DataGrid with only certain rows editable?
View 1 RepliesI have an edit button at the end of each row, when clicked it brings up an editable form with that rows information in it. I am using event listeners to pass the information back to the main datagrid. The only think i don't understand is, how do you update the datafield values in the datagrid.I've tried a lot of different things, variations myDatagrid.nameField.text = "Person's Name"nameField[1].text = "Person's name"Anybody know how I can target the specific rows of the datagrid to edit the values in them?I have looked a little into data binding, but I can't figure out how to bind the form (in a seperate class) to the datagrid in the main mxml file.
View 1 RepliesI have an AdvancedDataGrid with editable parameter to "true". My problem is that after a successfull drag & drop, the item is being edited and I don't want this to happen. I tried to create a custom advancedDataGrid with this:
[Code]...
How can I get back the focus to the column after editing datagrid by Keypress.Enter, so that I can move to another column using arrow keys. Now its stuck in the edited cell and I cant move to another column.
View 1 RepliesI've knocked together a Java/BlazeDS server which creates a generic GridBean object. This GridBean contains:[code]I then created a Flex app that uses a RemoteObjectServiceWrapper to call my java server, grab the GridBean, create some DataGrid columns from the columnDefs and then set the dataProvider as the list of objects. Ok so far, everything renders.Now, what I'd really like to do is: set up some kind of event handler on the flex side so that if my item/object is edited in the datagrid, I fire a message off to java saying 'edited this field on this item'. The end goal is to have a nice generic way to render any list of objects from Java in a flex datagrid.
View 1 RepliesI am using the flex datagrid to allow the user to edit some data. My update process relies on a CollectionEvent of type update. Basically I catch this event package the values and update the database. However, if the user edits a cell then moves to edit a cell in the same row the value is updated but a collection event is not fired. Only when clicking out of the row the event is fired. Has anyone had experience with this. I have heard the datagrid is a little quirky is this one of those quirks or am I doing this all wrong?
View 1 RepliesI 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.
I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header:MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE,onDataGridResort);
View 1 RepliesI am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I works fine except for 2 problems:
If I enter to much text, the horizontal srollbar pops up, and the cell is filled with that scrollbar. As you see I tried to set the horizontalScrollPolicy to off, but that doesnt work at all... I tried to do that for all the different elements, but the failure is still existent. When I have filled more than one row, there is an other mistake happening. If I tap on a row, the datagrid selects the one below that row. That's only if one line is already selected. If I tap outside the datagrid and then, tap at any row the itemEditor of the right row will show up... Is there anything now wright in the setup of my set data method?
package components
{
import mx.containers.HBox;
import mx.controls.CheckBox;
[Code]......
From this (normal dataGrid)
into this (horisontal data grid)
How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (may be some how with Flash builder 4?)
Keeping all stuff DataGrid has like eating data from data provider sortind dragging - droping items etc
I have two datagrids:
- Division
- Members
Both have single columns. Selecting one item from Divsions datagrid should display members of that Division in the Members datagrid. But following code has some problem and Members of a particular division do not show up when respective Divsion is clicked.
Following are some snippets of the related code. Hope someone can spot an error in it.
[Code]..
For poor performance reasons, the DataGrid will cache checkboxes and reuse them for different rows. If you have 50 rows, it won't create 50 checkboxes. It will create as many checkboxes at are visible, plus a few more for padding, and then reuse them as you scroll. This is why you need to explicitly manage their state. How can improve it ? How can fixed checkbox value ? i used checkbox like below But checkbox doesnot remembering the values
[Code]...
I am attempting to style the headers in a flex datagrid and I keep getting the warning:
Type DataGrid in CSS selector 'DataGrid' must be qualified with a namespace
What does this mean? I have gone through a bunch of tutorials and none of them have worked. It seems like changing a the colors in a datagrid should be relatively simple.
Here is a code sample:
<mx:Style>
.headerCustomStyle
{
fontWeight: "bold";
[code]....
Is there a way to edit an imported movie into Flash (CS2)? I try to remove frames, but then it seems to remove them from the end of my movie and not where I specified (in the middle).
I tried editing the movie in another program and then importing that into Flash, but Flash loads my entire clip again.
I want to duplicate a flash website (no copyright issue, work assigned by the owner of the website). The only change I am required to do is to change each and every text in language A to language B.
I am a web developer with the knowledge of PHP,HTML,DHTML,XML,CSS,JavaScript but no flash .
Is it poosible to store the site as ans .swf or .fla file and then edit it? Or can it be edited and used or I need to create a new one from scratch?
I'm using a program called SWFText, which basically helps you create a flash animation to a text without knowing a "thing" about flash.And it outputs a .swf file without a .fla file. I want to use this .swf in my website, but I also want to edit the text in it according to my guests name.For instance, I created a .swf from swftext with the string "Docent" and embed it to my html code. but i don't want to display docent when josh enters to the site. I want basically delete "Docent" out and write "josh" instead.
View 14 RepliesI want to copy some text to edit in the same style and size etc, however when I do change the wording, it changes the original too. How can I do this so only the copy changes when editing?
View 7 RepliesI have two questions (I'm a photographer and flash novice):
1) I just bought this flash template (URL...) and I need to edit it. Rewriting the text is easy, I just rewrite it in XML files, but I cant figure out how to change the font, font color and font size. Could somebody tell me how to do it?
2) I also bought this template (URL...) and I cant figure out how to edit name in the header and text in the top menu. I really cant find it anywhere (I dont see it in Adobe Flash and I dont see any jpeg or PSD file in the flash directory...)
My friend wants to be able to update the sites text himself. Is there a way he can easily edit the basic text online without having to use Adobe Flash (it would be even better if he could add photos as-well). I was thinking I could get flash to read an XML file but I don�t know how he could easily edit that as heis not techie at all.
View 1 RepliesI bought an Easy Flash Template from web-flash-template.com. The template consists of a flash file (fully flash based site), PSD files, image files and a .txt file for all the text. There's no problem editing all the files, except for the .fla file. I am trying to edit it to add a new page, embed a youtube video, etc and I see no layers for each screen. When I look in the ActionScript I see some details there which mentions screen 50 or 95, etc, but I can't edit any of those screens. Either I'm missing the boat thoroughly (which could be ) or this is a poorly designed template.So, my question is, would anyone here who is a little more experienced with flash be willing to let me email them the file to take a quick look at it to give me any pointers?
View 1 Repliesi'm trying to change the color of a graphic symbol instance, several times across the movie clip timeline. (the symbol is also rotating across the timeline.) for each keyframe, when i double-click on the graphic symbol, break apart and then change the color in the properties panel, then go back to the movieclip timeline, ALL the keyframes with that symbol has changed colors and not just the one instance on the keyframe that i'm on.
View 8 RepliesIs anyone else seeing this? After several minutes (less than 10!) of doing nothing but editing a .as file, I see an impending crash in the form of little pink squares around the scroll bars. Most of the time, if I save right then, then exit Flash, I escape without losing any work. If I ignore the warning signs, or sometimes just by Ugly Surprise with no warning, Flash crashes. It doesn't seem like using the app as an IDE for AIR apps, especially when doing little but composing and editing source files, ought to be that taxing.
View 1 Repliesi have inherited a web site with a flash movie (swf file). the source files aren't available ( the fla file, flv file, image files, music files). the flash movie is acceptable to the client except for the last few seconds when the prior owners logo appears. is there any way to use this flash move without displaying the last few seconds?
View 4 RepliesI am editing a free template and I have a problem. The original free template (175 Photo Gallery by flashmo.com) has 6 frames; 3 galleries, 2 "text pages" and a contact us form. I want to have 5 galleries and the contact us form.I copy-paste the actions and structure of the galleries on the "text pages" and edit this 2 new actions to link to the new gallery file (in this case the number 4): Code:flashmo_gallery03.load_gallery("flashmo_175_photo_list_04.xml");The problem is, I assume you have seen it already, is that the action to gallery 4 is linked to gallery 3, since no gallery 4 and 5 exists in the structure of the site.I have noticed that the .as file that controls the frames is a "pagecontect_8.as" file (thx to Trillix decompiler) that I assume is internal. The original code is:
Code:
//class pagecontents_8
package flashmo_175_photo_gallery_fla
[code]......
i have my flash file loading in an external text, just wondering, is it possible for flash to edit it?
View 2 Repliesediting my website a friend bult for me in flash..i have flash cs4 when i import to library all i seem to get are lots of symbols a few gifs and my video file , and the main swf ...trouble is seem to be unable to edit any of it .... i need to update a picture and add some text to it ..
just tought i would add... i downloaded the contents of my my website via dreamweaver to a folder on my drive then imported into flash
I am creating my own skin for the FLVPlayback component. I coped an existing one, renamed it and made some changes very easily.
However, I want my player to have fewer buttons. I had a go at removing some buttons from the layout_mc but when I published I found that the buttons I had taken out were appearing in the video playback area of the stage (I'm not really surprised it didn't work because the manuels say that layout_mc isn't actually put onto the stage at runtime, its just used for working out where things will go...)
ANyway, how to I successfully delete a button such as the fast forward
I want to edit my xml file through flash . But i have 1 more problem , i want that if i click the button "Gallery" then the the item having label "Gallery" should be given the attribute "selected = true " . I have already loaded the external xml file into flash ...
[code]...
Question for those who are much smarter than I: Is it possible to edit class files that are present within a component?
The reason I ask is that I have a component that has been supplied to me that has certain class files in it. Those class file have specific methods that I don't wish to alter for actual use, but that prevent me from testing within the IDE or anything else besides a browser, which is less than ideal.
What I'm looking for is a way to alter certain aspects of the class files for development purposes, and then return them to normal for launch.