Not finding what you are looking for? Request a recipe!

  1. Avg. Rating 5.0

    Adding an icon to the header for a Spark DataGrid

    Adding a static icon to the header of Spark DataGrid can be done very easily by creating a custom headerRenderer and specifying it for your GridColumn.

  2. Avg. Rating 5.0

    Changing the backgroundColor of a row in Spark DataGrid

    I create a custom itemRenderer that creates a new gray Rect as the background. In each of my GridColumns, I'm using itemRenderFunction to decide if I use the custom gray itemRenderer or the default renderer.

  3. Avg. Rating 4.3

    How to know when an ItemRenderer is selected

    Use a custom itemRenderer where you override the updateDisplayList function: ListBase(owner).isItemSelected(data); The full explanation is below.

  4. Avg. Rating 3.3

    Using a LinkBar That Doesn't Toggle Its Links With A ViewSta ...

    In this example, I've created a custom component that subclasses LinkBar so that the buttons are not toggled when the dataProvider of the LinkBar is a ViewStack. This solution was provided by Sasha Magee and I am just a messenger.

  5. Avg. Rating 3.0

    Bringing focus back to a modal dialog after dismissing an al ...

    You need to make sure that the modal dialog is re-enabled before the Alert dismisses itself. Otherwise, once the Alert gets dismissed, the Application will look at the dialog, see that it is not enabled and will return focus to the parent Application.

  6. Avg. Rating 2.8

    How do you change the background cell color in a DataGrid?

    In the following example, I've created a simple DataGrid with two columns of X and Y values. If any of the values exceeds 100, the cell background will be red. I will use the same itemRenderer for both columns since the two columns behave the same.

  7. Avg. Rating 2.2

    How do I create a Tree itemRenderer?

    I've found that if you want to change some small functionality of the Tree, it is easiest to create an itemRenderer that extends the TreeItemRenderer class.

  8. Not yet rated

    Outlining the selected row in a Spark DataGrid

    Create a custom DataGrid skin and add a stroke to the selectionIndicator.

  • Results 1-8 of 8