PDA

View Full Version : [CLOSED] how to make the ext:ComboBox control always expanded



Fahd
Jun 06, 2013, 6:20 PM
Hello,
Is there anyway to make the ext:ComboBox control always expanded (like the multiList control)?

Thanks!

Baidaly
Jun 07, 2013, 2:55 AM
Hello!


Hello,
Is there anyway to make the ext:ComboBox control always expanded (like the multiList control)?

Thanks!

I wouldn't recommend to do this but you can prevent hiding of the boundlist using the following approach:



<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" SourceFormatting="True"></ext:ResourceManager>

<ext:ComboBox runat="server" ID="ComboBox1">
<Items>
<ext:ListItem Text="0" Value="0" />
<ext:ListItem Text="1" Value="1" />
</Items>
<Listeners>
<AfterRender Delay="10" Handler="
var picker = this.getPicker();
picker.on('beforehide', function() {
return false;
});
this.getPicker().show();
this.getPicker().setWidth(this.bodyEl.getWidth());
this.doAlign();
"></AfterRender>

</Listeners>
</ext:ComboBox>
</form>
</body>
</html>


Maybe, in your case better use TriggerField with BoundList?

Daniil
Jun 07, 2013, 5:31 AM
Hi @Fahd,

Do you mean "MultiSelect" under "multiList"?