Hi Venkat,
i'll try to explain my problem...
i'm new to flex and i don't know how to move into that big
documentation...
i have a first class "myclass" that extends AdvancedDataGrid
this class has a constructor that takes an arraycollection
public function myclass(array:ArrayCollection){
this.dataProvider = array
}
then i another class that creates an arraycollection for "myclass"
the arraycollection has plus objects:
var myobj1.Object = new Object();
myobj1.monday = "34"
myobj1.tuesday = "35"
...
myobj1.sunday = "45"
var myobj2.Object = new Object();
myobj2.monday = "34"
myobj2.tuesday = "35"
...
myobj2.sunday = "45"
then i call addItem method to put objects inside the
arraycollection...
that's all very well, but when i create an instance of "myclass"
columns headers aren't in the correct order:
tuesday sunday ... monday, instead of monday tuesday ... sunday
so i would have from myclass a procedure that orders in the correct
manner my datagrid columns...but no within an mxml document but in the
same class that extends advanceddatagrid..."myclass" in this sample...
others info:
a if my datagrid contains empty rows how can i disable the entire
empty row to avoid user interaction?
b how to auto sizing columns width in order that headers and cells
content aren't cut off...
for example if in a cell the text is "thisisatest" the word is cut of
and the only visible part is "thiis"
c and finally can you suggest me a complete book to learn adobe flex
3?
thank you very much...
Regards
Lord
On 3 Dic, 17:55, "Venkat Viswanathan" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can you show us the code you are using for generating the columns? Are you
> creating an array of AdvancedDataGridColumn and setting it to the column
> property of AdvancedDataGrid?
>
> Regards,
> Venkatwww.venkatv.com
>
> On Wed, Dec 3, 2008 at 4:18 PM, Lord <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the reply..it's correct...
>
> > others questions fo you..
>
> > first of all i have an customdatagrid class that extends
> > advanceddatagrid...
>
> > my class has various data raws..i would display the grid without a
> > scrollbar..so i would set the grid height equal to the number of rows
> > in the grid dinamically...
>
> > second, in my datagrid class i would have a fixed order of columns...
>
> > infact when i display the grid columns orders random...
>
> > thanks a lot
>
> > Lord
>
> > On 3 Dic, 08:56, anubhav_RIA <[EMAIL PROTECTED]> wrote:
> > > Hi Lord,
>
> > > Could you please explain your problem in more detail??
>
> > > As far i could understand, you may be pushing the instances of your
> > > datagrid class in the Datagrid arraycollection.
> > > then in your application you can do:
>
> > > For(var index in dgArrayCol){
> > > var dg:MydataGrid = dgArrayCol[index];
> > > dg.dataProvider = mydp1; // skip this step if you already
> > > assigned the dataProvider.
> > > this.addchild(dg);
>
> > > }
>
> > > On Dec 2, 10:21 pm, Lord <[EMAIL PROTECTED]> wrote:
>
> > > > Hy everybody,
>
> > > > i've this problem...
>
> > > > i created an arrayCollection of datagrids within an as file and i
> > > > would display datgrids in mx:application...
>
> > > > every datagrid has created through the extension of DataGrid class
> > > > (MyDataGrid extends DataGrid)
>
> > > > anybody have a suggestion
>
> > > > thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---