TriggerField with Multiline Mode

Page 1 of 2 12 LastLast
  1. #1

    TriggerField with Multiline Mode

    Hey,
    Can we have Trigger Field with MultiLine Mode? I want to use it like textarea. We can align the triggers from BottomRight or TopRight. Possible?

    Thanks,
  2. #2

    RE: TriggerField with Multiline Mode

    Moving to Feature Requests.

    Geoffrey McGill
    Founder
  3. #3

    RE: TriggerField with Multiline Mode

    Hey Geoff,Have you guys considered this request?
  4. #4

    RE: TriggerField with Multiline Mode

    Hi,

    TextArea cannot use triggers because it is not inherited from TriggerField
    What about to use vertical toolbar, like in the following sample
    #/Toolbar/Menu/Layout_Toolbar/ (Vertical Toolbar In Panel)
  5. #5

    RE: TriggerField with Multiline Mode

    I thought triggerfield is inherited from TextField and so is TextArea.

    Vertical toolbar looks quiet heavy for such a small function...
  6. #6

    RE: TriggerField with Multiline Mode

    Hi,

    Here is the sample
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="padding: 10px">
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Panel runat="server" Border="false" Width="300" Height="150" Layout="Column">
                <Items>
                    <ext:TextArea runat="server" ColumnWidth="1" />
                    
                    <ext:Panel runat="server" Width="27" Border="false">
                        <TopBar>
                            <ext:Toolbar runat="server" Layout="Container" Flat="true">
                                <Items>
                                    <ext:Button runat="server" Icon="Accept" />
                                    <ext:Button runat="server" Icon="Add" />
                                    <ext:Button runat="server" Icon="Application" />
                                    <ext:Button runat="server" Icon="Bell" />
                                    <ext:Button runat="server" Icon="Bomb" />
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                    </ext:Panel>
                </Items>
            </ext:Panel>
        </form>
    </body>
    </html>
  7. #7

    RE: TriggerField with Multiline Mode

    I think to make the TriggerField render with a TextArea we would have to extend TriggerField and create a new component with a new TextMode="MultiLine". Similar to the <asp:TextBox>.

    It's possible, and we can add to our TODO list, although I can't say 100% for sure when this would get implemented.


    Geoffrey McGill
    Founder
  8. #8

    RE: TriggerField with Multiline Mode

    The benefit of triggerfield is that the button is inside the TextField. Though the typing width is same if the button is outside or inside, but atleast the border and width of Textfield is in align with other textboxes in the form.

    Are you sure this cannot be done?
  9. #9

    RE: TriggerField with Multiline Mode

    Another thing you can play with is the .AutoCreate property and pass in a custom DomHelper config object. I haven't tested to see what would happen, but theoretically something like that should work.

    You might have to play with the css of the triggers as well. I'm not sure how they will look if the background is stretched in height.


    Geoffrey McGill
    Founder
  10. #10

    RE: TriggerField with Multiline Mode

    Yes, thats what i thought, to add TextMode="Single" or "Multiline" to Triggerfield.

    Triggerfield renders textfield... Can you not just add the condition to render textarea or textfield based on above....


    I have'nt seen the code for triggerfield, so cant comment much.


    Wheneva you implement it, I will replace my code... Sooner the better ofcourse :)

Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Multiline tab
    By majestic in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 17, 2017, 4:25 PM
  2. DisplayField with Multiline Input
    By DougMcDonald in forum 1.x Help
    Replies: 2
    Last Post: Jul 28, 2011, 6:53 AM
  3. Problem with multiline textfield.
    By jmilton in forum 1.x Help
    Replies: 1
    Last Post: Oct 11, 2010, 2:20 PM
  4. [CLOSED] Multiline combobox
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 04, 2010, 2:26 PM
  5. Multiline Grid Cells
    By Duclos in forum 1.x Help
    Replies: 1
    Last Post: May 04, 2010, 5:48 AM

Posting Permissions