http://old.nabble.com/file/p26284802/scrambled.jpg
The above image is taken from a advanced data grid which I am using,in that
the columns which I have pointed out are output of an item renderer and the
other column data are directly shown from the input given to the datagrid.
The alignment for the data which is directly taken form the the data
provider is very much different from the data which is got from
itemrenderer.
The following is code snippet of the item renderer which I am using to
render the data :
public class DataGridBMTPreferenceLink extends LinkButton
{
public function DataGridBMTPreferenceLink()
{
super();
}
override public function set
data(value:Object):void {
if(value != null )
{
super.data = value;
setStyle("textRollOverColor", 0xFF0000);
setStyle("textDecoration","underline");
setStyle("fontFamily","verdana");
setStyle("fontSize",9);
setStyle("fontWeight", "normal");
setStyle("textAlign","left");
this.label=value.bmtPreference;
this.addEventListener(MouseEvent.CLICK,showWindow);
}
}
public function showWindow(event:MouseEvent):void {
var compEvent:GetStudentBMTPreferencesEvent= new
GetStudentBMTPreferencesEvent(this.data.studentID);
compEvent.dispatch();
var
bmtPreference:BMTPreferenceList=BMTPreferenceList(PopUpManager.createPopUp(
this, BMTPreferenceList , true));
}
}
Please let me know how to align the data ?
--
View this message in context:
http://old.nabble.com/Advanced-Datagrid---itemRenderer---horizontal-alignment-issue.-tp26284802p26284802.html
Sent from the Flex India mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---