Flex :: Datagrid Sorting Only On Click Of Specific Part In HeaderRenderer

Jun 21, 2011

I have a custom FilterColumnHeaderRenderer with an HBox, inside a Label for the Column Header, a Textinput for the filter text and Label to clear the filter. Now I want that the column sorting only takes place on clicking the title.Currently the I use the sortCompareFunction on HeaderRelease for the whole columnHeader.[code]

View 2 Replies


Similar Posts:


Flex :: Datagrid With Custom HeaderRenderer?

Oct 1, 2010

I have a datagrid in my Flex App, and I;m uisng a custom HeaderRender. This HeaderRender has a checkbox. How can I control the checkbox from outside the HeaderRender?

View 1 Replies

Flex :: Put Image In Header Using HeaderRenderer For Datagrid?

Mar 18, 2011

how to create an headerRenderer and embed and image in the first header (column) for my datagrid.

View 1 Replies

Part Of The Animation To Be Skipped When I Click One Specific Button?

Jun 29, 2009

I have a swf file "home" that has a series of animations that are button controled.I want part of the animation to be skipped when I click one specific button, for instance.Most of the time I want frame label:"1 out" to play all the way through to the last frame (20) and on frame (20) there is an action sending it back to frame 1and stopping, but I need to have a button that when hit plays frame label 1: "1 out" and continues to frame (19) and does not utilize the action on frame (20) sending it back to frame (1), or in other words playing through "1 out" and then playing "2 out" which occurs on frame 21 without returning to frame (1).

View 6 Replies

Flex :: Customize The Sorting In Datagrid?

Jul 2, 2009

I have a column with 4 fields named : a> Main, b> Forward c> Back d> Link, if I use pre-defined sorting of datagrid with the column names which will be alphabetically, then the order is c>Back b>Forward d> Link a> Main. But, I do not want to sort based on the alphabets. I prefer to sort by names of the column fields. i.e. somehow give priority to each individual column field names. Like pre-define my own order.

View 2 Replies

Flex In DataGrid Default Sorting?

Dec 12, 2009

I have a datagrid with data like this:

[Code]...

View 1 Replies

Flex :: Sorting In Advanced Datagrid?

Jan 18, 2010

I have a Advanced Datagrid with sorting. I think it is string sorting by default. But i need the sorting in number. How can i achieve the number sorting.for example: i have row numbers like 1 to 100 . i need number sorting like 1,10,100.

View 2 Replies

Actionscript :: Sorting Columns In A Flex Datagrid

Oct 14, 2011

The datagrid gets its data from a back end database which has records like

[Code]....

I get errors like 1061: Call to a possibly undefined method refresh through a reference with static type mx.controls:DataGrid. for myRecords.refresh(); and Access of possibly undefined property sort through a reference with static type mx.controls:DataGrid. for myRecords.sort

View 1 Replies

Flex :: Datagrid - Flex AdavcedDatagrid Sorting Is Case-sensitive

Jul 27, 2010

I have several datagrids with changing columns. For the text fields the datagrid's sort function neems to be making a case sensitive compare. eg. the following list sorted would look like this apples strawberries Autos Autos should be with apples but since the capital A is counted differently all capital letters come after. I've found a lot of information on setting a CASEINSENSITIVE flag, but I can't figure out where to do this. The best solution would be one where I can override the default behavior to be case insensitive for all my datagrids and all my compare functions.

View 3 Replies

Actionscript 3 :: Sorting Function Not Called In Flex Datagrid?

Oct 11, 2009

I am creating a Datagrid in AS3, and adding a sort function to a column. However, this sort function does never get called. Any ideas?

dg_gruppenUebersicht = new NestedDataGrid;
dg_gruppenUebersicht.sortableColumns = true;
dg_gruppenUebersicht.dataProvider = arrCol_gruppenTnAkt;

[code]....

View 1 Replies

Flex Advance Datagrid Date Column Sorting?

Feb 1, 2010

I'm trying to sort ArrayCollection with following dates, and getting unexpected results.

14-Apr-1980
01-Feb-1975
30-Dec-1977
27-Oct-1968

[Code]...

View 1 Replies

Actionscript - Sorting Advance Datagrid Columns In Flex?

May 3, 2010

For example : Having four columns in advance datagrid like company,contact_person,product and date. In this, first i want to sort by product followed by company and followed by date.

View 1 Replies

Flex :: Flash - Sorting A Datagrid Column By The Row's Label

Aug 18, 2010

I'm creating a table that displays information from a MySQL database, I'm using foreignkeys all over the place to cross-reference data.

Basically I have a datagrid with a column named 'system.' The system is an int that represents the id of an object in another table. I've used lableFunction to cross-reference the two and rename the column. But now sorting doesn't work, I understand that you have to create a custom sorting function. I have tried cross-referencing the two tables again, but that takes ~30sec to sort 1200 rows. Now I'm just clueless as to what I should try next.

Is there any way to access the columns field label inside the sort function?

public function order(a:Object,b:Object):int
{
var v1:String = a.sys;

[Code]....

View 2 Replies

Actionscript 3 :: Flex 3 : Sorting Date Column In Datagrid?

Sep 2, 2010

How to sort date column in datagrid with date format of 'DD/MM/YY'.

View 1 Replies

Flex :: Flex S:datagrid Sorting Doesn't Seem To Work?

Feb 18, 2012

I'm using Flashbuilder 4.6 and can't get sorting of columns in my s:DataGrid to work, clicking on the columns does nothing. Can anyone suggest what is wrong?

[Code]...

View 1 Replies

Flex :: Data Binding - Datagrid Sorting Not Preserved Across Dataprovider Changes?

Aug 26, 2009

I have a flex datagrid. it is bound to an array collection. if the user sorts on column X it works fine. then, if the user causes the array collection to change, the datagrid forgets that it was sorted on column X.what do I need to do to preserve this sort preference so that the new array data will appear sorted by column X?

View 4 Replies

Flex :: Actionscript 3 - Disable Automatic Sorting In Editable Datagrid?

Mar 8, 2011

I have an editable datagrid. If sorting is applied by clicking any header of datagrid, it works fine. But after that, if data values are changed in any row of datagrid, sorting is applied automatically. How to prevent from this behaviour? i.e. sorting should only be applied if user clicks on any header of datagrid and sorting should not be applied when user modifies data in grid.

View 1 Replies

Flex :: Sorting - 4.5 Spark Datagrid Multi-column Sort?

May 9, 2011

does anyboy know if Flex 4.5 Spark Datagrid suppoprts multi-column sort natively - just like the ADG does?

View 2 Replies

Flex :: Deleting Row Of Datagrid By Clicking A Button Part Of That Row In Delete Column?

Nov 23, 2010

I want to delete a row of my datagrid when someone click a button part of that row located below Delete Column. I tried many different way one of those were to

<mx:DataGrid id="userGrid" dataProvider="{userGridData}" width="800" height="500" itemClick="userGrid_itemClickHandler(event)" creationComplete="userGrid_creationCompleteHandler(event)">
<mx:columns>

[Code].....

The item render ev.renderers.UserGridEditRender has a delete button listing for click event it basically do userGridData.removeItemAt(userGrid.selectedIndex);
(UserGridData = Data provider of grid with id "userGrid") But whenever I click the button an exception is throw

RangeError: Index '-1' specified is out of bounds.

View 1 Replies

Actionscript 3 :: Give Click And Double Click Together In Advanced Datagrid Flex?

Mar 29, 2012

I want to listen both click and double click events for advanced data grid in flex. I have given double click enabled true and written the function in itemdoubleclick but only click is working but not itemdoubleclick

View 1 Replies

Flex :: Styling The A Specific Row Of DataGrid?

Jul 18, 2010

I have a dataGrid component in flex. My grid has few rows. I simply want to make the last row bold. I just can't figure how to do it.
I thought about an idea : create a factory that gets parameters so that i can pass the itemRenderer the total count of rows. But, i don't know how to check the current row in the itemRenderer itself (and compare it to the total rows).

View 1 Replies

Flex :: Row Specific Limits On A NumericStepper In A DataGrid?

Sep 30, 2010

I have a datagrid in Flex 4 with a NumericStepper as editor for a numeric value. I can set pre-defined maximum and minimum values for the NumericStepper, but I need to be able to have different limits for each row in the DataGrid. How can I do this?

This is the code for the datagrid:

<mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="middle">
<mx:columns>

[Code].....

but now I get a StackOverflowError when I click on the cell to change the value. I posted a new question regarding that here: [URL]

View 1 Replies

Flex :: Assigning XML Into Specific DataGrid DataFields

Mar 26, 2011

Coming back to flex after not using it for a while, trying to load some xml (generated by php) into a datagrid using dataprovider to create a simple grid showing the daily high and low temperatures over the course of a week. I can get the data to display in my datagrid, but the columns are loading in random order. (So friday is coming before monday etc.) How to assign specific data to specific datafields.

Here's the flex code; (updated to working code. Note that the dataFields simply contain the names of the xml tags and/or the names of the tags within those tags)
<?xml version="1.0" encoding="utf-8"?>
<fx:Declarations>
<s:HTTPService id="weather" url="[URL]" result="weather_resultHandler(event)" fault="weather_faultHandler(event)" />
</fx:Declarations>
[Code] .....

View 1 Replies

Flex :: StackOverflowError On DataGrid Row Specific Limits In A NumericStepper?

Oct 1, 2010

I have a DataGrid with a NumericStepper as the item editor for one of the columns. The numeric stepper is supposed to get its max an min values from the data for each row. My MXML is like this:

<mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="middle">
<mx:columns> [code].....

View 1 Replies

ActionScript 3.0 :: Sorting Columns In Datagrid?

Jul 28, 2011

I have a datagrid that uses a custom cellrenderer class to allow me to use a combobox. I have an invisible column that holds the value returned by the cellrenderer when the combobox value is changed. BUT sorting is wonky. Since what really lives in the combobox column individual cells is an object, it never really sorts properly. Is there a way to fire a sorting event to the column that holds the real value?

View 4 Replies

ActionScript 2.0 :: DataGrid Numeric Sorting?

Jun 25, 2010

I have a DataGrid in Flash 8 Professional. I am having trouble sorting numerical data. Here is the code placed on the frame (modified from the tutorial):

[Code]...

View 1 Replies

ActionScript 3.0 :: Datagrid - Default Sorting?

Oct 21, 2010

I'm using Datagrid to display some data out of a DB. The first field is date, I would it default to sorting on this field with it also having the arrow icon ( as if the user has clicked on the column)

View 1 Replies

Flex :: DataGrid Add New Row Via Single Click Event

Apr 15, 2012

Flex data grid has 1 default row created. When user clicks on the second row, a new row needs to be created and made editable.

Here is what works already - user tabs over the columns and when the user tabs while in the last column, a new row is created with default values.

Here is also what already works - user click a button outside the grid, which adds a new row.

(itemEditBegin and itemEditEnd have been implemented)

Here is what does NOT work: When I "single click" on the second row (no data yet - row is null), how do I detect that the currently clicked row is the second row and make it editable? Can I figure out the rowIndex from MouseEvent and use this to add a new row?

Find code below:

<mx:DataGrid id="myGrid" editable="true" click="clickEvent(event)"
itemEditEnd="endEdit(event)" itemEditBegin="beginEdit(event)" variableRowHeight="true" >

[Code]....

View 2 Replies

Flex :: Spark DataGrid Cell Click?

Jun 18, 2011

I am searching for something like CellClick event on Spark DataGrid, or something alike.

Is there something like this in Flex 4.5, and how to get the data from the clicked cell ?

View 1 Replies

Use Right Click / Change Function On A Datagrid In Flex

Jul 4, 2011

i have a datagrid which contained several items,when i click one row, a panel will show,however, if i have already selected one row and then click some blank place, this panel will also show because there is already a selecteditem,which will be a problem. Then i change this click event to change event, however, there will be another problem, which is if i click the same row, nothing will happend. so is there any better idea when i click a row, a panel shows and when i click the blank place, nothing happened.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved