[Laszlo-user] How to override private attribute in grid component?

lwz7512 rabbit69 at 126.com
Mon Jun 5 21:25:37 EDT 2006


laszlo-user,hi!

	 I need to create a dynamic grid according to dynamic data with different number of column.
I made it work by destroying the existing grid and new a grid when data loaded.
But if I want to modify the grid and gridtext attribute,I must modify the source code of component in lps/component/lz directory and can not coustom my own grid and gridtext!

 for example:
  <class name="mygridtext" extends="gridtext">
     <attribute name="width" value="150">
     <attribute name="editable" value="false">
     <attribute name="sizable" value="false">
     <atribute name="sortable" value="false">
  </class>
  <class name="mygrid" extends="grid">
     <!--- @keywords private -->
     <attribute name="_columnclass" value="mygridtext" />
  <class/>

   but,debugger report undefined mygridtext variables?
   why?
   How can I do with this?
   any help will be great appreciated!

with regards        
 				

        lwz7512
        rabbit69 at 126.com
          2006-06-06



More information about the Laszlo-user mailing list