flexgeek

Tips & Tricks – adding a combobox to a datagrid header as headerRenderer

Posted by: vodka on: June 7, 2007

banner3

Blog moved to http://blog.flexgeek.in

View the post here – http://blog.flexgeek.in/?p=24

13 Responses to "Tips & Tricks – adding a combobox to a datagrid header as headerRenderer"

Wow ! great piece of code. U r my guru FlexGeek !

:) Thanks Kaashif! My blessings are always with u!

Hey, this is cool! Do you have suggestions on how to create a headerRenderer that is a comboBox but also allows the user to sort the columns?

Hi,
I try your sample using Flex Builder 3 beta and after running it, it spit out the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls::DataGrid/mx.controls:DataGrid::focusInHandler()
at [focusEvent]
at flash.display::Stage/set focus()
at mx.core::UIComponent/setFocus()
at mx.controls::ComboBase/setFocus()
at mx.managers::FocusManager/setFocus()
at mx.managers::FocusManager/private::mouseDownHandler()
at [mouseEvent]

Sorry, I forgot to mention when it happened. It happened after I click on “active” from the Filter option. I try to follow the sample by using other controls like LinkButton etc, but so far only Text is working. The rest of the controls will spit out the same error message.

Just like Bob, I want to create a headerRenderer that is a comboBox but also allows the user to sort the columns. Can you help?

There seems to be something missing since dragging the columns around causes errors. Not quite ready yet… But cool, none the less!

Is it possible to create a header render for the scrollbar of a datagrid? Thanks!

The links are broken :-(
Can you update them please?

the linsk are all broken ,. can you please update or fix them .. thanks

please update this entry. I’m not able to view this example.

I am not able to use the link…its broken. Kindly update the link

This is the *really* annoying thing about blogs – how often do you see a really good blog spoilt by broken links and authors that never bother to check commentt or feedback. This article is *exactly* what I’m looking for so I’m really disappointed the links are *still* broken. :-(

Leave a Reply