1. need to implement Change handler and preventDefault for the same.
2. HeaderRelease can not be accessed using combo box, however you can
keep some flag to verify. may be u can dispatch HeaderRelease on the
parent of the combobox reference thus getting the index number. Not
sure if there a better method for this.
Anand

On Feb 25, 12:30 am, Shishir <[email protected]> wrote:
> Hi Venkat,
>
> Thanks for the reply.I implemented the custom component and it is
> appearing fine in the datagrid column.But i have some doubts regarding
> the above approach :
>
> 1) I basically want that i should have a drop-down list and based on
> the menu-item chosen appropriate action should be taken on the data in
> the column.But i want the text that appears on the comboBox to be
> constant and equal to the column name. For example,if the column name
> is "A" and one of the drop down items is
> "sort" then on clicking "sort" the column should be sorted but the
> comboBox text shouldn't change to "sort" ; it should remain constant
> as "A".
>
> 2)I basically wanted to implement this component so that i could
> implement  a common set of functions that would act on the data in the
> context of the column that was clicked.I was basically relying on the
> Header Release event so that i can get the column index that was
> clicked and implement this functions on any column of datagrid.But how
> can i get the column index when i click on the menu-item of comboBox?
> I can only get the index of the item in the menu-list.
>
> Is there a better approach of solving my problem ? My problem is
> basically this :
>
> I want to give a menu-based functionality for each column ( a drop-
> down kind of feature) and implement a couple of operations like :
> sort,search etc. for the chosen column in the datagrid and show the
> output. Any suggestions or best practices would be highly appreciated.
>
> Thanks,
> Shishir.
>
> On Feb 24, 9:46 pm, Venkat Viswanathan <[email protected]> wrote:
>
> > Hi,
>
> > Create a custom component and assign that component to the headerRenderer of
> > the AdvancedDataGridColumn.
>
> > Regards,
> > Venkatwww.venkatv.com
>
> > On Tue, Feb 24, 2009 at 7:08 PM, Shishir <[email protected]> wrote:
>
> > > Hi,
>
> > > I want to implement an AdvancedDataGrid such that it's column headers
> > > can have a drop-down menu which can be used to do a variety of
> > > operations with the data in a column.My initial reading on the subject
> > > shows that the functionality that i am looking can be obtained by
> > > embedding combo-box in the Column header.
>
> > > Could someone guide me on how this can be achieved ? A sample code
> > > would be very useful.
>
> > > Thanks,
> > > Shishir.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to