Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How do I customize a column to display an icon and text under the com.vmware.ui.lists.ColumnContainer?

$
0
0

Hi,

 

I have a ColumnContainer that looks like the following (From the Chassis example)

 

     <com.vmware.ui.lists.ColumnContainer>

               <uid></uid>

 

               <dataInfo>

                  <com.vmware.ui.lists.ColumnDataSourceInfo>

                     <!-- Array of object properties for that column, usually only one -->

                     <requestedProperties>

                        <String>Name</String>

                     </requestedProperties>

                     <!-- Use sortProperty to allow column to be sorted with header click -->

                     <sortProperty>Name</sortProperty>

                     <!-- Use exportProperty to allow column data to be exported -->

                     <exportProperty>Name</exportProperty>

                  </com.vmware.ui.lists.ColumnDataSourceInfo>

               </dataInfo>

 

               <component>

                  <mx.controls.advancedDataGridClasses.AdvancedDataGridColumn>

                     <headerText>#{Name}</headerText>

                     <!-- dataField must match a requested property, its text value will be inserted -->

                     <dataField>Name</dataField>

                  </mx.controls.advancedDataGridClasses.AdvancedDataGridColumn>

               </component>

 

         </com.vmware.ui.lists.ColumnContainer>

 

The cell needs to display an icon and some text side by side. How do I get an image into the cell? Outside of the plugin environment, I have been successfully able to create an AdvancedDataGrid with a custom "itemRenderer"? Unfortunately, I am not able to do the same thing here and get it to show up correctly on the screen. I was wondering how I can associate the  AdvancedDataGridColumn with an itemRenderer?

 

Any help is appreciated.

 

Thanks

Shankar


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>