-
28 Jul 2010 3:41 AM #51
Not sure. The check box is actually a custom check box that can toggle through three types of checks.
-
15 Feb 2011 8:34 PM #52
Initialize components based upon record properties
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
-
16 Feb 2011 12:30 AM #53Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
You could add a 'created' event to allow you to configure the component, e.g.:
Code:... r[j] = c; this.fireEvent('created', this, c, i, j); var node = ns[i].getElementsByTagName('dt')[j].firstChild; ...
-
17 Feb 2011 7:15 PM #54
-
15 Mar 2011 8:48 PM #55
Strange behavior with combos in ComponentListView
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:
If I change this lineCode:<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>toCode:var node = ns[i].getElementsByTagName('dt')[j].firstChild;the combo is rendered correctly but I have some empty EM elements left in the DOM.Code:var node = ns[i].getElementsByTagName('dt')[j];
Does anybody know why this additional EM element is being created and how to resolve the issue cleanly?
Cheers
Adam
-
26 Apr 2011 8:39 AM #56
While using a Ext Panel as a component of this component dataview, is it anyway possible to access the data inside the panel ? I am using this way:
I will have some combobox, textfields inside this 'Foo' panel and I need to show data of that corresponding record data in these fields.Code:items : [{ xtype : 'compdataview', store : store, itemSelector : 'div.image', tpl : '<tpl for="."><div class="image">{id}</div></tpl>', items : [{ xtype : 'panel', title : 'Foo', width : '100%', bodyStyle : { margin : '10px' }, height : 100 }] }]Swarnendu
Co-founder & Lead Architect @ Innofied
------------------
I blog at http://www.swarnendude.com
-
11 May 2011 1:20 AM #57
Mixed Content warning
Mixed Content warning
I have tried to use ComponentDataView in IE and i am getting mixed content warning (over SSL) on IE . Particularly on IE7. I have tried to debug the problem and its happening in renderItem method. Please help.
-
28 Jun 2012 1:23 AM #58
ComponentDataView in Grid column
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
-
5 Aug 2012 2:37 PM #59
complistview in Sencha Architect
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
-
8 Aug 2012 10:33 AM #60
No list
No list
Have you looked at the html source in firebug? Try putting some console.log statements in the render handler (in complistview file) and share your findings.


Reply With Quote
