EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
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,380
    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, 6:44 AM
  2. Replies: 0
    Last Post: Mar 27, 2013, 12:38 PM
  3. [CLOSED] Creating Combobox + Store in CodeBehind
    By trezv in forum 1.x Premium Help
    Replies: 2
    Last Post: Jul 13, 2012, 8:19 PM
  4. [CLOSED] creating tabStrip in javascript
    By supera in forum 2.x Premium Help
    Replies: 2
    Last Post: May 10, 2012, 6:58 PM
  5. Replies: 12
    Last Post: Sep 20, 2011, 3:33 PM

Posting Permissions