Hey All,
I have been playing with some options to try and get a better editor to
work in Flex. As we all know, the RTE that comes as a standard control
in Flex is a but limited, and I thought to try and get one of the
javascript based editors to load.
Does anyone know if it is possible to load
--- In flexcoders@yahoogroups.com, "postwick" wrote:
thank you, sir... I appreciate your help, I shall do as you say !!
Craig
>
> That'll update the value of the cell.
>
> You can't do what you're trying to do. You can't have a column with a
> different dataField per row. The dataField
That'll update the value of the cell.
You can't do what you're trying to do. You can't have a column with a
different dataField per row. The dataField for the column is the same for
every row.
Is this data coming from a database, through a view? You really should do this
there. You can s
now we're getting somewhere! but will this update the value of the col2 or the
value of col2 DataField?
I am trying to change the value of col2 DataField to "Profit" not the value of
col2 itself.
Can I use:
dgOrdExt.getChildAt(i)["Profit"].dataField = "Profit"
CS
--- In flexcoders@yahoog
You can't use selectedItem because there is no selectedItem. You haven't
clicked a row. Try looping through the grid.
In the end, I really don't understand why you don't do this in the
dataCollection, or even in the source data.
for (var i:Number = 0; i < mygrid.numChildren; i++) {
Ok... In the parent component to the datagrid I used an initialize event:
public function initDg():void {
if(dgOrdExt.selectedItem["Kind"]=="LONG")dgOrdExt.Profit.dataField="Profit";
if(dgOrdExt.selectedItem["Kind"]=="SHORT")dgOrdExt.Profit.dataField="ShProfit";
}
it does not work. but if I
Hi all,i'm trying to change Flex 3 ToggleButtonBar dataprovider on user or
admin log in..I'm trying to use 2 viewstack,one for user,one for admin and i
got a component where the login form is in the component..What should i do to
define the dataprovider on the mainbased on user log in??Thanks a
>From within the custom component DataGrid Column I tried this code as you
>suggested at the initialize event but it errors:
if(Application.application.CnvPos.dgOrdExt.selectedItem["Kind"]=="LONG")
Profit.dataField="Profit";
I don't think the selecteditem field is the
if you just did dataGrid.selectedItem then that would be the selected row. add
["columnname"] to get to the column, so:
dataGrid.selectedItem["columnname"]
it's not the label, it's the data column name.
--- In flexcoders@yahoogroups.com, "Craig" wrote:
>
> yes the datagrid is bound to an arra
Is the datagrid bound to a collection? if so, change the value in the
collection.
or try...
yourDataGrid.selectedItem["dataColumn1"] =
yourDataGrid.selectedItem["dataColumn2"]
--- In flexcoders@yahoogroups.com, "Craig" wrote:
>
> I am trying to set the value of a column based on the value of
yes the datagrid is bound to an array collection.
I don't want to select any item, I want to change the value of a column's
DataField to a one of two values based on the value of another column's output.
I don't want to have to 'selecteditem' but I can try that code below are you
suggesting that
I am trying to set the value of a column based on the value of another column.
If I use ...selectedItem... it does not work, unless I am mistaken.
--- In flexcoders@yahoogroups.com, "postwick" wrote:
>
> You access the value in a column of a datagrid like this...
>
> yourDataGrid.selectedItem[
cause I was doing it within the custom component (column) itself for the
datagrid, which can not hold an Id value, I can put it in the parent component
however i'll give that a whack.
--- In flexcoders@yahoogroups.com, "postwick" wrote:
>
> Not sure why you have all the Application.applica
so if it's doing it row by row, then it would need to be a labelfunction event
right? where would you suggest the code go? there needs to be an
if (datagrid.seleteditem["Kind]=="LONG")datagrid.selecteditem[Profit]="Profit";
then another line that stipulate the other option:
if
(datagrid.select
Not sure why you have all the Application.application stuff on there. Just
reference the datagrid by it's id.
mygrid.selectedItem["columname"] = "some value"
--- In flexcoders@yahoogroups.com, "Craig" wrote:
>
> From within the custom component DataGrid Column I tried this code as you
> sug
Is there a particular row you want to update? If a row is selected, you would
use...
Profit.selectedItem["datafieldname"]
--- In flexcoders@yahoogroups.com, "Craig" wrote:
>
> From within the custom component DataGrid Column I tried this code as you
> suggested at the initialize event but it
Hi. Thanks for your response.
After some more troubleshooting the problem is the following:
the URL is returned correctly by the following code:
import mx.managers.BrowserManager;
import mx.managers.IBrowserManager;
import mx.utils.URLUtil;
import mx.utils.ObjectUtil;
private var bman:IBrowserM
My app needs to display an image inside a VBox, with content auto-scaled to fit
the width of its container, and the VBox height adjusted to accommodate its
children.
The problem arises when the loaded image has content width > VBox width, i.e.,
when the image content is scaled to fit --VBox ap
You access the value in a column of a datagrid like this...
yourDataGrid.selectedItem["dataColumnNameOfColumn"]
--- In flexcoders@yahoogroups.com, "Craig" wrote:
>
> I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to
> an ArrayCollection. I need to change the value of one
I realize this is an old thread I'm digging up, but I am running into the same
problem. I did the artists example from :
http://www.adobe.com/devnet/coldfusion/articles/data_app.html
The grid fills just fine but when I try to edit a cell I get:
Error: Unknown Property: 'constructor'
I looked
I got another problem.
In flex I can only reference the flash button by its ID property.
Most of the time I can't know its ID. I need cover it to a super class like
MovieClip Instead of that.
How can I fix this ?
200万种商品,最低价格,疯狂诱惑你
I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to
an ArrayCollection. I need to change the value of one columen (Profit)
based on the value of another column (Kind) ie.. the results (either
'LONG' or SHORT'). Here is where I'm at. I've tried putting code into
customer DataG
I got another problem.
In flex I can only reference the flash button by its ID property.
Most of the time I can't know its ID. I need cover it to a super class like
MovieClip Instead of that.
How can I fix this ?
Not if there is just a single line of script within the quotation
marks. If you wanted to do something like this though,
Then you do need the semi-colons. Most people just have the semi-colon
there out of habit from when they write AS in .as files or within the
tags (they are needed in those ca
24 matches
Mail list logo