[flexcoders] Re: toggling checkbox's enabled field in datagrid
Oh my goodness, I promise I tried this before posting to the group, but I tried it again and it does work. Of course. Thank you so much! Carrie --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@... wrote: Have you tried this: mx:CheckBox id=cb selected={ data.fired } enabled={ data.type != 0 } / -TH --- In flexcoders@yahoogroups.com, carriecharp carriecharp@ wrote: I've inherited some code to update and I could use some help. I have an Advanced Data Grid where one column uses a custom checkbox component. It's very simple with the checkbox's selected field controlled by column's datafield, which is a Boolean named 'fired'. I want to have the checkbox enabled only in certain situations, dependent upon a second field , an int called 'type'. Basically, enabled = (type!=0). 'type' is a field in the grid's dataprovider and I want to set the enabled field in the declaration below but I can't figure out how to reference the 'type' field. Any guidance is appreciated! Thanks, Carrie mx:Component id=cbEditor mx:HBox horizontalAlign=center backgroundAlpha=1 width=100% mx:Script ![CDATA[ public var selected:Boolean; ]] /mx:Script mx:CheckBox id=cb selected={data.fired} click=selected=data.fired=cb.selected; width=15/ /mx:HBox /mx:Component
[flexcoders] toggling checkbox's enabled field in datagrid
I've inherited some code to update and I could use some help. I have an Advanced Data Grid where one column uses a custom checkbox component. It's very simple with the checkbox's selected field controlled by column's datafield, which is a Boolean named 'fired'. I want to have the checkbox enabled only in certain situations, dependent upon a second field , an int called 'type'. Basically, enabled = (type!=0). 'type' is a field in the grid's dataprovider and I want to set the enabled field in the declaration below but I can't figure out how to reference the 'type' field. Any guidance is appreciated! Thanks, Carrie mx:Component id=cbEditor mx:HBox horizontalAlign=center backgroundAlpha=1 width=100% mx:Script ![CDATA[ public var selected:Boolean; ]] /mx:Script mx:CheckBox id=cb selected={data.fired} click=selected=data.fired=cb.selected; width=15/ /mx:HBox /mx:Component
[flexcoders] Re: Line Chart Data Tips Don't Display When There's a Single Data Point
I thought I'd share the workaround I found for my original problem where data tips weren't displaying when you have only one point in the Line Series in a Line Chart. If I change the type of chart to a Plot Chart (still using Line Series), the data tip will appear. This however introduces some other inconveniences I need to handle such as an unwanted vertical line through the leftmost points and inconsistent icon size (the square is quite a bit larger than the triangle). If anyone has a better suggestion for addressing the original problem, I'm all ears! Thanks, Carrie --- In flexcoders@yahoogroups.com, carriecharp carriech...@... wrote: Good morning, I'm working with a line chart where data is added over time. The first time the user views the chart, there's only one point on the chart. There's no line, but the point displays since I'm using the BoxItemRenderer. However, when you hover over the point, no data tip appears. The next time the chart is viewed, there are two points, connected by the line, and each point will display a data tip. Any ideas about how to make the data tip display for a single point in a Line Chart? 'showDataTips' is true for the chart. Thanks, Carrie
[flexcoders] Line Chart Data Tips Don't Display When There's a Single Data Point
Good morning, I'm working with a line chart where data is added over time. The first time the user views the chart, there's only one point on the chart. There's no line, but the point displays since I'm using the BoxItemRenderer. However, when you hover over the point, no data tip appears. The next time the chart is viewed, there are two points, connected by the line, and each point will display a data tip. Any ideas about how to make the data tip display for a single point in a Line Chart? 'showDataTips' is true for the chart. Thanks, Carrie