May 04, 2015, 10:53 AM
[FIXED] [#717] [3.2.0] Itemselector not working with ext.net 3.1
We have used ItemSelector on almost 20 different pages. Since we have upgraded to Ext.Net 3.1 all of the pages started giving error mentioned in the bug track
https://www.sencha.com/forum/showthr...rows-exception
Can you suggest some work around till the time bug is fixed
Here is the code to define itemselector
https://www.sencha.com/forum/showthr...rows-exception
Can you suggest some work around till the time bug is fixed
Here is the code to define itemselector
<ext:Store ID="store_edcodeitemselector" runat="server">
<Model>
<ext:Model runat="server" ID="storemodelcc">
<Fields>
<ext:ModelField Name="EDCode" Type="String" />
<ext:ModelField Name="EDCodeDesc" Type="String" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
<ext:Panel ID="tabpnledcodes" Title="Select Gratuity Salary Codes" Padding="5" Border="true" runat="server" Closable="false" Layout="FitLayout">
<Items>
<ext:ItemSelector
ID="ItemSelector1"
runat="server"
Width="513"
Height="170"
Padding="5"
Buttons="add,remove"
StoreID="store_edcodeitemselector"
DisplayField="EDCodeDesc"
ValueField="EDCode">
</ext:ItemSelector>
</Items>
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
LoadEdCode();
}
}
private void LoadEdCode()
{
var oEdItemCollection = EDItem.LoadList();
if (oEdItemCollection != null)
store_edcodeitemselector.DataSource = oEdItemCollection.Where(a => Convert.ToInt32(a.EDCode) < 500).OrderBy(a => a.EDCode).ToList();
store_edcodeitemselector.DataBind();
}
Last edited by Daniil; May 05, 2015 at 10:42 AM.
Reason: [FIXED] [#717] [3.2.0]