Sep 05, 2011, 7:39 PM
[CLOSED] Question about multselect
Hi guys,
I can trigger the event multselect after I release the ctrl key?
My code:
Any suggestion?
Thanks !
I can trigger the event multselect after I release the ctrl key?
My code:
<ext:MultiSelect ID="MultiSelectTipoDocumentoID"
runat="server"
MultiSelect="true"
DisplayField="nome"
ValueField="id"
Width="350"
X="10" Y="100"
FieldLabel="Tipo Documento"
LabelAlign="Top"
EmptyText="Carregando..."
ValueNotFoundText="Nenhum tipo encontrado..."
StoreID = "StoreTipoDocumentoID"
EnableViewState="true"
MsgTarget="Side"
AllowBlank="false"
>
<DirectEvents>
<Click
Before="if(#{MultiSelectTipoDocumentoID}.getRawValue() <= 0) return false;"
OnEvent ="MultiSelectTipoDocumento_Clique">
<EventMask ShowMask="true" Msg="Aguarde ..." MinDelay="500" />
</Click>
</DirectEvents>
</ext:MultiSelect>
protected void MultiSelectTipoDocumento_Clique(object sender, DirectEventArgs e)
{
if(this.RadioIndice.Checked)
{
int contador = this.MultiSelectTipoDocumentoID.SelectedItems.Count;
if (contador == 1)
{
int tipoDocumentoID = int.Parse(this.MultiSelectTipoDocumentoID.SelectedItems[0].Value);
this.CriarControlesDinamicos(tipoDocumentoID, this.PanelComponenteDinamico, true);
}
else
{
List<int> tipoDocumentoIDs = new List<int>();
for (int i = 0; i < contador; i++)
{
tipoDocumentoIDs.Add(int.Parse(this.MultiSelectTipoDocumentoID.SelectedItems[i].Value));
}
this.CriarControlesDinamicos(tipoDocumentoIDs, this.PanelComponenteDinamico, true);
}
}
}
So each item selected event is triggered.Any suggestion?
Thanks !