1. #1
    Sencha User Monkee's Avatar
    Join Date
    Oct 2009
    Location
    Woking, UK
    Posts
    17
    Vote Rating
    1
    Monkee is on a distinguished road

      0  

    Default Ext.ux.grid.column.ActionButtonColumn

    Ext.ux.grid.column.ActionButtonColumn


    Simple Ext4 plugin to render button(s) inside a grid cell.

    Github: https://github.com/lucianlature/Ext....onButtonColumn
    Demo: http://lucian.lature.net/extjs/demo/ActionButton/

    Any contributions of testing, improvements or other constructive feedback are greatly appreciated.
    Enjoy!

    Update:
    - 12/06/2011: two options added: iconIndex (field name of the field of the grid store record that contains css class of the iconCls to show.) and hideIndex (field name of the field of the grid store record that contains hide flag).
    Last edited by Monkee; 12 Jun 2011 at 5:14 AM. Reason: plugin updated

  2. #2
    Sencha User atian25's Avatar
    Join Date
    Oct 2008
    Location
    china
    Posts
    114
    Vote Rating
    2
    atian25 is on a distinguished road

      0  

    Default


    good job.

    could be better if support hideIndex, iconIndex just like RowActions
    @from: china
    @web: http://atian25.iteye.com
    @extensions: (extjs 4.x)
    * Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
    * Ext.ux.button.AutoRefresher
    * Ext.ux.form.field.DateTime

  3. #3
    Sencha User Monkee's Avatar
    Join Date
    Oct 2009
    Location
    Woking, UK
    Posts
    17
    Vote Rating
    1
    Monkee is on a distinguished road

      0  

    Default @atian25

    @atian25


    @atian25: Plugin updated. Hope this helps.
    Last edited by Monkee; 12 Jun 2011 at 5:20 AM. Reason: misc

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    107
    Vote Rating
    0
    foxmarco is on a distinguished road

      0  

    Default


    why don't add the ability to load the action button via ajax call.

    Any action has an ID, the ajax call get all buttons that should be display (only!).

    Bye

  5. #5
    Sencha User atian25's Avatar
    Join Date
    Oct 2008
    Location
    china
    Posts
    114
    Vote Rating
    2
    atian25 is on a distinguished road

      0  

    Default


    good job.

    some issues:
    1. support global handler,not only item.handler
    2. i got an error "Uncaught TypeError: Cannot call method 'apply' of undefined" when listen to click event
    3.sometime hideIndex is not enough, hideFunction(record) could be better
    4.should copy item's cfg to button's cfg, cause need more feature of btn, such as tooltip, menu...
    5.i wonder why me.renderer is an anonymous function?
    @from: china
    @web: http://atian25.iteye.com
    @extensions: (extjs 4.x)
    * Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
    * Ext.ux.button.AutoRefresher
    * Ext.ux.form.field.DateTime

  6. #6
    Sencha User
    Join Date
    May 2011
    Location
    Manchester, United Kingdom
    Posts
    19
    Vote Rating
    0
    kreeve_ctisn is on a distinguished road

      0  

    Default


    Hi,

    noticed that the buttons were being left behind after destruction, so have added in a track for them.
    Also needed/wanted an additional class on the buttons so added option to pass that through. I have issued a pull request on git hub with the changes.

    Small question in regards to using this within an Ext MVC app where the grid is a view. How can i bind to the buttons after the fact since the buttons aren't actually children of the grid.
    I've tried using the selector:
    Code:
    gridpanel button
    but this fails to get an actual buttons to bind on. Is there any way to achieve this?

    Thanks

  7. #7
    Sencha User
    Join Date
    May 2011
    Location
    Manchester, United Kingdom
    Posts
    19
    Vote Rating
    0
    kreeve_ctisn is on a distinguished road

      0  

    Default


    Hi, Not sure if/when will get a reply to this.

    Will investigate the issues and see what i can come up with and post it to my github account which can be found here: http://github.com/BinaryKitten/Ext.plugin.extjs4.ActionButtonColumn

    Have added the following to Monkee's Version:
    • list of buttons so that we can clean up after grid destruction
    • buttons can now have contexts attached to their handlers, pass context as config item

    Last Update: June 24, 2011

  8. #8
    Sencha User
    Join Date
    Jun 2011
    Posts
    4
    Vote Rating
    0
    sureshsk is on a distinguished road

      0  

    Default grid column

    grid column


    If you ever wanted to use local storage for whatsoever reason (e.g. offline fallback, code examples without need for server-side middleware and database, etc), chances are you're familiar with the diversity of options. WebSQL database being ditched from HTML5 draft in favor to IndexedDB highly suggest the IDB is the option for offline storage.

    Usage cases for local (client side) databases and this proxy are:
    - caching infrequently changed data (ComboBox entries, settings, localization, etc.)
    - fast and easy code samples that don't require server round trips and the whole server side architecture
    - offline fallback (although sencha.io is actually a preferred way of doing this)

    I was initially uncertain to try something non-SQL-like, but then learned that IndexedDB is so cool and JavaScript oriented that I couldn't just close my eyes on it. Also, it's asynchronous, therefore have your callbacks and events at hand.

    To make things even easier I created a proxy for IDB so that you can use all that goodness in your Ext JS 4 models and stores without extra effort.
    designer software

  9. #9
    Sencha User
    Join Date
    May 2011
    Location
    Manchester, United Kingdom
    Posts
    19
    Vote Rating
    0
    kreeve_ctisn is on a distinguished road

      0  

    Default


    Thanks for your comment sureshsk, but it is off the topic of this thread.

  10. #10
    Sencha User Monkee's Avatar
    Join Date
    Oct 2009
    Location
    Woking, UK
    Posts
    17
    Vote Rating
    1
    Monkee is on a distinguished road

      0  

    Default


    @kreeve_ctisn: Your pull requests were merged. Thanks for your contribution!...

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..."