1. #11
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    28
    Vote Rating
    0
    osolano is on a distinguished road

      0  

    Default Implementing TouchTreeGrid in New Project

    Implementing TouchTreeGrid in New Project


    Steve,

    Thank you for creating this component. I've been looking for ways to use grids in sencha architect and was having trouble with putting the touchgrid version.

    I wanted to ask you how what steps I need to take to use it? I saw the info on the help, and basically did the following:

    1. Create a new Touch 2.2 Project.
    2. Added the TouchTreeGrid.
    3. Added a Panel.
    4. Linked the TouchTreeGrid to the Panel.
    5. Set the Store in the Link with the following data:
    [
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'},
    {name:'Sample 1', category:'Category 1', type:'Type 1'}
    ]
    6. Added columns in the Link with the following:

    [
    {header:'name',dataIndex:'name',width:'25%'},
    {header:'category',dataIndex:'category',width:'25%'},
    ]

    7. Copied Resources to the project, and now get this error:
    Uncaught TypeError: Object #<Object> has no method 'setItemTpl' TouchTreeGrid.js:551


    Any clues?

  2. #12
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Boston, MA
    Posts
    51
    Vote Rating
    2
    steve_luken is on a distinguished road

      0  

    Default


    Hi, as mentioned in our private message 'store' config needs to remain in TouchTreeGrid.js for the component to work. When specifying store in a linked instance, an object edit window will appear with two braces {}. To enter a store reference as a string simply delete the {} and type the store name. It will appear as a string when you view the code. I implemented this way so that stores could be defined directly within the linked instance as an object if desired...but I realize this can easily cause confusion. "Notes on Implementation" in "TouchTreeGrid - Documentation.pdf" (pages 19-20) discuss this along with the minimum required configs.

    Let me know how it goes.

    Best regards,
    Steve

  3. #13
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    9
    Vote Rating
    0
    PpylesSAC is on a distinguished road

      0  

    Default Thanks

    Thanks


    I've been playing around with your TouchTreeGrid today and just wanted to say this is pretty nice and thanks for putting it out there.

    And because we use Architect here I'm extremely impressed that you released the importable component as well. Makes life easier.

    Anyway I just wanted to make sure you knew your efforts were appreciated

    Thanks,
    Shawn

  4. #14
    Sencha User
    Join Date
    Jun 2009
    Posts
    102
    Vote Rating
    6
    campersau1 is on a distinguished road

      0  

    Default


    Thanks this looks very great!
    It would be cool if the treegrid can handle selections of rows.

  5. #15
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Boston, MA
    Posts
    51
    Vote Rating
    2
    steve_luken is on a distinguished road

      0  

    Default Row selection in TreeGrid

    Row selection in TreeGrid


    Hi,

    Row selection of expanded 'leaf' rows is supported by setting configs:

    disableSelection: false
    mode: 'MULTI' (if you want to support multi-selection)

    Side effect is that the expandable category row, when selected, will also show the selected CSS colors by default. That should be avoidable via CSS .. I'll play with it and get an example out there if I get it working.

    I'm currently working on some cool new features with examples and will post in next couple of days. One of the new features is to disable expand/collapse when you want to show a fixed expanded list. There might then be more of a need for highlighted row selection of the "disabled" category row.

    Best regards,
    Steve

  6. #16
    Sencha User
    Join Date
    May 2013
    Posts
    37
    Vote Rating
    1
    kidmanmatch is on a distinguished road

      0  

    Default Filter accordion list

    Filter accordion list


    Am using your accodion list in one of my project. Its really great plugin. Am trying to do some filtering in accordion panel using Button. Sorting is working but the expanded node is not showing the child nodes. When i click the parent node nothing display on the expand tab. This is my sorting button

    {
    xtype:'button',
    text: 'Investors',
    handler: function () {
    var sto = Ext.getStore('Contactsstore');
    console.log(sto.getAt(0));
    // clear all existing filters
    sto.clearFilter();
    sto.filter('title', 'Investors');
    }
    },

    Please help guide me in right direction. Your help is much appreciated.. thanks in advance

  7. #17
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Boston, MA
    Posts
    51
    Vote Rating
    2
    steve_luken is on a distinguished road

      0  

    Default TreeStore filtering

    TreeStore filtering


    I found a few threads out there and Sencha Support responded that TreeStores don't support filtering:
    http://www.sencha.com/forum/showthread.php?257019
    http://www.sencha.com/forum/showthread.php?253644

    "The NestedList uses TreeStore but each child List uses a Node store so you can filter the Node store on the list for the node. It's not the simplest for the TreeStore."

    Check out the available methods:
    http://docs.sencha.com/touch/2.2.1/#....NodeInterface

    I'll also take a look at this and post an example if I can. An alternative would be to rebuild your store server-side, within JavaScript, etc...

  8. #18
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Boston, MA
    Posts
    51
    Vote Rating
    2
    steve_luken is on a distinguished road

      0  

    Default Multiple Enhancements and new Examples

    Multiple Enhancements and new Examples


    TouchTreeGrid_Dow2012horiz.jpg
    NEW FEATURES AND EXAMPLES

    - Customizable column shading when clicking on header column to sort ASC/DESC.
    (Example: Lists => Basic Horiz and Dynamic)

    - Example how to dynamically define Grid Columns, create Store and load data
    from single AJAX server call in less than 40 lines of code.
    (Example: Lists => Dynamic)

    - Example of custom styled multi-row header
    (Example: Lists => Horiz and Dynamic)

    - Example how to trap tap event on any cell within a grid
    (Example: Lists => Horiz -and- Dynamic ... tap on CloseDate cell for sample popup)

    - Examples of how to implement CSS for row selection for 3 different scenarios:
    1) Row selection for simple lists
    (Example: Lists => Basic)
    2) Row selection for TreeGrid leafs plus nodes also demonstrating new config where
    expand/collapse feature can be disabled (disableExpandCollapse=true config).
    (Example: Tasks => Tasks#2)
    3) Row selection for TreeGrid leafs (only) where disableExpandCollapse=true and
    scrolling is disabled (i.e. known list sizes)
    (Example: Tasks => Tasks#3)

    - Support option to define different column layouts/widths/contents for
    Category rows vs. Detail rows (TreeGrids). Essentially implementing
    expandable/collapsible "grouper" feature with TreeGrid allowing for
    custom long text on category row.
    (Example: Lists => Grouper2 ... Touch 2.1 example only for now)

    - Example of custom expand/collapse controller function for large treestore to circumvent performance issues with Touch Node expand/collapse methods -or- to support server-side column sorting.
    (Example: Lists => Grouper#2)

    - All new examples found in ./TouchTreeGrid_Advanced_22/ directory.
    Refer to "TouchTreeGrid - documentation.pdf" (Summary of Provided Examples) in download for further discussion on each of the examples.


    OTHER NEW FEATURES:
    - Config to control column width of expand/collapse arrow (default is 4% but 2% would
    suffice for tablet implementations)

    - More developer control over column styling (refer to CommitLog.txt in download)

    - Providing source code on how to generate TreeStore from "unioned" JSON flat file containing ID and PARENT_ID columns. Refer to "TouchTreeGrid - Documenation.pdf"[Lists => Grouper#2 -TreeGrid serving ‘grouper’ feature with expand/collapse] for details on use.

    - Cleaned up example code to be more readable

    - Significant documentation updates to "TouchTreeGrid - Documentation.pdf"

    Source code found at: https://github.com/swluken/TouchTreeGrid

    See working Touch 2.2 Demo at:
    http://www.lincolnwaterfrontrentals.com/Sencha/TTG_Slider/app.html?deviceType=Phone
    http://www.lincolnwaterfrontrentals.com/Sencha/TTG_Slider/app.html?deviceType=Tablet

    See 2.2 Sample code run under 2.1 framework:
    (includes Example: Lists => Grouper#2)
    http://www.lincolnwaterfrontrentals....viceType=Phone
    http://www.lincolnwaterfrontrentals....iceType=Tablet


    Refer to CommitLog.txt for important upgrade steps to prior versions.


    Refer to "Appendix C - Upgrading TouchTreeGrid component" in
    "TouchTreeGrid - Documentation.pdf" for how to upgrade your
    component within Architect.

  9. #19
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Boston, MA
    Posts
    51
    Vote Rating
    2
    steve_luken is on a distinguished road

      0  

    Default TouchTreeGrid for Slide Navigation + TreeStore Filtering

    TouchTreeGrid for Slide Navigation + TreeStore Filtering


    TouchTreeGridSliderMenuPhone.jpg


    NEW FEATURES AND EXAMPLES


    - New set of examples that utilize TouchTreeGrid component as
    Accordion Slide Navigation Menu (i.e. Facebook style menu, but collapsible)
    for Phones and as scrolling collapsible category menu for Tablets.
    ** Refer to directory ./TTG_Slider/. in download (Touch 2.2)
    > All menu items easily defined in store
    > Scrolling navigation menu with spring disabled such that user
    can not scroll past top or bottom of list.

    - Example of easy to implement TreeStore filter solution. There are a few
    forum threads suggesting Sencha does not correctly support TreeStore filtering for
    Touch or EXTJS. This example utilizes provided TreeStore generation algorithm
    to rebuild TreeStore from saved array applying custom filter conditions.
    > Census Filter Ex#1
    (refer to "TouchTreeGrid - Documentation.pdf" for this example).

    - Examples of embedded images within grid cells
    > Sliding Menu => PNG file displayed on Category rows
    > Project Tree Examples => Project #3 displays checkmarks
    (Slide Navigation example only)

    - Example of leaf row rendering function using styleContentRow config:
    > Project Tree Examples => Project #3 rows shaded green where done
    > Use styleCategRow config to style category rows

    - Example of cell rendering function using CSS selector as opposed to Styles (Basic List #2).
    Allows red/green cells to display as white text with blue background when selected.

    - Added logic to differentiate handling of list disclose event vs. item tap as
    tap of new Touch 2.2 disclosure icon triggers both events causing category rows
    to expand/collapse when disclose event was intended.

    - Added logic to not allow expand/collapse of specific node if expandable=false
    for store defined node.

    - Support optional column[] array CLS references in lieu of Styles. Example:
    cls, sortedCls, categCls, categSortedCls, headerCls, headerSortedCls
    instead of (or in addition to) existing style equivalents:
    style, styleSorted, categStyle, categStyleSorted, headerStyle, headerStyleSorted
    > Lists => Dynamic
    Refer to ./data/dow2012dynamicCss.json for css-based column definitions

    - Support different CSS selectors for each category level.
    Default selector is ".touchtreegrid-list-categ". New config categCssArr[]
    allows for specification of different CSS selectors for each level in same
    way that categColorArr[] allows for basic color shading.
    > Projects => Ex #2
    > First category level in white italics using custom selector for that level.
    Remaining levels use default selector.


    - Corrected implementation of Grouper #2 example to work in Touch 2.2
    Issue found was that in 2.2 you can't use same Model for Store and a TreeStore
    (else you will observe strange behaviour when bouncing between two views
    configured as such)

    - All new Slider Menu examples found in ./TTG_Slider/ directory.
    Refer to "TouchTreeGrid - documentation.pdf" (Summary of Provided Examples) in download for
    further discussion on each of the examples.

    - "TouchTreeGrid - Documentation.pdf" updated for new examples and Slider Menu implementation.

    Refer to CommitLog.txt for update summary.


    Refer to "Appendix C - Upgrading TouchTreeGrid component" in
    "TouchTreeGrid - Documentation.pdf" for how to upgrade your
    component within Architect.


    PLANNED ENHANCEMENTS:

    - Column sorting within TreeGrid categories.
    - Multi-column sorting feature
    - Support initially sorted shading feature
    - Column show/hide/add/update example with accompaning methods
    - More renderer function examples
    - Easy config options to auto-add buttons to footer to "auto-display" different sets of columns
    (or provide methods for custom buttons)
    - Support for editable cells
    - Possible support for locked columns
    - Seeking interest on supporting config option to use Ext.dataview.DataView vs. Ext.dataview.List

  10. #20
    Sencha User
    Join Date
    Aug 2011
    Posts
    10
    Vote Rating
    0
    raulm3 is on a distinguished road

      0  

    Default Bug Dynamic Example

    Bug Dynamic Example


    Hi, in "Dynamic" example, vertical scrolling is not working properly, you can't see all the rows.


    bug.jpgScreenshot_2013-06-18-13-10-09.jpg

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