[flexcoders] GroupingCollection with good performance

2008-06-02 Thread sreeni_r
I created a GroupingCollection2 with better performance (in 
comparision with GroupingCollection) by tweaking the implementation. 
You can find a sample/swc here 

http://flexpearls.blogspot.com/2008/06/groupingcollection-with-some-
better.html

If you have some free time please test it and let me know if you find 
any bugs !

Of-course if you like the performance and would like to use it in your 
app, feel free :) 



[flexcoders] Re: How to sorting the results of an OLAPQuery?

2008-05-28 Thread sreeni_r
The workaround for this problem would be to create a extended OLAPSet 
and override/copy compareMembers code and modify it to compare the 
displayName instead of name.

--- In flexcoders@yahoogroups.com, "Cosma" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I noticed that behavior.. the problem is that this will sort by the
> value of the "dataField" field, that usually is a numeric 
identifier..
> but the sort often must be done on its "descriptive" name, that is 
the
> value actually shown to the users.
> 
> --- In flexcoders@yahoogroups.com, "sreeni_r"  wrote:
> >
> > 
> > Have you tried calling OLAPSet.hierarchize()? 
> > 
> > It returns a new OLAPSet in which the members are sorted.
> > 
> > --- In flexcoders@yahoogroups.com, "Cosma"  wrote:
> > >
> > > Hi,
> > > 
> > > I'm trying to sort the results of my OLAPQuery, anyone has 
tried to 
> > do
> > > that? I can't find any info in the documentation.
> > > 
> > > I verified that the order of the elements is based on the 
OLAPSet
> > > contents for that axis. That is, if you manually build the 
OLAPSet
> > > that you assign to the query axis, you will control the order. 
> > > 
> > > However, it is common to build the OLAPSet querying the cube 
about 
> > its
> > > dimensions and hierarchies. The cube will return the elements 
> > without
> > > any special order, probably it creates its internal sets adding
> > > elements as these are read.
> > > 
> > > Is there an easy way to sort an OLAPSet built this way? I mean,
> > > probably it is possible to get the tuples array from the 
OLAPSet, 
> > wrap
> > > it into an arraycollection, sort it providing a custom compare
> > > function and then build a new OLAPSet with the new tuples 
array, but
> > > this is a little tricky - there should be an easier way.. any 
ideas?
> > > 
> > > Thank you
> > > Cosma
> > >
> >
>




[flexcoders] Re: How to sorting the results of an OLAPQuery?

2008-05-27 Thread sreeni_r

Have you tried calling OLAPSet.hierarchize()? 

It returns a new OLAPSet in which the members are sorted.

--- In flexcoders@yahoogroups.com, "Cosma" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I'm trying to sort the results of my OLAPQuery, anyone has tried to 
do
> that? I can't find any info in the documentation.
> 
> I verified that the order of the elements is based on the OLAPSet
> contents for that axis. That is, if you manually build the OLAPSet
> that you assign to the query axis, you will control the order. 
> 
> However, it is common to build the OLAPSet querying the cube about 
its
> dimensions and hierarchies. The cube will return the elements 
without
> any special order, probably it creates its internal sets adding
> elements as these are read.
> 
> Is there an easy way to sort an OLAPSet built this way? I mean,
> probably it is possible to get the tuples array from the OLAPSet, 
wrap
> it into an arraycollection, sort it providing a custom compare
> function and then build a new OLAPSet with the new tuples array, but
> this is a little tricky - there should be an easier way.. any ideas?
> 
> Thank you
> Cosma
>




[flexcoders] AdvancedDataGrid performance poll

2008-04-07 Thread sreeni_r
Hi,

I am conducting two performance polls for AdvancedDataGrid. If you 
don't mind spending a minute and provide valuable feedback please visit

http://flexpearls.blogspot.com/2008/03/datechooser-with-support-for.html

Thanks!
Sreenivas



[flexcoders] Re: Setting backgroundColor and color

2008-03-21 Thread sreeni_r
Try providing a override of the ADGHeaderRenderer which overrides 
updateDisplayList and colors the background Sprite properly. The 
current implementation is painting the background sprite transparent. 

--- In flexcoders@yahoogroups.com, "Marcio Napoli" <[EMAIL PROTECTED]> wrote:
>
> 
> Thanks Scott, but i am trying change the backgroundColor of 
> columnGroup. Only the headers of OlapDataGrid.
> 
> 




[flexcoders] Re: grouping using XMLListCollection in AdvancedDataGrid

2008-02-21 Thread sreeni_r

Or you usre dataGrid.dataProvider is a XMLListCollection?

>From the error thrown it looks like the datagrid.dataProvider is a 
ArrayCollection and you are trying to cast it to XMLListCollection.

--- In flexcoders@yahoogroups.com, "nikscares4u" <[EMAIL PROTECTED]> 
wrote:
>
> I have already done that but it still gives the same error.
> Here the dataProvider is an XMLListCollection.
> 
> Here is the code
> 
> mygroup.source = XMLListCollection(datagrid.dataProvider);
> var group:Grouping = new Grouping();
> var gf:GroupingField = new GroupingField("PRICE");
> mygroup.grouping = group;
> mygroup.refresh();
> 
> 
> 
> Regards,
> Nikunj
> 
> 
> --- In flexcoders@yahoogroups.com, "sreeni_r"  wrote:
> >
> > If you set GroupingCollection.source to the XMLListCollection and 
setup 
> > the Grouping and GroupingField properties and call 
> > GroupingCollection.refresh it should just work.
> > 
> > --- In flexcoders@yahoogroups.com, "nikscares4u"  
> > wrote:
> > >
> > > Hi,
> > > 
> > > I am using an XMLListCollection as a dataprovider in 
AdvancedDataGrid.
> > > Is there any way to apply grouping on the AdvancedDataGrid 
using 
> > > XMLListCollection. When I try to apply it on the 
XMLListCollection,  
> > > it gives an error :
> > > 
> > > "Cannot convert XMLListCollection to ArrayCollection" 
> > > 
> > > Any Idea ?
> > > 
> > > Thanks in advance.
> > > Nikunj
> > >
> >
>




[flexcoders] Re: AdvancedDataGrid - Changing the background color on a row.

2008-02-21 Thread sreeni_r

I think it is the problem with itemRenderers or TextField in 
particular. If a itemRenderer doesn't support backgroundColor as a 
style there is very little ADG can do. Hence a small tweak is 
required to get this working.

As TextField doesn't support alpha when background is true some users 
don't like this idea and go on to override the drawRowBackground.

--- In flexcoders@yahoogroups.com, "Pan Troglodytes" 
<[EMAIL PROTECTED]> wrote:
>
> I am fairly shocked that AdvancedDataGrid does not support this out 
of the
> box.  They went to a lot of trouble to make styling a single cell 
easy, yet
> left out one of the most important parts.  Hope this is added before
> release.
> 
> 
> On Thu, Feb 21, 2008 at 12:33 AM, sreeni_r <[EMAIL PROTECTED]> wrote:
> 
> >
> > I have posted a working sample here which I think you can tweak it
> > work your scenario.
> >
> > http://flexpearls.blogspot.com/2008/02/row-background-color-
in.html
> >
> > -Sreenivas
> >
> > --- In flexcoders@yahoogroups.com , "Dominic
> > Pazula" 
> > wrote:
> >
> > >
> > > I thought this would be easy to do, but I have been banging my 
head
> > > on it for a while. I'm wanting to let the user "mark" rows as 
they
> > > scroll through the ADG.
> > >
> > > I created a function myRowStyle and set
> > styleFunction="myRowStyle".
> > > What I cannot figure out is how to change the background color 
on
> > the
> > > row. I've figured out how to change just about everything else.
> > >
> > > Here is the myRowStyle function. I am just setting a static set 
of
> > > rows to the style to help me figure this out.
> > >
> > > private function myRowStyle(data:Object,
> > > col:AdvancedDataGridColumn):Object{
> > > var vals:Array = [0, 2, 4, 6];
> > >
> > > var i:int = dg.dataProvider.getItemIndex(data);
> > >
> > > if (vals.indexOf(i) >= 0){
> > > var o:Object = new Object;
> > > o.color = 0x00;
> > > o.fontWeight = "bold";
> > > o.backgroundColor = 0xFF;
> > > return o;
> > > }
> > > else return null;
> > > }
> > >
> > > o.backgroundColor is just my latest attempt. I've tried 
everything
> > I
> > > can think of, but obviously have not thought of everything.
> > >
> > > Does anyone know the trick to doing this?
> > >
> > > Thanks
> > > Dominic
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Jason
>




[flexcoders] Re: AdvancedDataGrid - Changing the background color on a row.

2008-02-20 Thread sreeni_r

I have posted a working sample here which I think you can tweak it 
work your scenario.

http://flexpearls.blogspot.com/2008/02/row-background-color-in.html

-Sreenivas

--- In flexcoders@yahoogroups.com, "Dominic Pazula" <[EMAIL PROTECTED]> 
wrote:
>
> I thought this would be easy to do, but I have been banging my head 
> on it for a while.  I'm wanting to let the user "mark" rows as they 
> scroll through the ADG.  
> 
> I created a function myRowStyle and set 
styleFunction="myRowStyle".  
> What I cannot figure out is how to change the background color on 
the 
> row.  I've figured out how to change just about everything else.
> 
> Here is the myRowStyle function.  I am just setting a static set of 
> rows to the style to help me figure this out.
> 
> private function myRowStyle(data:Object, 
> col:AdvancedDataGridColumn):Object{
>   var vals:Array = [0, 2, 4, 6];
>   
>   var i:int = dg.dataProvider.getItemIndex(data);
>   
>   if (vals.indexOf(i) >= 0){
>   var o:Object = new Object;
>   o.color = 0x00;
>   o.fontWeight = "bold";
>   o.backgroundColor = 0xFF;
>   return o;
>   }
>   else return null;
> }
> 
> o.backgroundColor is just my latest attempt.  I've tried everything 
I 
> can think of, but obviously have not thought of everything.
> 
> Does anyone know the trick to doing this?
> 
> Thanks
> Dominic
>




[flexcoders] Re: Alternate row color of DataGridColumn

2008-02-20 Thread sreeni_r

I have posted a sample here 

http://flexpearls.blogspot.com/2008/02/alternate-row-color-in-
datagrid-per.html

-Sreenivas

--- In flexcoders@yahoogroups.com, Danish Tehseen <[EMAIL PROTECTED]> 
wrote:
>
> DataGrid alternate item's color can be set by datagrid's 
alternatingItemColors property, but is there a way to change 
alternating item color of DataGridColumn? There is a case where i 
have to set different alternate row colors to different 
DataGridColumn. If not possible in DataGrid, is it possible in 
AdvanceDataGrid control.
> 
> Thanks & Regards,
> 
> Danish
> 
> 
>   
__
__
> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>




[flexcoders] Re: grouping using XMLListCollection in AdvancedDataGrid

2008-02-19 Thread sreeni_r
If you set GroupingCollection.source to the XMLListCollection and setup 
the Grouping and GroupingField properties and call 
GroupingCollection.refresh it should just work.

--- In flexcoders@yahoogroups.com, "nikscares4u" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> 
> I am using an XMLListCollection as a dataprovider in AdvancedDataGrid.
> Is there any way to apply grouping on the AdvancedDataGrid using 
> XMLListCollection. When I try to apply it on the XMLListCollection,  
> it gives an error :
> 
> "Cannot convert XMLListCollection to ArrayCollection" 
> 
> Any Idea ?
> 
> Thanks in advance.
> Nikunj
>




[flexcoders] Re: Grouping Data - need some help

2008-02-19 Thread sreeni_r
Hi,

I had posted a implementation of IHierarchicalData called FlatXMLHD

which coverts the kind of flat data (XML) you have mentioned into 
hierarhcical format.

The code and sample is available here

http://flexpearls.blogspot.com/2007/12/hierarchicaldata-from-flat-
xmllist-data.html

-Sreenivas

--- In flexcoders@yahoogroups.com, "reflexactions" <[EMAIL PROTECTED]> 
wrote:
>
> Thanks for the response,
> In the end the solution was to manually build the hierarchical 
> structure on the client from the flat array and then set it into the 
> ADG using a HierarchichalData object.
> 
> This was further complicated because initially I was setting an empty 
> structure into the ADG and then updating it using data binding when 
> the data was downloaded. This doesnt work! Regardless of what you 
> invalidate or refresh the ADG just won't update, the only option is 
> to reset the dataProvider each time.
> 




[flexcoders] Re: AdvancedDataGrid sortable column headers

2007-12-10 Thread sreeni_r
By setting ADG.sortExpertMode to true you can get rid of the separator.

I don't think there is any easy way of getting rid of the number other 
than using a custom sort item renderer.

--- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote:
>
> Can anybody tell me how to make the sortable column headers on an 
> AdvancedDataGrid look like the headers on a regular DataGrid?  All I 
> want is the header text and the sort direction arrow.  I'd rather not 
> have the separator and sort number.
> 
> Thanks
> Scott
> 
> -- 
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
>




[flexcoders] Re: programatically deselect cells in an AdvancedDataGrid (bump)

2007-12-10 Thread sreeni_r

Try setting the selectedCells to null.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Does it work for regular DataGrid?  If not, post your code.  If it 
only
> fails for ADG, please file a bug and post the bug number
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of superabe superabe
> Sent: Sunday, December 09, 2007 3:01 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: programatically deselect cells in an
> AdvancedDataGrid (bump)
> 
>  
> 
> Thats what I had hoped would happen too, unfortunately thats not the
> case with the ADG.
> Setting selectedIndices to an empty array seems to have no effect 
on the
> ADG. It looks like a bug at this point.
> 
> -superabe
> 
> On Dec 8, 2007 4:49 PM, David Spurr <[EMAIL PROTECTED]
>  > wrote:
> 
> In the standard datagrid (so I assume it's not different for the
> AdvancedDataGrid as I haven't played with it yet,) you just need to 
set
> the selected indices to an empty array. To all select all and select
> none as a global feature in our app I simply made a DataGridUtil 
class
> with static methods of selectAll( dataGrid:DataGrid ) & selectNone(
> dataGrid:DataGrid )
>




[flexcoders] Re: Flex 3::AdvancedDataGrid::groupItemRenderer is for group or branch node only?

2007-12-06 Thread sreeni_r
ADGGroupItemRenderer is used for all the items in that column because 
it attempts to show parent and leaf icons for the items. Hence the 
color is getting applied for the tree column child labels.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> My AdvancedDataGrid has grouping collection set up during 
> intialization.I tried to change the label's color of all group or 
> branch nodes, but the color got applied to the labels of child 
nodes 
> also. Is this a bug?
> 
>  defaultLeafIcon="{myLeftIcon}"
> groupIconFunction="reportArchiveGroupingIcon"  
> dataTipFunction="generateReportDataTip"
> initialize="gc.refresh();" 
> width="100%" height="100%">
> 
> 
>   
>   
> 
> 
>  
>   
>
>   name="{arrangeBySelection.selectedItem.data}"/>
>   
> 
> 
>   
> 
>headerText="{getString('label.reportName')}" showDataTips="true" 
> minWidth="300"/>
>dataField="startDate" labelFunction="formatStartDate" 
> headerText="{getString('label.reportStartDate')}" 
showDataTips="true" 
> width="100"/>
>labelFunction="formatEndDate" headerText="{getString
> ('label.reportEndDate')}" showDataTips="true" width="100"/>
>dataField="createdOn" labelFunction="formatCreatedOnDate" 
> headerText="{getString('label.createdOn')}" showDataTips="true" 
> width="100"/>
> ...
> 
> 
> Note: "0xAAB3B3" is a light grey color.
>




[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-06 Thread sreeni_r
If you need groupLabelFunction or the normal labelFunction to show 
html text you need to use custom itemRenderers because the default 
itemRenderes do not attempt to show html text.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> The same thing for groupLabelFunction. Returned HTML text is not 
> accepted. 
> 
> --- In flexcoders@yahoogroups.com, "sreeni_r"  wrote:
> >
> > Hi Tung,
> > 
> > you can use the trick mentioned here
> > 
> > http://www.flex-flex.net/blog/article.asp?id=18
> > 
> > to display html formatted strings as toolTips.
> > 
> > -Sreenivas
> > 
> > --- In flexcoders@yahoogroups.com, "tungchau81"  
> > wrote:
> > >
> > > Hi,
> > > I wrote my own custom dataTipFunction that return an HTML 
> formatted 
> > > text, but it does not work. Please help!
> > > 
> > > private function myDataTip(data:Object):String {
> > > return "Tung Chau";
> > > }
> > > 
> > > The result I saw was a raw "Tung Chau" instead of the 
bold 
> > text 
> > > format I want.
> > > 
> > > Please help.
> > > Tung Chau
> > >
> >
>




[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread sreeni_r
Hi Tung,

you can use the trick mentioned here

http://www.flex-flex.net/blog/article.asp?id=18

to display html formatted strings as toolTips.

-Sreenivas

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> I wrote my own custom dataTipFunction that return an HTML formatted 
> text, but it does not work. Please help!
> 
> private function myDataTip(data:Object):String {
> return "Tung Chau";
> }
> 
> The result I saw was a raw "Tung Chau" instead of the bold 
text 
> format I want.
> 
> Please help.
> Tung Chau
>




[flexcoders] Re: Flex 3 : : showDataTips in AdvancedDataGrid does not work any more after groupin

2007-12-05 Thread sreeni_r
This is not working for the tree column due to a bug. You can track the 
issue here http://bugs.adobe.com/jira/browse/FLEXDMV-1467

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I set showDataTips = true in one of an AdvancedDataGridColumn and it 
> works without grouping. As long as I use grouping and call refresh() 
> function on a GroupingCollection instance, showDataTips does not work 
> any more. 
> 
> I tried to set showDataTips  = true after calling refresh() on a 
> GroupingCollection instance, but this does not work. 
> 
> I really need to use showDataTips since my Name column' values are 
too 
> long to be fully displayed in the table. 
> 
> Any help is greatly appreciated.
> Tung Chau
>




[flexcoders] Re: advancedDataGrid drag over column calculating wrong index

2007-11-19 Thread sreeni_r
If you drop the item with the mouse over the top half of the first 
item it becomes the first item. 

If you move the mouse over the column header it becomes the last item.

It is the same behavior even with simple List.

I don't know whether it is a very expected behavior or not !

--- In flexcoders@yahoogroups.com, "Seth Caldwell" <[EMAIL PROTECTED]> wrote:
>
> Sorry, column header*
> 
>  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Seth Caldwell
> Sent: Friday, November 16, 2007 11:31 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] advancedDataGrid drag over column calculating 
wrong
> index
> 
>  
> 
> If I drag an element over a column of a datagrid, I would expect 
the index
> to be the first in the list, or not accept the drag. The default 
behavior at
> the moment is if you are dragging and releasing over the column, 
you are
> 'dropping' at the last index in the list. is this expected behavior 
for
> anyone?
> 
>  
> 
> Seth
>




[flexcoders] Re: advancedDataGrid drag over column calculating wrong index

2007-11-19 Thread sreeni_r
If you drop the item with the mouse over the top half of the first 
item it becomes the first item. 

If you move the mouse over the column header it becomes the last item.

It is the same behavior even with simple List.

I don't know whether it is a very expected behavior or not !

--- In flexcoders@yahoogroups.com, "Seth Caldwell" <[EMAIL PROTECTED]> wrote:
>
> Sorry, column header*
> 
>  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Seth Caldwell
> Sent: Friday, November 16, 2007 11:31 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] advancedDataGrid drag over column calculating 
wrong
> index
> 
>  
> 
> If I drag an element over a column of a datagrid, I would expect 
the index
> to be the first in the list, or not accept the drag. The default 
behavior at
> the moment is if you are dragging and releasing over the column, 
you are
> 'dropping' at the last index in the list. is this expected behavior 
for
> anyone?
> 
>  
> 
> Seth
>




[flexcoders] Re: Deleting an Item from a List

2007-06-14 Thread sreeni_r

Here is a sample I wrote doing the deletion.











  








  
  
 





The idea is to use the data object passed to a itemRenderer. This data
 represents a item in the data provider. You can use the IList APIs on
the dataProvider to find the index and remove the item.

As I defined the itemRenderer inline I am using the outerDocument
property to access the list parent.

Let me know if it works for you.

-Sreenivas


--- In flexcoders@yahoogroups.com, "williamkusumo" <[EMAIL PROTECTED]>
wrote:
>
> Hi!
> 
> I have a List (populated via a dataProvider) and in each of the list
> items, I have a "Close" button. What is the best way to remove the
> item when the "Close" button is clicked? I understand I must remove
> the data from the dataProvider instead of just deleting the list item,
> but how do you get the index of the list item based on which button is
> clicked?
> 
> I have tried using the list's selectedIndex, but that's not really how
> you want to do it because the list item won't necessarily be the one
> selected when the "close" button is clicked (it'll screw up if you use
> keyboard to navigate to the button)
> 
> I have tried getting the list by using thebutton.parent.parent and
> then do a getChildIndex(...) passing in thebutton.parent. But all I
> got is the number "2" all the time no matter which item I clicked on.
> 
> Any help will be greatly appreciated.
> 
> Thanks!
>




[flexcoders] Re: No help for syntax,methods and properties for flex Controls in QTP can any

2007-06-14 Thread sreeni_r

Documentation is available here

http://www.adobe.com/go/flex201_qtp_object_type_reference

-Sreenivas

--- In flexcoders@yahoogroups.com, srid har <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am beginner working with QTP 9.1 to Automate Flex
application.there is no help for syntax,methods and properties for
flex Controls in QTP . Even i have searched in net i couldn't get any
help.For Example
:FlexApplication,FlexBox,FlexPanel,FlexButton,FlexForm,
Get AutomationChildAt,Input e.t.c.Please do needful...
>
>   Thanks in advance
> 
>
> -
>  Download prohibited? No problem! CHAT from any browser, without
download.
>




[flexcoders] Re: Summary Row in Advanced Data Grid

2007-06-14 Thread sreeni_r
Hi Nate,

you can take a look at the exact sample here

http://flexpearls.blogspot.com/2007/06/advanceddatagrid-summary-roll-up-sample.html

Thanks
Sreenivas

--- In flexcoders@yahoogroups.com, "Nate Pearson" <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any examples of the Advanced Data Grid that are
> different than the ones released by Adobe?  I am specifically looking
> for a way to roll up costs like the first picture in Ted Patrick's
post. 
> 
>
http://www.onflex.org/ted/2007/06/flex-3-wednesday-components-and-sdk.php
>




[flexcoders] Re: simple Tree question

2007-05-04 Thread sreeni_r

You can try using

tree.dataDescriptor.isBranch(tree.selectedItem, null);

This would return true if it is a folder.

-Sreenivas

--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I have a Tree that has 2 levels, 1- the folder level, 2- the
document level (pretty basic).  When 
> the user clicks the document I want to show additional information
in a text field.  So I 
> binded the text field to the tree.  When you click the document
level you get the info, but if 
> you click a folder you get an error.  So I suppose I need to do it
with ActionScript, which I'm 
> okay with but I don't know how to determine if the user clicked a
folder or a document, I 
> can't seem to find this in the help files.  Can anyone help with this?
>




[flexcoders] Re: Howto dynamicly bind XML element to a TextInput component using BindingUtils?

2007-05-04 Thread sreeni_r
Try using

private function init(): void {

new Binding(this, 
function():String { return xml.label }, 
function(value:String):void { txtDemo.text = value }, 
"txtDemo.text");

}

It worked for me.

-Sreenivas

--- In flexcoders@yahoogroups.com, "xyjaws" <[EMAIL PROTECTED]> wrote:
>
> The question is: Howto dynamicly bind XML element to a TextInput 
> component using BindingUtils?
> 
> Now I use following codes:
> 
> 
> 
> 
> //--
> My really idea is when bindable xml property is changed, then the 
> textinput will be updated as hoped. However, no update happens to 
me 
> when I click the Test button.
> 
> But, if I make codes like that:
> 
> the text will updated when xml changs.
> 
> So, what happened, I indeed need the dynamicly bind to the 
textinput 
> compont.
> Help me. thanks.
>




[flexcoders] Re: flex 2: showing hand cursor over label field

2005-11-27 Thread sreeni_r
I think the property is non inheriting. Hence need to be set for each 
component.

-Sreenivas.

--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Try giving the Label a mouseDown event that doesn't do anything.
> 
> - Original Message - 
> From: Johannes Nel 
> To: flexcoders@yahoogroups.com 
> Sent: Sunday, November 27, 2005 10:43 PM
> Subject: [flexcoders] flex 2: showing hand cursor over label field
> 
> 
> hi all
> 
> i have a VBox which contains a label and when the user rolls over 
this vbox i want to show the hand cursor. this works fine by doing 
this:
> 
> http://www.macromedia.com/2005/mxml"; 
> xmlns="*"
> xmlns:mnu="net.lennel.isay.view.components.menu.*"
> creationComplete="init()"
> mouseDown="clicked()"
> vScrollPolicy="off"
> hScrollPolicy="off"
> useHandCursor="true"  **
> buttonMode="true" **
> >
> but the nested label still doesn't show the hand cursor
> even if i set these properties:
> useHandCursor="true" 
> buttonMode="true"
> 
> 
> i can of course change the cursor manually (or rather i assume i 
can) by tapping into the mouse over event but there must be a simpler 
way...i think :)
> 
> Ta'
> j
> -- 
> j:pn 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
> 
> 
> 
> SPONSORED LINKS Web site design development  Computer software 
development  Software design and development  
>   Macromedia flex  Software development best practice  
> 
> 
> 

> YAHOO! GROUPS LINKS 
> 
>   a..  Visit your group "flexcoders" on the web.
> 
>   b..  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
> 
>   c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
> 

>






 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Cursor change problem

2005-11-25 Thread sreeni_r
Hi Allen,

To show handCursor the buttonMode property needs to be set to true 
along with useHandCursor.

-Sreenivas

--- In flexcoders@yahoogroups.com, "Allen Manning" 
<[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
>  
> 
> I saw the below post on Flexcoders, but didn't see an answer.  
Anyone know
> how to use the hand cursor?
> 
>  
> 
> Is there a reference to the hand cursor to use in setCursor -
 `hand' or
> something like that?  I couldn't find it in the docs.
> 
>  
> 
> Best,
> 
> Allen
> 
>  
> Probably an easy question for those who know...
>  
> I'm trying to change the default cursor to a hand cursor when 
hovering
> over a component. The component is based on the VBox. 
>  
> I want to use the Flexs hand-cursor icon, which appears within
> MovieClips components e.g.  Buttons when "useHandCursor" property is
> set, and not have to create my own icon. 
>  
> Can't find this in the docs.
>  
> Is there something like "setHandCursor()" and "removeHandCursor()"
> within flex?
>  
> setCursor(cursorSymbol:String, priorityLevel:Number, xOffset:Number,
> yOffset:Number)
>  
> All help is appreciated.
> 
>  
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 
24/11/2005
>






 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Cursor change problem

2005-11-25 Thread sreeni_r
Hi Allen,

Along with useHandCursor, buttonMode property also needs to be set to 
true to show the hand cursor.

It is property available on Sprite hence available with all UI 
components in Flex.

-Sreenivas.

--- In flexcoders@yahoogroups.com, "Allen Manning" 
<[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
>  
> 
> I saw the below post on Flexcoders, but didn't see an answer.  
Anyone know
> how to use the hand cursor?
> 
>  
> 
> Is there a reference to the hand cursor to use in setCursor -
 `hand' or
> something like that?  I couldn't find it in the docs.
> 
>  
> 
> Best,
> 
> Allen
> 
>  
> Probably an easy question for those who know...
>  
> I'm trying to change the default cursor to a hand cursor when 
hovering
> over a component. The component is based on the VBox. 
>  
> I want to use the Flexs hand-cursor icon, which appears within
> MovieClips components e.g.  Buttons when "useHandCursor" property is
> set, and not have to create my own icon. 
>  
> Can't find this in the docs.
>  
> Is there something like "setHandCursor()" and "removeHandCursor()"
> within flex?
>  
> setCursor(cursorSymbol:String, priorityLevel:Number, xOffset:Number,
> yOffset:Number)
>  
> All help is appreciated.
> 
>  
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 
24/11/2005
>






 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: How to view attachment file

2005-11-25 Thread sreeni_r
Hi Jagadeesh,

You can use a custom cell renderer for the DataGridColumn and handle 
the click event there to show the popup and take necessary action.

-Sreenivas

--- In flexcoders@yahoogroups.com, "jagabcdeff" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> Now i working on to view attachment file which is already stored in 
> database.The attachment file name is shown in datagrid in mxml page 
> using following code 
> 
> 
> 
> when i click on attachment name  it should show  pop-up window with 
> view and save buttons ..
> 
> any help greatly appreciate,
> 
> thnx,
> Jagadeesh
>








 Yahoo! Groups Sponsor ~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/