I believe this was a width bug in the combobox where it was reverting to the default width internally when the content was changed.
 
We were seeing it with dynamically filled comboboxes in our app too.
 
However, I think it was fixed in the latest version of laszlo because it doesn't seem to be happening anymore.
 
What version of OpenLaszlo are you using?
 
 
-----Original Message-----
From: ankit rastogi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 1:38 PM
To: [email protected]
Subject: [Laszlo-user] dynamic combobox and listitem show incomplete text

Hi,

  I am populating a combobox with dynamic dataset and at the same time I also create these combobox and listitem dynamicaly.
   The problem is unual in the sense that whatever item selected from drop down list is displayed partially on the combobox.
  By partially i mean if listitem is .eg :
    6000000,id,asdsadsads
   only 6000000.i is displayed.

  While dropdown shows the items complete text but as user selects it , it get trimmed from its end.

    Code  ---
// listitem class defined.

<class name="reconlistitem" extends="listitem"       datapath="remedyds:/reconciliationXML/setupXML/fieldInformationXML/fieldIdentifierListXML/fieldIdentifierXML"
     value="$path{'@name'}" width="${parent.width}">
       <attribute name="text" value="$path{'@name'}" type="string"/>
       <attribute name="widgettype" type="string" value="listitem"/>
       <!-- constrain the text to the text attribute of listitem -->
       <text x="10" width="${parent.width}" text="${classroot.text}" fgcolor="0x4B4B4B" font="Arial"/>
</class>
 
// combo box xlass defined.

<class name="solidcombo" extends="combobox">
  <attribute name="widgettype" type="string" value="combo"/>
</class>

// instantialtion code is like this

      combo=new solidcombo(fieldholderview);
      combo.setAttribute('id',name);
      combo.setWidth(180);
      combo.setAttribute('defaulttext','choose one ....');
      combo.setAttribute('editable',false);
      droplistitem=new reconlistitem(combo);
      droplist.setWidth(180);


 The important point here is that if I use static combo box menaing if i do not instantiate listitem and combobox it will work fine.

thanks,
Ankit.
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to