Textbox with rightbuttons in grid componentcolumn
Hi,
I made a page with a simple grid some component columns and now i need an extra button on my first component column so i tought i'd use the textbox rightbuttons.
so now i have a textbox that's got a height of 50px
Code:
<ext:GridPanel runat="server" ID="GroupGrid" StoreID="GroupStore" Margin="10" ForceFit="true">
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:Button ID="Button1" runat="server" Text="Save" Icon="TableSave">
<DirectEvents>
<Click OnEvent="SaveGroups_DirectClick">
<ExtraParams>
<ext:Parameter Name="GridValues" Mode="Raw" Value="#{GroupGrid}.getRowsValues({selectedOnly : false})" Encode="true"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" Hidden="true" DataIndex="Id"></ext:Column>
<ext:ComponentColumn runat="server" DataIndex="Description" Header="Description" Editor="true">
<Component>
<ext:TextField runat="server">
<RightButtons>
<ext:Button ID="Button2" runat="server" Icon="ApplicationEdit" ></ext:Button>
</RightButtons>
</ext:TextField>
</Component>
</ext:ComponentColumn>
<ext:ComponentColumn runat="server" DataIndex="StartDate" Header="StartDate" Editor="true">
<Component>
<ext:DateField runat="server"></ext:DateField>
</Component>
</ext:ComponentColumn>
<ext:ComponentColumn runat="server" DataIndex="EndDate" Header="EndDate" Editor="true">
<Component>
<ext:DateField runat="server"></ext:DateField>
</Component>
</ext:ComponentColumn>
</Columns>
</ColumnModel>
</ext:GridPanel>
unless i use a fixed maxwidth of like 100px on this textbox i can't get it to show properly. is there any other way like using a container and putting a textbox and button inside? but how to do the datalinking to the textbox then?
anyway thanks in advance :)