Initialize components based upon record properties
I would like to set some properties of my components, such as visibility, based upon the properties of the record the component is being rendered for. How can I do this?
Cheers
Adam
Strange behavior with combos in ComponentListView
I'm seeing some strange behavior when using combos as a component inside a ComponentListView. An additional EM element is being created inside of the combo wrapper DIV and the trigger IMG is being rendered as a child of this EM element.
The generated markup is shown below:
Code:
<dt style="width: 50%; text-align: left;">
<em unselectable="on" id="ext-gen336">
<div class="x-form-field-wrap x-form-field-trigger-wrap" id="ext-gen337" style="width: 220px;">
<input type="text" name="ext-comp-1131" id="ext-comp-1131" autocomplete="off" size="24" class="x-form-text x-form-field x-trigger-noedit" style="width: 0px;" readonly="">
<em xmlns="http://www.w3.org/1999/xhtml" id="ext-gen338">
<img class="x-form-trigger x-form-arrow-trigger" alt="" src="js/ext-3.3.0/resources/images/default/s.gif">
</em>
</div>
</em>
</dt>
If I change this line
Code:
var node = ns[i].getElementsByTagName('dt')[j].firstChild;
to
Code:
var node = ns[i].getElementsByTagName('dt')[j];
the combo is rendered correctly but I have some empty EM elements left in the DOM.
Does anybody know why this additional EM element is being created and how to resolve the issue cleanly?
Cheers
Adam
ComponentDataView in Grid column
Hi,
I have a requirement to put textbox and chechbox inside the same column of a editor grid.
I have used simple renderer to put HTML components in the column.
But the problem is that data entered in the textbox is not getting saved to store.
Can I use the componentDataView/ComponentListView in a editorgrid?
Can you pls show me how to implemet this is a Grid?
I am using extjs 3.3.1
complistview in Sencha Architect
Hi,
how can this be used in Sencha Architect?
I tried the following:
1. Create and include a js file with the code from the first post under "Ext.ux.ComponentListView"
2. Create Component View
3. Promote to Class
4. Give this new class the alias "complistview"
5. Add custom properties to the Component for "store", and "columns" and paste the values from the example in post 1.
There are no errors but also no list.
Am I doing something wrong?
Thanks