Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-31-2011, 04:59 PM   #1
moglie
Member
 
Join Date: Nov 2001
Posts: 57
Default update a slider iln custom itemrender based on a datagrid cell's value

I have one datagrid (dg1) that's draggable and a second datagrid (dg2) that's dropenabled. When I drop an item onto dg2, a popup displays and this popup has a slider ranging from 0-10. when you close the popup, the text item from dg1 plus the slider value from the popup updates col1 and col2 in dg2 respectively. BUT i have a hslider itemrender in col3 that needs to dislplay the value that's in col2 and update col2 value if you make a change on this slider intemrender. How can I do that?

the problem i'm having is the slider itemrender is getting changed from the value set in the pop up window. that's fine. but when i add another itiem and set the slider value in the popup, no bot slider itemrenderers get changed to the new value.

when i close the popup window to populate the row i'm just myDP2.addItem({col1:temp, col2:slideTemp}) and the itemrenderer slider in value is col3 is bound to the slideTemp var so I guess that why they're all getting updated.

I need to be able to separate these values into separate ones. col1 and col2 get populated fine by temp=event.itemRenderer.data.col1 and slideTemp = event.target.value.
moglie is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:46 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.