Hybrid View

  1. #1
    Sencha User
    Join Date
    Jul 2009
    Posts
    16
    Vote Rating
    0
    sormy is on a distinguished road

      0  

    Default [3.x] Ext.ux.ItemSelectorEx

    [3.x] Ext.ux.ItemSelectorEx


    I have created Ext.ux.ItemSelector analog but with better rendering layout and it is working better as field. Ext.ux.ItemSelectorEx support anchor layout, one store with available variants, value describe selected items, filters for both sides and key navigation.
    Attached Images
    Attached Files

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13
    Vote Rating
    0
    mathos is on a distinguished road

      0  

    Default


    This is VERY NICE !!!!
    I did a few modifications, icons, and JSON store for not only the From but also the To selector.
    Also I used multiSelect: true instead of singleSelect: true, and I have done some coloring (light-red-ish BG on FROM and light-green-ish BG on To listview's) and a colored border around it. The icons were different.

    This was, other than the modifications, a real timesaver and just provided almost what I needed.

    THANKS!!!!!

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    1
    Vote Rating
    0
    valani is on a distinguished road

      0  

    Default Great implementation

    Great implementation


    Thanks for posting this. It worked right away in my complex panel setup.

  4. #4
    Sencha User Cédric VIDREQUIN's Avatar
    Join Date
    May 2011
    Posts
    12
    Vote Rating
    0
    Cédric VIDREQUIN is on a distinguished road

      0  

    Question Question about setValue()

    Question about setValue()


    Hello,

    I discovered this pluggin and it is great !

    How can I programatically set the selected items into my script ?

    I tried to use setValue() but it is not defined ?

  5. #5
    Sencha User Cédric VIDREQUIN's Avatar
    Join Date
    May 2011
    Posts
    12
    Vote Rating
    0
    Cédric VIDREQUIN is on a distinguished road

      0  

    Lightbulb


    I found a way to set the expected values :
    1) I added an 'id' property to the itemSelector object :
    Code:
    mySelector = new Ext.form.FormPanel({
             title: 'Title',
             items:[{
              id: 'mySelector',
           xtype: "itemselectorex",
           name: 'itemselector', 
           imagesDir: getServerURL() + '/resources/images/', 
           anchor: '90%',
           store: myListStore,
           valueField: 'id', 
           displayField: 'title'
          }]
         });
    2) I use the id to find the expected component :
    Code:
    Ext.getCmp('mySelector').setValue('toto,tata, tutu, titi');

  6. #6
    Sencha User Cédric VIDREQUIN's Avatar
    Join Date
    May 2011
    Posts
    12
    Vote Rating
    0
    Cédric VIDREQUIN is on a distinguished road

      0  

    Question Trouble with IE8

    Trouble with IE8


    Hello all,

    I have another problem, this pluggin words perfect with FF but it fails with IE8

    Erreur d'exécution inconnue (~ "Unknown execution error" in EN)
    extensible-all-debug.js line 651 character 13
    Here is a snippets of the code arround the given line :
    Code:
    // This heinous override is required to fix IE9's removal of createContextualFragment.
    // Unfortunately since DomHelper is a singleton there's not much of a way around it.
    Ext.apply(Ext.DomHelper,
    function(){
     (...)
        pub = {
    (...)
            /**
             * Creates new DOM element(s) and overwrites the contents of el with them.
             * @param {Mixed} el The context element
             * @param {Object/String} o The DOM object spec (and children) or raw HTML blob
             * @param {Boolean} returnElement (optional) true to return a Ext.Element
             * @return {HTMLElement/Ext.Element} The new node
             */
            overwrite : function(el, o, returnElement){
                el = Ext.getDom(el);
                el.innerHTML = createHtml(o);
              return returnElement ? Ext.get(el.firstChild) : el.firstChild;
            },        createHtml : createHtml
        };
        return pub;
    }());
    It seems that the "createHtml()" function works but that the result cannot be put into el.innerHTML ...

    Does anyone have an idea please ?


    EDIT : I found the reason why it failed by myself ! I was adding the ItemSelector into a FormPanel like in the example ... but this FormPanel wass added into a form ... and a form into a form is bad !

    Maybe it will help someone else ...
    Last edited by Cédric VIDREQUIN; 25 Oct 2011 at 11:57 PM. Reason: I found the solution by myself

  7. #7
    Sencha User
    Join Date
    Feb 2011
    Posts
    3
    Vote Rating
    0
    vinay_vrrc is on a distinguished road

      0  

    Default


    I am using ExtJS 4 and the plugin doesnt work because ListView is no longer supported by ExtJs4.Is there a fix for this?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar