[CLOSED] Mulitple textbox in Standard prompt dialog

  1. #1

    [CLOSED] Mulitple textbox in Standard prompt dialog

    Is it possible to achieve Mulitple textbox in Standard prompt dialog?

    Or do I need to create my own with ext:window.

    Martin
    Last edited by Daniil; Nov 29, 2010 at 7:57 AM. Reason: [CLOSED]
  2. #2
    Hi,

    There is the optional multiline parameter.

    Example
    Ext.Msg.prompt("Title", "Message", null, null, true)
    See also
    http://dev.sencha.com/deploy/dev/doc...&member=prompt
  3. #3
    Hehe...sorry. I need to explain better.

    Is is possible to have multiple textboxeS in the prompt:

    For example
    Name: __________
    Email: __________

    I've seen the multilineversion, but I need the multifield version :)

    Martin
  4. #4
    Hi,

    Oh, now I understand your requirement. Yes, there is no such feature.

    It can look something like this (rough example)

    Example
    Ext.Msg.getDialog().add({xtype: "textfield", id: "tf1"})
    Ext.Msg.getDialog().doLayout()
    
    Ext.Msg.prompt("Title", "Message");
    To show common alert message (Ext.Msg.alert()) it needs to remove added fields

    Example
    Ext.Msg.getDialog().remove("tf1");
    Ext.Msg.alert("Title", "Message")
    Or, sure, you could implement your own component. As for me, it's better.

Similar Threads

  1. [CLOSED] Which accessibility standard supported by Ext.Net
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 11, 2012, 5:11 PM
  2. [CLOSED] Emulating a standard DropDownList
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 05, 2009, 7:53 PM
  3. Get the value from prompt dialog and save
    By CoolNoob in forum 1.x Help
    Replies: 5
    Last Post: Oct 23, 2009, 2:13 PM
  4. GridPanel with Image Commands, mulitple fires
    By rthiney in forum 1.x Help
    Replies: 1
    Last Post: Aug 11, 2009, 1:50 PM
  5. Replies: 1
    Last Post: Dec 25, 2008, 6:32 AM

Posting Permissions