Jan 22, 2014, 2:33 PM
[CLOSED] Problem with Inherited Combo Box
Good afternoon
We are evaluating the migration issues for our Application (Build on Ext.Net 2.2, should be migrated to 2.4).
One of the issues we found belongs to a Combobox Control we created based on the Ext.Net Combo...
The Created JS shows an empty Store :
{id:"ContentPlaceHolder2_ucDeclarationGrid_colDecl arationStatus",width:75,headerItems:[{id:"ContentPlaceHolder2_ucDeclarationGrid_cboStat us",xtype:"combobox",matchFieldWidth:false,listCon fig:{height:300,width:320,itemSelector:".x-boundlist-item"},queryMode:"local",valueField:"CodeValue",store:,listeners:{blur:{fn:function(item){if (this.store.find(this.valueField, this.getValue()) < 0) {this.setValue(null, true);}}}}}],align:"right",dataIndex:"DeclarationStatus",sorta ble:true,text:"Status",listeners:{afterrender:{fn: function(item){this.keyNav.disable();}}}}
Here's a bit of our Code - This Class Inherits from ComboBox
Any Idea about that problem ?
Peter
We are evaluating the migration issues for our Application (Build on Ext.Net 2.2, should be migrated to 2.4).
One of the issues we found belongs to a Combobox Control we created based on the Ext.Net Combo...
The Created JS shows an empty Store :
{id:"ContentPlaceHolder2_ucDeclarationGrid_colDecl arationStatus",width:75,headerItems:[{id:"ContentPlaceHolder2_ucDeclarationGrid_cboStat us",xtype:"combobox",matchFieldWidth:false,listCon fig:{height:300,width:320,itemSelector:".x-boundlist-item"},queryMode:"local",valueField:"CodeValue",store:,listeners:{blur:{fn:function(item){if (this.store.find(this.valueField, this.getValue()) < 0) {this.setValue(null, true);}}}}}],align:"right",dataIndex:"DeclarationStatus",sorta ble:true,text:"Status",listeners:{afterrender:{fn: function(item){this.keyNav.disable();}}}}
Here's a bit of our Code - This Class Inherits from ComboBox
Private Sub CodeComboBoxBeforeClientInit(sender As Observable) Handles Me.BeforeClientInit
If Not Page.IsPostBack And Not ExtNet.IsAjaxRequest Then
Dim tempData As List(Of CodeAndDescriptionDTO)
ValueField = "CodeValue"
tempData = GetData(DateTime.Now, SortOrder.Ascending, _sortType.ToString())
_store = New Store()
_store.ID = "store_" + ID
_store.Model.Add(GetModel())
_store.DataSource = tempData
_store.DataBind()
Store.Add(_store)
End If
End Sub
Private Function GetModel() As Model
Dim modl As New Model
modl.Fields.Add(New ModelField("CodeId"))
modl.Fields.Add(New ModelField("Value"))
modl.Fields.Add(New ModelField("Description"))
modl.Fields.Add(New ModelField("CodeValue"))
modl.Fields.Add(New ModelField("text"))
modl.IDProperty = "CodeId"
Return modl
End Function
This Code worked with Ext.Net 2.2...Any Idea about that problem ?
Peter
Last edited by Daniil; Jan 31, 2014 at 5:50 AM.
Reason: [CLOSED]