Apr 24, 2012, 8:33 AM
Gridpanel multiheader From To date filter
Hello Everyone,
I am using ext.net 2.0 and this is what i am trying to do: i have a gridpanel with a bunch of columns one of them a date column. I included a multiheader so that it will be possible to filter on the columns. By the datecolumn however i need to have a from to date filter. So i inserted a dropdownfield with a container/panel of two date fields. When trying to select a date the dropdown shuts closed on the first click and i cannot select a date. Here is a snippet of my code:
Thank you!!
I am using ext.net 2.0 and this is what i am trying to do: i have a gridpanel with a bunch of columns one of them a date column. I included a multiheader so that it will be possible to filter on the columns. By the datecolumn however i need to have a from to date filter. So i inserted a dropdownfield with a container/panel of two date fields. When trying to select a date the dropdown shuts closed on the first click and i cannot select a date. Here is a snippet of my code:
<ext:DateColumn ID="colDateOfShipment" DataIndex="DateOfShipment" Sortable="true" Width ="150" Text="Datum" runat="server" Format="dd/MM/yyyy" >
<HeaderItems>
<ext:Container ID="Container3" runat="server">
<Items>
<ext:DropDownField ID="ddfDateFilter" Editable="false" runat="server" EnableKeyEvents="true" TriggerAction="All">
<Component>
<ext:Panel ID="PanelDateFilter" Height="80" Width="200" Layout="Border" runat="server" Border="false">
<Items>
<ext:DateField ID="DateOfShipmentFromFilter" Editable="false" runat="server" LabelWidth="30" FieldLabel="From" Region="Center" Selectable="true">
<Listeners>
<Select Handler="#{DirectMethods}.SetDropDownFieldText();"/>
</Listeners>
</ext:DateField>
<ext:DateField ID="DateOfShipmentToFilter" Editable="false" runat="server" LabelWidth="30" FieldLabel="To" Region="South">
<Listeners>
<Select Handler="#{DirectMethods}.SetDropDownFieldText();"/>
</Listeners>
</ext:DateField>
</Items>
</ext:Panel>
</Component>
<ToolTips>
<ext:ToolTip ID="ToolTipDateFilter" Html="No date(s) selected." runat="server" />
</ToolTips>
</ext:DropDownField>
</Items>
</ext:Container>
</HeaderItems>
</ext:DateColumn>
Can someone help me please? Its a bit urgent :) Thank you!!
Last edited by nomz; Apr 24, 2012 at 8:58 AM.