1. #21
    Ext JS Premium Member cmeans's Avatar
    Join Date
    Jun 2010
    Location
    Chicago, IL USA
    Posts
    112
    Vote Rating
    7
    cmeans is on a distinguished road

      0  

    Default


    I'd be interested in this too...especially if there's support to avoid any potential memory leaks (or at least direction on how to implement that ourselves).

  2. #22
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
    m.mihailova is on a distinguished road

      0  

    Default problems with template changing

    problems with template changing


    I try to use CTemplate:

    Code:
    onGridpanelAfterLayout: function(abstractcontainer, layout, options) {
        var store = Ext.data.StoreManager.lookup('ObjectsStore');
    
        store.each(this.SetObjectClick, this);
    
        var objectsPanel = this.getObjectsPanel();
    
        var tpl = Ext.create('Skirtle.CTemplate', '<tpl for="." >', 'hello', '</tpl >');
    
        objectsPanel.columns[0].tpl = tpl;
    
        console.log(objectsPanel.columns[0].tpl);
    },
    in console I see the new template, but in browther I see the old one. The old is very simple too.

    When I change CTemplate to XTemplate it works ok, in browther I see new template of column.

    Thank you for you time
    Last edited by skirtle; 4 Mar 2013 at 2:11 AM. Reason: Reformat, original post was totally unreadable

  3. #23
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    @m.mihailova. You've not provided much context to your question so it's difficult to guess what's going on. Are you able to extract a complete, minimal test case?

  4. #24
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
    m.mihailova is on a distinguished road

      0  

    Default


    i have a simple project, simple data in json format, model and view with a gridpanel&lt;br&gt;GridPanel contains one template row&lt;br&gt;I need to use extra controls in templates for cross browther result.&lt;br&gt;so I try to change template of column in control&lt;br&gt;
    Code:
    &lt;div&gt;onGridpanelAfterLayout: function(abstractcontainer, layout, options) {&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var store = Ext.data.StoreManager.lookup('ObjectsStore');&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; store.each(this.SetObjectClick, this);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;var objectsPanel = this.getObjectsPanel();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;var tpl = Ext.create('Skirtle.CTemplate',&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;'&amp;lt;tpl for="."&amp;gt;',&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;'hello',&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;'&amp;lt;/tpl&amp;gt;'&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;objectsPanel.columns[0].tpl = tpl&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/span&gt;console.log(objectsPanel.columns[0].tpl);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; },&lt;/div&gt;
    &lt;br&gt;&lt;br&gt;in this example i only try to change the view of elements in a grid, but don't see it in browther

  5. #25
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      2  

    Default


    CTemplate version 1.1 is now available:

    http://skirtlesden.com/ux/ctemplate

  6. #26
    Sencha Premium Member
    Join Date
    Dec 2011
    Location
    London, UK
    Posts
    257
    Vote Rating
    8
    bseddon will become famous soon enough

      1  

    Default Using 'componentcolumn' with Sencha Architect

    Using 'componentcolumn' with Sencha Architect


    Great component. It's straight forward to have it work when using SA, it involves just 4 steps:

    Add a requires
    Update the application Paths
    Change the column xtype
    Add the renderer

    The only small downside is that SA cannot show a rendering of the column component in the designer.

    In these comments I assume you've downloaded both the Skirtle.CTemplate and Skirtle.grid.column.Component (http://skirtlesden.com/ux/component-column) and that you have save both into files that are accessible from your application.

    Step 1: Go to the App node then add 'Skirtle.grid.column.Component' to the list of required components (under the 'Architect' node.

    Step 2: The application needs to know how to find the file containing the component (and how the component finds CTemplate). Select 'LoaderConfig' under the 'App' node then click on the 'Paths' property in the inspector. Paths is an object containing the whole or part of a name of a component. My Paths properties looks like:

    {
    'Ext.ux':'./ux',
    'Skirtle.CTemplate':'./ux/CTemplate.js',
    'Skirtle.grid.column.Component':'./ux/ComponentColumn.js'
    }

    You can see that I've referenced both the column component and the template so when ExtJS looks for, say, Skirtle.CTemplate it will locate the file './ux/CTemplate.js'

    Step 3: Change the xtype for a column. I'll assume you've added a placeholder column to your grid. Select the column and enter 'componentcolumn' in the 'createAlias' property. This changes the xtype of the column.

    Step 4: The final step is to add the render. The example on the componentcolumn web page is good enough to get you started. At least it worked for me.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi