How to Create MultiCombo at client side?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    How to Create a MultiCombo at client side with js code?

    Hi everyone, I want to create multiCombo with javascript code dynamically.
    var setEditor = function (e) {
        var grdEditor;
        if(e.record.data.f1='dt1')
            grdEditor=new Ext.grid.GridEditor(new Ext.form.TextField());
        else if(e.record.data.f1='dt2')
            grdEditor=new Ext.grid.GridEditor(new Ext.form.MultiCombo()); // Ext.form.MultiCombo() undefined
        e.grid.getColumnModel().setEditor(e.column, grdEditor);
    }
    There is no problem with aspx code: <ext:MultiCombo>...</ext:MultiCombo>.
    But "new Ext.form.MultiCombo()" has a error :missing object.
    How could I create it with javascript code?

    zhang
    Last edited by zhangsir199; Aug 20, 2010 at 5:57 AM. Reason: more clear

Similar Threads

  1. [CLOSED] How I can create a CalendarPanel in client side?
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 18, 2012, 4:51 PM
  2. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  3. Replies: 4
    Last Post: Mar 19, 2010, 11:35 AM
  4. Create Simple Store and Bind to Grid Client-Side?
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Oct 30, 2009, 5:27 PM
  5. Replies: 0
    Last Post: Sep 17, 2009, 8:04 AM

Posting Permissions