[CLOSED] GetParentList property on ComboBox

  1. #1

    [CLOSED] GetParentList property on ComboBox

    I just observed this property on ComboBox, but was unable to figure out what its meant for? I placed a breakpoint insode the Fn for this property but the js method was never called.

    What exactly does this property do?


    Simultaneously, I also observed a new <Store> property on controls that can be bound to stores. Is the Store created through this nested property for Combobox, GridPanel etc. available normally like other independent stores, or is it available only as a nested property of the corresponding element on the client-side??
  2. #2

    RE: [CLOSED] GetParentList property on ComboBox

    Hi,

    I just observed this property on ComboBox, but was unable to figure out what its meant for?


    Here is ExtJS docs about GetListParent


    getListParent() : void<div class="mdesc" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; color: rgb(68, 68, 68); "><div class="long" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; display: block; line-height: 18px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Returns the element used to house this ComboBox's pop-up list. Defaults to the document body.</p>A custom implementation may be provided as a configuration option if the floating list needs to be rendered to a different Element. An example might be rendering the list inside a Menu so that clicking the list does not hide the Menu:<code style="font-style: normal; font-weight: normal; font-size: 12px; color: rgb(0, 0, 0); line-height: 16px !important; font-family: 'Lucida Console', 'Courier New', Courier, monospace; "><b style="font-weight: normal; color: rgb(128, 0, 128); ">var[/b] store = <b style="font-weight: normal; color: rgb(128, 0, 128); ">new[/b] Ext.data.ArrayStore({
    autoDestroy: true,
    fields: [<em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'initials'[/i], <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'fullname'[/i]],
    data : [
    [<em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'FF'[/i], <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'Fred Flintstone'[/i]],
    [<em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'BR'[/i], <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'Barney Rubble'[/i]]
    ]
    });

    <b style="font-weight: normal; color: rgb(128, 0, 128); ">var[/b] combo = <b style="font-weight: normal; color: rgb(128, 0, 128); ">new[/b] Ext.form.ComboBox({
    store: store,
    displayField: <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'fullname'[/i],
    emptyText: <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'Select a name...'[/i],
    forceSelection: true,
    getListParent: <b style="font-weight: normal; color: rgb(128, 0, 128); ">function[/b]() {
    <b style="font-weight: normal; color: rgb(128, 0, 128); ">return[/b] this.el.up(<em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'.x-menu'[/i]);
    },
    iconCls: <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'no-icon'[/i], <i style="font-weight: normal; font-style: normal; color: rgb(153, 153, 153); ">//use iconCls <b style="font-weight: normal; color: rgb(153, 153, 153); font-style: normal; ">if[/b] placing within menu to shift to right side of menu[/i]
    mode: <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'local'[/i],
    selectOnFocus: true,
    triggerAction: <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'all'[/i],
    typeAhead: true,
    width: 135
    });

    <b style="font-weight: normal; color: rgb(128, 0, 128); ">var[/b] menu = <b style="font-weight: normal; color: rgb(128, 0, 128); ">new[/b] Ext.menu.Menu({
    id: <em style="font-style: normal; font-weight: normal; color: rgb(0, 128, 128); background-color: rgb(238, 238, 238); ">'mainMenu'[/i],
    items: [
    combo <i style="font-weight: normal; font-style: normal; color: rgb(153, 153, 153); ">// A Field <b style="font-weight: normal; color: rgb(153, 153, 153); font-style: normal; ">in[/b] a Menu[/i]
    ]
    });</code><div class="mdetail-params" style="margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 12px; font-size: 12px; "><strong style="font-style: normal; font-weight: bold; display: block; margin-bottom: 3px; font-size: 11px; color: rgb(85, 85, 85); ">Parameters:[/b]<ul style="margin-top: 12px; margin-right: 12px; margin-bottom: 12px; margin-left: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: circle; list-style-position: inside; list-style-image: initial; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; list-style-type: circle; list-style-image: initial; ">None.[/list]<strong style="font-style: normal; font-weight: bold; display: block; margin-bottom: 3px; font-size: 11px; color: rgb(85, 85, 85); ">Returns:[/b]<ul style="margin-top: 12px; margin-right: 12px; margin-bottom: 12px; margin-left: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: circle; list-style-position: inside; list-style-image: initial; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; list-style-type: circle; list-style-image: initial; ">void[/list]





    For example see the following topic where GetListPanel helped to solve the issue
    http://forums.ext.net/showthread.php...=GetListParent




    I placed a breakpoint insode the Fn for this property but the js method was never called.
    Strange, If you defined the GetListParent function then it will be called by combo




    Simultaneously, I also observed a new <Store> property on controls that can be bound to stores. Is the Store created through this nested property for Combobox, GridPanel etc. available normally like other independent stores, or is it available only as a nested property of the corresponding element on the client-side??
    The inner property is added for comfortable development only. The store is still available via own ID on the client side (but the store defined in the control init config). Inline store has no difference comparing independent store

  3. #3

    RE: [CLOSED] GetParentList property on ComboBox

    Thanks for the reply vald. That cleared up everything I wanted to know!!!

Similar Threads

  1. Replies: 2
    Last Post: Sep 15, 2014, 2:58 PM
  2. [CLOSED] PageSize property of ComboBox control does not work
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 15, 2012, 7:37 PM
  3. [CLOSED] ComboBox lastQuery property missing from Ext.Net 1.1
    By bogc in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 03, 2012, 8:08 AM
  4. Replies: 1
    Last Post: Nov 17, 2010, 11:36 AM
  5. [CLOSED] [1.0] LabelAlign property for the combobox is not working
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2010, 9:52 AM

Posting Permissions