Regarding Datagrid Itemrenderer

13 views
Skip to first unread message

Priti Gupta

unread,
Mar 12, 2012, 1:05:02 PM3/12/12
to flex_...@googlegroups.com
Hello All,

my question is:-

i have a data grid and in that data grid i have one column have combobox,it has some value like one, two , and three.
i have another column and that column has combox and have two dataprovider for selecting one and two, combox would populate "000" "111" "222" and selecting three ,combox will populate "10" "20" "30" like that.
now if i select either one or two then my second column would  would  populate   "000" "111" "222" and selecting three then   my second column would  populate "10" "20" "30" . i mean whenever i select third value in first combox ,then second combox  should autometically display with "10" "20" "30" .


How i do that?please help me out.

Nitin Gopi

unread,
Mar 18, 2012, 2:03:44 PM3/18/12
to flex_...@googlegroups.com
Hi Preeti,
Question not clear. If you can explain it more clearly, I can help u out.

--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



--
You can only depend on yourself. The cavalry ain't coming.

Akki

unread,
Mar 19, 2012, 2:00:38 AM3/19/12
to Flex India Community
Hi Preeti,

I think you want to say the following:

There are 2 comboboxes (cb1 and cb2). The possible set of values
(dataprovider) for cb1 are: "One", "Two", "Three". When user selects
"One"/"Two" from cb1 then the values for cb2 will be: "000" "111"
"222" and when user selects "Three" from cb1 then values for cb2 will
be:"10" "20" "30".

If that is the question then one easy solution is to listen for change
event on cb1 and get the selected item (can be One, Two or Three).
Based on that change the dataprovider of cb2.

Thanks,
Akhil Mittal


On Mar 18, 2:03 pm, Nitin Gopi <nitin.g...@gmail.com> wrote:
> Hi Preeti,
> Question not clear. If you can explain it more clearly, I can help u out.
>

shanmugam c

unread,
Mar 26, 2012, 6:30:08 AM3/26/12
to flex_...@googlegroups.com
Hi Preeti, 
    
    Follow Akhil Mittal Method except use Combo box 1 value commit  event change dataprovider to Combobox 2.
Regards

C.SHANMUGAM
KnowledgeQ Interactive Consultancy Services Pvt. Ltd.
First Floor, D-56, DP Estate, Thuvakudy, Trichy 620015, Tamil Nadu, India
www.knowledgeq.com
PH:9751633375

Priti Gupta

unread,
Mar 26, 2012, 3:05:40 PM3/26/12
to flex_...@googlegroups.com
thnx....:)
Reply all
Reply to author
Forward
0 new messages