Oct 24, 2012, 7:50 AM
[CLOSED] DropDownField collapses on CheckBox click.
Hi guys,
I have a DropDownField with a GridPanel inside. GridPanel has CheckColumn.
I have to develop a mechanism like MultiCombo has: user should be able expand DropDownField, select several options, and collapse DropDownField.
The problem I've faced with is that after single click DropDownField collapses automatically. I attempted to discover how I can prevent this - and found out property AllowBlur.. but it didn't help me.
Could you please suggest another way to prevent DropDownField from collapsing?
Thanks in advance!
My example:
I have a DropDownField with a GridPanel inside. GridPanel has CheckColumn.
I have to develop a mechanism like MultiCombo has: user should be able expand DropDownField, select several options, and collapse DropDownField.
The problem I've faced with is that after single click DropDownField collapses automatically. I attempted to discover how I can prevent this - and found out property AllowBlur.. but it didn't help me.
Could you please suggest another way to prevent DropDownField from collapsing?
Thanks in advance!
My example:
<script runat="server">
private object TestData
{
get
{
return new[]
{
new { ID=1, Name="Item1", IsChecked=false},
new { ID=2, Name="Item2", IsChecked=false}
};
}
}
</script>
<ext:Panel ID="Panel1" runat="server" Layout="VBoxLayout">
<Items>
<ext:DropDownField runat="server" TriggerIcon="SimpleArrowDown" Mode="ValueText">
<Component>
<ext:GridPanel runat="server" HideHeaders="true" Layout="FitLayout">
<Store>
<ext:Store ID="TestStore" runat="server" Data="<%# TestData %>" AutoDataBind="true">
<Model>
<ext:Model runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="ID" Type="Int" />
<ext:ModelField Name="Name" Type="String" />
<ext:ModelField Name="IsChecked" Type="Boolean" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server" ForceFit="true" Resizable="false">
<Items>
<ext:CheckColumn runat="server" DataIndex="IsChecked" Width="30" Editable="true">
<Listeners>
<CheckChange Handler="#{TestStore}.commitChanges();"/>
</Listeners>
</ext:CheckColumn>
<ext:Column runat="server" DataIndex="Name" Text="Name" Flex="1" Resizable="false" />
</Items>
</ColumnModel>
<Listeners>
<SelectionChange Handler="" />
</Listeners>
</ext:GridPanel>
</Component>
<Listeners>
<AfterRender Handler="this.getPicker();" />
</Listeners>
</ext:DropDownField>
</Items>
</ext:Panel>
Last edited by Daniil; Oct 26, 2012 at 5:53 PM.
Reason: [CLOSED]