PDA

View Full Version : dinamically created checkbox


johndoe
08-04-2005, 02:23 AM
I've created checkboxes runtime (script) but neither databinding nor sorting (inside a grid) work.

tmpObj = new checkbox(parent,{value:"$path{'@path_to_attribute'}"};

hqm
08-04-2005, 11:04 AM
Does calling

tmpObj.setDatapath('@path_to_attribute')

work?

lwz7512
08-04-2005, 05:40 PM
first define a variable name:datavariable;

then,new checkbox(checkboxparent,{value:'$path
{@'+datavariable+'''});

last, checkboxparent.setDatapath("datasource:/*");

not sure this method work, but i did it in runtime newed grid, and run!

have a try!

johndoe
08-29-2005, 03:19 AM
doesn't work..