EXT.NET 3.1 RELEASED! With Tablet Support!
We have been working hard and are happy to announce the release of Ext.NET 3.1. Click here for a full list of changes and make sure you visit our download page now to get the latest version.
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
    Object.NET + Ext.NET Vladimir's Avatar
    Join Date
    Mar 2008
    Location
    Saint-Petersburg, Russia
    Posts
    15,443
    Store is required, what exactly troubles with a store do you have?
    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
    Sr. Developer

  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?
    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] Creating Combobox + Store in CodeBehind
    By trezv in forum 1.x Premium Help
    Replies: 3
    Last Post: Mar 12, 2015, 1:41 PM
  2. [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
  3. Replies: 0
    Last Post: Mar 27, 2013, 11:38 AM
  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