refreshing the grid is one option.. you could just update the item
thats selected in the grid, but thats a bit more complicated...
you can pass the dataProvider to the popUp... dp:grid.dataProvider and
then in the popUp you can just bind that to another grid or what ever
you want...
On Wed, 16 Mar 2005 08:20:43 -0800 (PST), Valy Sivec
<[EMAIL PROTECTED]> wrote:
>
> Thanks Clint. Just another stupid question: and how do I referece the
> variables encapsulated in the initObj in the popup? Can I encapsulate the
> provider in the "initObj" object as well?. Will the source grid feel that
> the datagrid has been changed in the popup? or should I refresh the original
> grid?
>
> Valy.
>
>
> Clint Tredway <[EMAIL PROTECTED]> wrote:
>
> function click(){
> //btn.label = "clicked";
> var parentOver = this;
> var isModal:Boolean = true;
> var initObj = {y:100,x:100,width:400,
> height:400,blogid:bid,title:"Blog
> Entry",entryTxt:entryTxt,entryTitle:entryTitle};
> var show =
> mx.managers.PopUpManager.createPopUp(parentOver,blogView,isModal,initObj);
> }
>
> the initObj is where you send data to your popup... in this code
> snippet, I have vars in my popUp blogid, entryTxt, and entryTitle...
> and I pass data into those vars
>
>
>
>
> On Wed, 16 Mar 2005 07:54:34 -0800 (PST), Valy Sivec
> <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hello,
> >
> > I have a datagrid and underneath a add/edit button. I would want to select
> a
> > row from the grid and pass that row data to a modal popup window and also
> > prepopulate some form items elements. I wasn't able to pass the info
> between
> > the grid and the popup window. After I edit the info in the popup I would
> > like to refresh the grid underneath... is there a way to reference the
> > provider from the parent?
> >
> > Thanks,
> >
> > Valy
> >
> > ________________________________
> > Do you Yahoo!?
> > Yahoo! Small Business - Try our new resources site!
> >
> > Yahoo! Groups Sponsor
> >
> > ADVERTISEMENT
> >
> >
> > ________________________________
> > Yahoo! Groups Links
> >
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> >
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
> >
>
>
> --
> My Blog
> http://www.clinttredway.com
>
> Are you diabetic?
> http://www.diabetesforums.com
>
>
>
> ________________________________
> Do you Yahoo!?
> Yahoo! Mail - 250MB free storage. Do more. Manage less.
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
>
>
> ________________________________
> Yahoo! Groups Links
>
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
My Blog
http://www.clinttredway.com
Are you diabetic?
http://www.diabetesforums.com