Results 1 to 3 of 3

Thread: Creating Combobox in Javascript without store

  1. #1
    Member
    Join Date
    Nov 2011
    Posts
    16

    Creating Combobox in Javascript without store

    Hi,
    Is there any simple way to dynamically create a combo from javascript without using a store? I tried all possible ways and it doesn't work correctly

  2. #2
    Ext.NET - Dev Team Vladimir's Avatar
    Join Date
    Mar 2008
    Location
    Russia
    Posts
    15,332
    Store is required, what exactly troubles with a store do you have?
    Code:
    var combo = new Ext.form.ComboBox({
        typeAhead: true,
        triggerAction: 'all',
        lazyRender: true,
        mode: 'local',
        store: new Ext.data.ArrayStore({
            id: 0,
            fields: ['myId', 'displayText'],
            data: [
                [1, 'item1'],
                [2, 'item2']
            ]
        }),
        valueField: 'myId',
        displayField: 'displayText'
    });
    Vladimir Shcheglov
    Ext.NET, Inc.
    Development Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | Twitter | Jobs

  3. #3
    Member
    Join Date
    Nov 2011
    Posts
    16
    Thanks a lot. Working like a chime
    Quote Originally Posted by Vladimir View Post
    Store is required, what exactly troubles with a store do you have?
    Code:
    var combo = new Ext.form.ComboBox({
        typeAhead: true,
        triggerAction: 'all',
        lazyRender: true,
        mode: 'local',
        store: new Ext.data.ArrayStore({
            id: 0,
            fields: ['myId', 'displayText'],
            data: [
                [1, 'item1'],
                [2, 'item2']
            ]
        }),
        valueField: 'myId',
        displayField: 'displayText'
    });

Similar Threads

  1. [CLOSED] How to change combobox store in javascript ?
    By imaa in forum 1.x Premium Help
    Replies: 13
    Last Post: Apr 01, 2013, 5:44 AM
  2. Replies: 0
    Last Post: Mar 27, 2013, 11:38 AM
  3. [CLOSED] Creating Combobox + Store in CodeBehind
    By trezv in forum 1.x Premium Help
    Replies: 2
    Last Post: Jul 13, 2012, 7:19 PM
  4. [CLOSED] creating tabStrip in javascript
    By supera in forum 2.x Premium Help
    Replies: 2
    Last Post: May 10, 2012, 5:58 PM
  5. Replies: 12
    Last Post: Sep 20, 2011, 2:33 PM

Posting Permissions