Login Register

field size

how can I get the size value from a TextBox text field

I know that many people have commented that the TextBox widgets change the field size. They can only be changed with a style sheet specifying the width. I was hoping to get the size that was set in the input field so I could change the width proportional to that rather than have to create a width for each field's id.

Here's what I've got so far.

function changeSizes() {
var custForm = dijit.byId("custForm");
dojo.every(custForm.getDescendants(), function(elem) {
var thisclass = elem.baseClass;
var thisname = elem.name;
var thisw = dojo.byId(thisname);

Grid inlineeditor max size

Hi guys!

Does anyone knows how to programmatically set the maximum length of inline field grid cell? I tried everything and don't have any more ideas.

Thank you in advance,
David

Syndicate content