Hai raju,

     I had struggle with one issue that, Dynamic Label implemented in  grid
titile. I can get the output. But some time grid header shown as empty. pls
help this issue. Here below i mention coloring on using label part. I had
taken value from text.

     <class name="mygridcolumn" extends="gridcolumn">
    <handler name="ontext">
        this.setWidth(this.width+1E-10);
    </handler>
</class>
<class name="mygridtext" extends="gridtext">
    <handler name="ontext">
        this.setWidth(this.width+1E-10);
    </handler>
</class>


      <grid>
          <mygridtext datapath="@accountName" fontstyle="bold" width="175"
     editable="false">
<handler name="oninit">
var del = new LzDelegate( this, "labeling" );
LzTimer.addTimer( del, 1000 );//This is used for time delay
</handler>
<method name="labeling">
this.setAttribute("text",gridAccountName.getText());
</method>
</mygridtext>

          </grid>

<text id="gridAccountName" visible="false"
datapath="dsLabel:/label/account/@gridAccountName"/>




Thanks
Naraen

Reply via email to