Opened 8 years ago
Last modified 4 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
- create a TableContainer?
- add some rows
- startup
- add another row
- 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)
Change History (4)
Changed 8 years ago by
Attachment: | tctest.html added |
---|
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.11 |
---|---|
Owner: | set to dylan |
Status: | new → assigned |
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 5 years ago by
Milestone: | 1.11 → 1.12 |
---|
comment:3 Changed 4 years ago by
Milestone: | 1.13 → 1.15 |
---|
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.
test page source