Opened 6 years ago

Last modified 2 years ago

#16357 assigned defect

tablecontainer addchild method not rerendering ?

Reported by: telferm57 Owned by: dylan
Priority: undecided Milestone: 1.15
Component: DojoX Layout Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

Browsers: FF 16.0.2, IE 8.0.6001 OS: XP SP3

  1. create a TableContainer?
  2. add some rows
  3. startup
  4. add another row
  5. new row not rendered in table container unless I use tableContainer.layout)():

<body class="claro"> <div id="telBlock"></div> <script>

require(["dijit/layout/TabContainer",

"dojo/ready","dojo/dom-construct",

"dijit/form/TextBox","dijit/form/Select","dojo/_base/lang","dojo/dom","dojo/dom-attr", "dojox/layout/TableContainer","dijit/registry", "dijit/_Widget" ], function(TabContainer?, ready,domConstruct, TextBox?, Select, lang, dom, attr, TableContainer?, Memory, registry){

ready(function(){ create a table,

var phoneTab = new TableContainer?( {

cols: 2, customClass:"phoneTab", "labelWidth": "150"

});

phoneTab.placeAt("telBlock"); add a child to it

var tel3 = new dijit.form.TextBox?({label: "Tel3 ", id:"tel3"}); phoneTab.addChild(tel3);

render phoneTab.startup();

add another child var tel4 = new dijit.form.TextBox?({label: "Tel4 ", id:"tel4"});

phoneTab.addChild(tel4);

phoneTab.layout(); will not render without this

}); end ready

}); end require

</script>

Attachments (1)

tctest.html (1.9 KB) - added by telferm57 6 years ago.
test page source

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by telferm57

Attachment: tctest.html added

test page source

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.11
Owner: set to dylan
Status: newassigned

I will review and see if this is an issue. That said, the provided test case doesn't call startup on the TextBox? either.

comment:2 Changed 3 years ago by dylan

Milestone: 1.111.12

comment:3 Changed 2 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.