TriggerField with Multiline Mode
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
12»»
TriggerField with Multiline Mode
Subscribe
Last Login: 7/2/2010 4:00:04 PM
Posts: 356,
Posted 3/4/2010 11:48:03 AM

Group: Coolite Premium Member & Early Adopter
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,

Amit Pareek
Web Developer,
CakeWalk IT Solutions
Last Login: 7/8/2010 1:50:34 AM
Posts: 4,722,
Posted 3/4/2010 12:21:59 PM

Group: Core Development Team
Moving to Feature Requests. 

--
Geoffrey McGill
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/2/2010 4:00:04 PM
Posts: 356,
Posted 3/5/2010 11:28:53 AM

Group: Coolite Premium Member & Early Adopter
Hey Geoff,
Have you guys considered this request?

Amit Pareek
Web Developer,
CakeWalk IT Solutions
Last Login: 7/5/2010 10:10:13 AM
Posts: 7,853,
Posted 3/5/2010 11:35:35 AM

Group: Core Development Team
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)

--
Vladimir Shcheglov
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/2/2010 4:00:04 PM
Posts: 356,
Posted 3/5/2010 11:38:57 AM

Group: Coolite Premium Member & Early Adopter
 I thought triggerfield is inherited from TextField and so is TextArea.

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

Amit Pareek
Web Developer,
CakeWalk IT Solutions
Last Login: 7/5/2010 10:10:13 AM
Posts: 7,853,
Posted 3/5/2010 11:39:52 AM

Group: Core Development Team
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>



--
Vladimir Shcheglov
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/8/2010 1:50:34 AM
Posts: 4,722,
Posted 3/5/2010 11:49:37 AM

Group: Core Development Team
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
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/2/2010 4:00:04 PM
Posts: 356,
Posted 3/5/2010 11:51:27 AM

Group: Coolite Premium Member & Early Adopter
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?

Amit Pareek
Web Developer,
CakeWalk IT Solutions
Last Login: 7/8/2010 1:50:34 AM
Posts: 4,722,
Posted 3/5/2010 11:55:07 AM

Group: Core Development Team
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
Coolite Inc.
Development Team
Skype : geoffrey.mcgill
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: 7/2/2010 4:00:04 PM
Posts: 356,
Posted 3/5/2010 11:56:18 AM

Group: Coolite Premium Member & Early Adopter
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

Amit Pareek
Web Developer,
CakeWalk IT Solutions
« Prev Topic | Next Topic »
12»»
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -5:00, Time now is 8:53pm