all groups > flash (macromedia) > november 2004 >
You're in the

flash (macromedia)

group:

DataGrid context menu


DataGrid context menu brothersham
11/17/2004 10:10:38 PM
flash (macromedia):
I have created a component that contains a datagrid and I want to apply a
context menu to an individual cell. I import the component that I created
using the window component and need to apply the context menu when the datagrid
is created in my as file.
Re: DataGrid context menu brothersham
11/17/2004 10:14:58 PM
Here is the function I am trying to apply the context menu to.

function createDataGrid(newDg, colNames, colLabels, colWidths) {
newDg.move(0,0);
newDg.setSize(836,nStockPosture.myAc.height-70);
newDg.hScrollPolicy = "auto";
newDg.selectable = true;
newDg.setStyle("alternatingRowColors", [0xFFFFFF,0xCECECE]);
newDg.columnNames = colNames;

for(var i=0;i<newDg.columnNames.length;i++) {
newDg.getColumnAt(i).headerText = colLabels;
newDg.getColumnAt(i).width = colWidths * 6;
----> newDg.getColumnAt(i).menu = contextMenu;
}
}
Re: DataGrid context menu ooba
11/17/2004 10:24:46 PM
This is why I keep posting for MM to create a category in Flash called
components. I have a ton of questions as well with the datagrid but it is hard
to get the answers. Wish I could help. I will be working on the same type of
functionality this week and I am sure into next so when I have the solution I
can post it. Best of luck.
Re: DataGrid context menu urami_
11/18/2004 5:35:08 PM


[quoted text, click to view]

Again , it is hard to get post answered because :

- Macromedia components are of lousy architecture so not many use them.
- Components aim in majority for new users , the advanced one build their own
so not many will bother to study them just to post and help .
- badly customizable and frequently useless due to particular design / layouts
requirements.
- overall bloat ware - increase file size unreasonably for what they do
- lots of bugs to work around and lack of consistency in standards.

flash 5 - smart clips , flash mx components and now flash mx 2004 components.
None compatible with each other. You do client work today using
macromedia build component and you have to redo from scratch tomorrow
if client get upgrades for their tools as what you did won't work on new player and in
new authoring environment.

that's why not many of us bother to reply posts nor research , we have no use for them
much. And that's why is so pointless to have dedicated forum for it. you
will be an outcast , along with maybe 20 more users who post there and eventually
end up here because no one bother to entertain you.
Most of the flash talents are in this very forum , if here we don't help , you not likely
get any help in other places.

Out of 1000 posts only 10 will be answered by macromedia tech people because this forums
are user-to-user not Macromedia-tech-to-user.
Macromedia charge $$$ for support and they won't do it at no cost to you.

So , not to make you feel bad but you in kind of vicious circle.



--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: DataGrid context menu brothersham
12/20/2004 7:14:27 PM
I got the context menu to work, but only when the datagrid is editable. Has
anyone found a way to apply a context menu to a nested movie clip, like the
datagrid. I have a datagrid inside an accordion.
AddThis Social Bookmark Button