Actionscript :: Scroll The Datagrid Down Or Up To Selected Index Row Flex?

Jul 7, 2011

I am performing a find operation in a datagrid on one of the columns. After I find the row containing the item, I make that as the selected index row, which highlights it. But now I also want to scroll the datagrid down or up (if the item is out of screen scope) to show that selected item automatically on this find operation.

View 1 Replies


Similar Posts:


Flex :: Delete Item From Collection Bound To Datagrid And Update The Grid Selected Index

Feb 20, 2011

I have a datagrid with an xmlListCollection bound to it:

<mx:DataGrid id="dgCompetente" includeIn="Competente" x="10" y="66" width="547" height="468"
change="dgCompetente_changeHandler(event)" dataProvider="{colCompetente}"
editable="false">

[Code]......

I want the selectedIndex to remain the same. So, if I delete item 2, the next in the list should be selected. The problem is that if I delete item 2, item 3 will be selected and I have no idea why.

View 1 Replies

ActionScript 2.0 :: Get The Selected Index In A Datagrid?

Jan 18, 2007

How do you get the selected index in a datagrid, thats it

by the way the actual situation is that I'm tryin to show the data of a selected row in a datagrid, when a row is selected the current slide is set as invisible and the message_view slide is made visible and the data is shown in a text box. e.g.

on_datagrid_click_event (
text_box.text = data_at_selected_index;
this._visible = false;
_parent.messageView._visible = true;
}

View 8 Replies

Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

Nov 6, 2009

Is there any way to disable a few columns for a particular row in flex datagrid?

I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.

Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.

View 2 Replies

Flex :: Why Selected Index Not Working When TextBox Changes

Oct 31, 2010

In the following working example the list's selected index is supposed to reset to 0 whenever the text box changes. However, for some odd reason every other keystroke the selected item disappears and then reappears at the subsequent keystroke.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
[Code] .....

View 4 Replies

Flex :: Determining Index (not Selected One) For TabBar MouseOver

Apr 24, 2011

I have an application where I'm trying to update the String for a Label's text property, based on the tab which user has the mouse over. I've constructed a simple example displaying how I would process the eventHandler function if I was going to use the selectedIndex property, however it's the tab that has mouse focus, which may or may not be the selectedItem, that I'd like to reference and I haven't been able to figure out a way to do it.

So here is the example:
<s:Label id="descriptionLabel" />
<s:TabBar id="audioTB"
dataProvider="{audioVS}"
mouseOver="audioTB_mouseOverHandler(event)"
rollOut="audioTB_rollOutHandler(event)" />
[Code] .....

View 1 Replies

Actionscript 3 :: Know Index Value Selected / Opened Tab Flex (TabNavigator)?

Oct 18, 2011

I have a mx Tab navigator and added several childs...I can use selectedindex(int) to open/select the respective (int) tab but How do I know the value of a selected/open tab?

View 2 Replies

Flex :: Show Row Index For DataGrid Rows?

Nov 24, 2009

Is it possible to dynamically show row index for DataGrid rows ?

I have a static ArrayCollection which is set to be DataGrid's data provider and I would like to always have row numbering for each populated row (e.g. in a column called "#").

View 1 Replies

Flex :: Datagrid - Checkbox Value Not Selected From Database

May 21, 2010

I have a small flex datagrid. The dataProvider is an xmlList. I have two columns, userList and user permissions. The user permissions column as checkboxes. The values for the checkbox are stored as 0 and 1 in mySQL. While returning it from PHP, I am converting them to true or false. Its returning the values correctly to the frontend.

But inside the itemrenderer, the checkbox is not being set to true or false.
Either everything is true or everything is false.

[URL]

How can I correctly set the value of the checkboxes from the DB values?

View 1 Replies

Flex :: Get Linkbutton Label Name And Selected Row Of Datagrid?

May 12, 2011

i am using below code for using linkbutton in flex datagrid

<mx:DataGridColumn headerText="Case ID" width="80">
<mx:itemRenderer>
<fx:Component>

[Code]...

now on link button click i want linkbutton label name and selected row inside lnkCaseIdClick method, how can i do this?

View 2 Replies

Flex :: Get Selected Values (using CheckBox) From DataGrid In It?

Jan 2, 2012

I have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement:i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .[code]...

View 1 Replies

Actionscript 3 :: Deleting Selected Rows From A DataGrid In Flex

Feb 28, 2011

I added a checkbox in a DataGrid using ItemRenderer. I have pasted the code I am using below.

<mx:DataGrid id="dgEmployeeInfo" dataProvider="{resultArray}" x="131" y="95" editable="false">

[Code]...

View 1 Replies

Actionscript 3 :: Flex: Row Index In Datagrid When 'selectable' Is Set To 'false'

Mar 2, 2011

It would be an easy question, but property 'selectable' is set to 'false' and therefore selectedItem is always null.

In each row I have 3 buttons. When I click a button, I need to extract data corresponding to clicked row.

View 2 Replies

Flex :: Get A Cell Value Of A Selected Row In A Mx.dataGrid In Flash Builder

Feb 19, 2012

I thought I could use...

studentID = myDataGid.selectedItem.studentID

Does not want to work for me. Tracing the expression in debug it is returning "XMLList (@11e55e8d1)".

The datasource is an XMLListCollection. tracing the expression myDataGid.selectedItem I can see the studentID node and it has a value.

I see that starting with Flex 4.5, Adobe recommends that we use the spark.components.DataGrid class as an alternative to the mx:dataGrid which I am not at all familiar with or where to start to learn. I have this mx:dataGrid all setup and otherwise working and would prefer not to have to learn something new.

View 1 Replies

Flex :: Scroll To Selected Item In Spark List Component?

Oct 21, 2009

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item

View 8 Replies

Flex :: Datagrid - Highlight Selected Cell Of A Data Grid

Aug 25, 2009

I have a flex data grid.I need to highlight the selected cell of the data grid.

View 3 Replies

Actionscript 3 :: Get The Values Of A Selected Row In The Advanced DataGrid Control In Flex?

Feb 26, 2010

How to get the values of a selected row in the Advanced DataGrid control in Flex

View 1 Replies

Flex :: Get Selected Date On DateField Adobe Datagrid ItemRenderer

Jul 23, 2010

I am trying to get the selected date on the datagrid. I used the itemrenderer to display the datefield on my datagrid.

<mxataGridColumn dataField="dt" headerText="Date of Transaction" itemRenderer="mx.controls.DateField" rendererIsEditor="true" editorDataField="selectedDate"/>

View 1 Replies

Actionscript :: Flex Edit DataGrid Cell On Click Only When Previously Selected?

Feb 27, 2010

I need to modify the behaviour of an editable datagrid to this:

-Single-click on a row, doesn't make the cell show a text input field (only selects the row)

-Double-click on a row, doesn't make the cell show a text input field either

but

-Clicking a cell in an already selected row, shows a text input field ready to be edited.

View 1 Replies

Flex :: Detecting The Index Of Datagrid Row Affected By Change In Dataprovider (array Collection)

Feb 16, 2011

I have an array collection as the dataprovider to a datagrid. When I change a value in the arraycollection, a particular row gets updated in the datagrid. I want to get the index of that particular row. How do I get it?

View 1 Replies

Flex :: No Scroll On A Datagrid

Dec 22, 2010

Is it possible to disable the scrolls and make them invisible on a datagrid?

View 2 Replies

Flex :: Any Way To Scroll Datagrid On Timer Basis

Aug 20, 2009

Is there any way to scroll Datagrid on timer basis.Let say there are plenty of records which can not be shown in one screen. And the screen is showing the first 10 records. An auto scroll should start after 5 seconds and bring up the next 10 records. Then again after 5 seconds the other 10 records and so on. A kind slide show effect.

View 1 Replies

Actionscript 3 :: Force Flex Datagrid To Scroll

Dec 15, 2009

Is there a way to make the datagrid scroll if it's width exceeds it's parent container (instead of making the parent container scroll?) I have a datagrid with a fixed column, and of course I want the scrollbar to appear for the datagrid and not the enclosing HBox. I already set minWidth of the HBox to 0, tried autoLayout=false, but with no effects. The datagrid is dynamically created in AS3, so the enclosing container.

Maybe I did not express my needs clearly - the content of the datagrid should not be wider than the datagrid itself. I just want to surrounding Canvas of the Datagrid to not have any scrollbars and let the datagrid itself scroll. But just setting the scrollpolicy to off on the Canvas will not yield to scrollbars on the datagrid, it will rather clip the data.

View 1 Replies

Flex :: Detect Whether Scroll Bar Shows Up In Datagrid?

Mar 9, 2010

I want to find out whether the scroll bar shows up in my Datagrid or not.

View 1 Replies

Flex :: Keep DataGrid In Same Scroll Position After Update?

Sep 8, 2010

I have a custom <mx:DataGrid /> that is updated with data from a ColdFusion server every 60 seconds. I've noticed that every time the DataGrid updates and redraws the scroll position is reset to the top.

Is there a way I can preserve the scroll position for my DataGrid?

View 1 Replies

Flex :: Actionscript 3 - Making A DataGrid Scroll Smoothly?

Dec 2, 2009

I've noticed that the default behaviour for a DataGrid's vertical scroll bar is to scroll one row at a time. This is all well and good when the rows are all uniform and small (e.g. displaying a single line of text), but gets really ugly as soon as you have rows with variable heights.I'm curious, is there a way to make DataGrid scrolling "smooth"? For instance, is there a way to have the DataGrid scroll by a set number of pixels, lines of text, etc. rather than scrolling one row at a time?

So far, the only solution I've managed to come up with is to place the DataGrid in a Canvas and have the Canvas do the scrolling instead of the DataGrid. The issue with this approach, though, is that as soon as the Canvas scrolls far enough, the DataGrid headers scroll off-screen. Ideally, I'd like to get the smooth-scrolling nature of the Canvas, but also keep the DataGrid headers visible.

View 3 Replies

Flex :: Get A Custom ItemRenderer To Scroll The DataGrid Rather Than Its Cell?

Jun 2, 2009

I'm having an issue with a custom ItemRenderer I've written for a DataGrid. With this ItemRenderer, it's possible that the contents could exceed the width and height of the DataGrid cell - and when this happens, scroll bars appear, letting me scroll the individual cell.What I would like, however, is that when the contents of the cell are too large, the entire DataGrid scrolls, rather than the individual cells.

Now, when I set the custom ItemRenderer's horizontal and vertical scroll bar policies to "off", I get the vertical scrolling on the DataGrid that I want (the individual cells stretch to accommodate the full height of the contents) but I don't get any horizontal scrolling. Instead, any content too wide for the cell is clipped. Incidentally, setting the DataGrid's horizontal scroll bar policy to "on" has no effect, the scroll bar gutter is drawn, but nothing scrolls Is there a way to force the DataGrid to scroll horizontally when my custom ItemRenderer's contents are too wide for the cell?

View 1 Replies

Flex :: ComboBox In DataGrid Loses Values When Scroll Horizontally

Dec 14, 2009

I have a very strange problem in a Flex 3.4 Datagrid. One of the columns is a ComboBox - I have my own custom renderer for the ComboBox. I use it to select my data and then make a "save" to the db. Upon return the comboBox loses its value. Even stranger is that when I scroll the datagrid area to the left (by moving scrollbar right) - the values in the ComboBox change!! When I scroll the datagrid right (by moving the scrollbar left) - the values in the ComboBox don't change.

View 2 Replies

Flex :: DataGrid Item Editor - DropDownList Fires Focus Out On Scroll

Feb 24, 2011

I have a data grid with a custom item editor that displays a DropDownList component. When I click the scroll bar in the component, it is firing a focus out event on the list, which is causing itemEditEnd to fire. Why the list is not keeping focus, or how to make it keep focus. I'm using Flex 4.

View 2 Replies

Flex :: Spark DataGrid Disable Horizontal Scroll And Resize Columns?

May 10, 2011

Is there a way to get the columns to resize to the width of the new Datagrid instead of overflowing and showing the scrollbar? I've tried on the skin, setting all relevant properties and ran out of options. I just want it to behave like the previous Datagrid where the columns would resize to the width of the datagrid.

View 1 Replies







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