PDA

View Full Version : Multi Column Dropdown



Hari
Feb 03, 2010, 12:32 PM
Hi,

I have a requirement to display data in multi column dropdown. I don't find any suitable controls in the coolite suite. Is there any way to achieve it?

geoffrey.mcgill
Feb 03, 2010, 12:50 PM
Hi Hari,

In the upcoming v1.0 release we're including the new <ext:DropDownField> component which includes functionality to add another component within the drop down panel, including a GridPanel, TreePanel, etc.


With v0.8.x I don't think there is an equivalent solution.

Vladimir
Feb 03, 2010, 1:02 PM
Hi,

Use Combo with Template (like in the CustomerDetails page of the mvc.ext.net project)



<ext:ComboBox
ID="txtCustomers"
runat="server"
EmptyText="Select Customer"
TypeAhead="true"
ForceSelection="true"
StoreID="dsCustomers"
DisplayField="CompanyName"
ValueField="CustomerID"
MinChars="1"
ListWidth="300"
ItemSelector="tr.list-item">
<Template ID="Template1" runat="server">
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="txtCustomers-list">
<tr>
<th>Company</th>
<th>Contact Name</th>
</tr>
</tpl>
<tr class="list-item">
<td style="padding:3px 0px;">{CompanyName}</td>
<td>{ContactName}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Template>
<Triggers>
<ext:FieldTrigger Icon="Clear" HideTrigger="true" />
</Triggers>

</ext:ComboBox>

Hari
Feb 03, 2010, 2:19 PM
Thank you. Between when is V1.0 release. we are eagerly waiting for that.