PDA

View Full Version : [CLOSED] DirectSelect event of ComboBox not working



sailendra
Mar 24, 2012, 6:36 PM
When i use the latest Beta dll for the following code



<script type="text/C#" runat="server">

protected void UnitofMeasuretypecomboselect(object sender, DirectEventArgs e)
{

}
</script>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server">
</ext:ResourceManager>
<ext:ComboBox runat="server" ID="UnitOfMeasureComboBox" FieldLabel="Unit of measure *"
LabelAlign="Top" DisplayField="Text" ValueField="Value" OnDirectSelect="UnitofMeasuretypecomboselect">
<Items>
<ext:ListItem Value="1" Text="1" />
<ext:ListItem Value="2" Text="2" />
</Items>

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


I am getting the following exception when i change the selection



[NullReferenceException: Object reference not set to an instance of an object.] Ext.Net.Observable.FireAsyncEvent(String eventName, ParameterCollection extraParams) +59 Ext.Net.ResourceManager.RaisePostBackEvent(String eventArgument) +988 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +176 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Vladimir
Mar 24, 2012, 6:46 PM
You have to update from SVN, beta has a bug with direct events
Please update from
http://svn.ext.net/premium/branches/2.0