VMware {code} Community
naveen_askquest
Enthusiast
Enthusiast

Customization of Columnset Container

hi Laurent,

Is it possible to customize columnsetcontainer datagrid..?

My requirement:

I want to show/hide a column in columnsetcontainer based on value of "requestedProperties"

i tried with sdk class ColumnDataSourceInfo,ColumnContainer and ColumnSetContainer but the classes have no property for such customization

?

and is it possible to pragmatically hide the Filter option available at the top pane of each datagrid.?

Thanks in Advance!!!!!!!!!!!!!!!

Tags (1)
Reply
0 Kudos
7 Replies
laurentsd
VMware Employee
VMware Employee

Sorry, this customization is not possible.

naveen_askquest
Enthusiast
Enthusiast

One more query related to columnsetcontainer with respect to 5.1 SDK..

Is it feasible to place our own custom action script code other then Itemrenderer inside column set container.

Reply
0 Kudos
laurentsd
VMware Employee
VMware Employee

AFAIK you can put any legal mxml/actionscript code in your ColumnSetContainer class.

Reply
0 Kudos
naveen_askquest
Enthusiast
Enthusiast

hi Laurent,

I am trying to put some MXML code like any Hbox or other UI component with in columnsetContainer Class but unable to compile the class with error:

"

Error: 'ColumnSetContainer' declaration must be contained within the <Declarations> tag, since it is not assignable to the default property's type 'Array' or element type 'mx.core.IVisualElement'.

      <lists:ColumnSetContainer >"


and when i place <lists:ColumnSetContainer > inside <Declaration>  results in to:

disappearing datagrid on UI as well as error ask to reload webclient.


Can you provide any directions what is the ideal way of using flex UI code within coulumnsetCotainer

or any sample.?

Note: if i remove mxml (Flex UI code say HBOX) portion then my datagrid is working fine.


My Objective:

is to show /use some UI component above datagrid.

Reply
0 Kudos
laurentsd
VMware Employee
VMware Employee

> My Objective is to show /use some UI component above datagrid.

The columnsetcontainer is for customizing a column. You cannot change anything else in the view.

If you need more customization you must create your own view.

Reply
0 Kudos
naveen_askquest
Enthusiast
Enthusiast

How can i create a view that will contain columnSetcontainer as well?

Reply
0 Kudos
laurentsd
VMware Employee
VMware Employee

I meant to create your own custom view where you define everything.  The object list view and columnsetcontainer are not components that can be re-used elsewhere.

Reply
0 Kudos