Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
fivan #1
mading multiple selection in advanced datagrid
Hi All
I'm new in Flex and AS3, so may be my problem is simple to solve but I need
help anyway.
I have to do the classic "Select All" button and apply it to an Advanced
Datagrid.
I have found in the help the "selectCell" method but when i try to use it in
my code it doesn't appear.
Someone can help me?
Thanks in advance.
Ivan
fivan Guest
-
add row to advanced datagrid
what is the code to add a new row to the advanced datagrid? when a button is pressed i want it to add the row -
Advanced Datagrid :-(
Hi, Am working with AdvancedDataGrid Control. Requirement is something like need to show the whole year inventory in advanced datagrid. I can... -
Advanced OOP: Best OO design for rendering multiple page types to multiple devices
Hoping to get some ideas from more experienced hands regarding the best way to use object-oriented design to assist my development of a content... -
multiple selection box
Hi can anyone help me with a bit of code. I m trying to check on my form whether the user has made a selection from a multiple selection box? ... -
--- Multiple Selection, with Paging in the Datagrid ---
Hi, Hard work but possible. You need to keep internal data (add fields to row data) on the server to track the selected rows. Natty Gur, CTO... -
jdjivani #2
Re: mading multiple selection in advanced datagrid
hey.. use this property for ur Advanced datagrid..
selectionMode="multipleRows"
jdjivani Guest
-
fivan #3
Re: mading multiple selection in advanced datagrid
Ok, this property let the user select multiple rows.
But is it possible to simulate the multiple selection of the user via
scripting?
Something that causes the same effects of the click of the mouse.
fivan Guest
-
jdjivani #4
Re: mading multiple selection in advanced datagrid
use this kind of loop..
private function initApp():void {
application.addEventListener(KeyboardEvent.KEY_UP, keyHandler);
}
private function keyHandler(event:KeyboardEvent):void {
var ctrlPressed:Boolean = event.ctrlKey;
// If the user presses Ctrl + A, select all chart items.
if (ctrlPressed) {
var curKeyCode:int = event.keyCode;
if (curKeyCode == 65) { // 65 is the keycode value for 'a'
selectItems();
}
}
private function selectItems():void {
// Create an array of all the Grid's Row.
var allSeries:Array =adgGrid.dataProvider.source;
// Iterate over each Row.
for (var i:int=0; i<allSeries.length; i++) {
var selectedData:Array = [];
// Iterate over the number of items in the series.
for (var j:int=0; j<adgGrid.dataProvider.length; j++) {
selectedData.push(j);
}
// Use the series' selectedIndices property to select all the
//Grid items.
allSeries[i].selectedIndices = selectedData;
}
}
jdjivani Guest
-
fivan #5
Re: mading multiple selection in advanced datagrid
Bingo!
It work perfectly.
thank you very much!
fivan Guest



Reply With Quote

