May 13, 2011, 8:54 AM
[CLOSED] Multiselect setHeight/Width Problem
Hi,
I'm trying to use setHeight and setWidth method from a multiselect but it doesn't resize well.
It only resize box border width.
Multiselect is inside a userControl that is loaded like a partial view inside a panel from a window.
The user control where multiselect is embeded is like these:
I'm using Ext.Net RC 1 without any subversion updates.
I'm trying to use setHeight and setWidth method from a multiselect but it doesn't resize well.
It only resize box border width.
Multiselect is inside a userControl that is loaded like a partial view inside a panel from a window.
The user control where multiselect is embeded is like these:
<ext:Panel ID="pnlTableLayout" runat="server" Border="false" LabelAlign="Top"
IDMode="Explicit" Layout="HBox" MonitorResize="true">
<Content>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.dsFiltroCadena.DataBind();
}
</script>
<script type="text/javascript">
Ext.onReady(
function () {
Millenium.Controls.Filtro.onAgregarCampo = Millenium.Controls.Filtro.General.seleccionarListaValores;
Millenium.Controls.Filtro.onFiltroResize = Millenium.Controls.Filtro.General.onResize;
Millenium.Controls.Filtro.General.condicionChanged();
}
);
</script>
<ext:Store ID="dsFiltroCadena" runat="server" DataSource="<%# Model.ToList() %>">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="Condicion" Type="String" />
<ext:RecordField Name="Valores" />
</Fields>
</ext:JsonReader>
</Reader>
<Listeners>
<Load Fn="Millenium.Controls.Filtro.General.storeLoaded" />
</Listeners>
</ext:Store>
</Content>
<Defaults>
<ext:Parameter Name="margins" Value="0 15 0 0" Mode="Value" />
</Defaults>
<Items>
<ext:Panel runat="server" Border="false" ButtonAlign="Right" Width="180">
<Items>
<ext:ComboBox ID="cmbCondicion" runat="server" Editable="false" FieldLabel="<%$ AppRecursos : sm_txt_condicion %>"
ForceSelection="false" Width="160">
<Items>
<ext:ListItem Text="<%$ AppRecursos : sm_txt_igualQue %>" Value="0" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_diferenteQue %>" Value="1" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_mayorOIgualQue %>" Value="2" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_mayorQue %>" Value="3" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_menorQue %>" Value="4" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_menorOIgualQue %>" Value="5" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_empiezaPor %>" Value="6" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_estaEntre %>" Value="7" />
<ext:ListItem Text="<%$ AppRecursos : sm_txt_estaEnLista %>" Value="8" />
</Items>
<Listeners>
<Select Fn="Millenium.Controls.Filtro.General.condicionChanged" />
</Listeners>
</ext:ComboBox>
<ext:TextField ID="txtNuevoValor" runat="server" FieldLabel="<%$ AppRecursos : sm_txt_nuevoValor %>"
Width="160" Hidden="true" />
</Items>
<Buttons>
<ext:Button ID="btnEliminarValor" runat="server" IconCls="arrowLeft-icon" Hidden="true">
<Listeners>
<Click Fn="Millenium.Controls.Filtro.General.removeValueFromList" />
</Listeners>
</ext:Button>
<ext:Button ID="btnAgregarValor" runat="server" IconCls="arrowRight-icon" Hidden="true">
<Listeners>
<Click Fn="Millenium.Controls.Filtro.General.addValueToList" />
</Listeners>
</ext:Button>
</Buttons>
</ext:Panel>
<ext:Panel runat="server" Border="false">
<Items>
<ext:TextField ID="txtValor" runat="server" FieldLabel="<%$ AppRecursos : sm_txt_valor %>"
Width="140" Hidden="true" />
<ext:TextField ID="txtValorInicial" runat="server" FieldLabel="<%$ AppRecursos : sm_txt_valorInicial %>"
Width="140" Hidden="true" />
<ext:TextField ID="txtValorFinal" runat="server" FieldLabel="<%$ AppRecursos : sm_txt_valorFinal %>"
Width="140" Hidden="true" />
<ext:MultiSelect ID="lstValores" runat="server" MultiSelect="true" FieldLabel="<%$ AppRecursos : sm_txt_valoresLista %>"
Width="200" Height="130" Hidden="true" />
</Items>
</ext:Panel>
</Items>
</ext:Panel>
You must assume that resize event is captured by the window and this user control receives this event, here is where I want to resize manually the multiselect but I don't know how to do it because setHeight and setWidth methods seems that not works.I'm using Ext.Net RC 1 without any subversion updates.
Last edited by Daniil; May 21, 2011 at 10:58 AM.
Reason: Mark as [CLOSED]. No more info was provided.