Webdropdown,selectionchanged and valuechangedEvent is not working
New DiscussionHi,
I am using webdropdown in my page (This control is not inside any template)
I binded items in webdropdown by using the following code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
LoadDropDown()
End Sub
Private Sub LoadDropDown()
Dim result = From a In objContext.LabelData_Vw
Select a
ddlIdNumber.DataSource = result.ToList()
ddlIdNumber.ValueField = "intRowID"
ddlIdNumber.TextField = "vchIDNumber"
ddlIdNumber.EnableAutoCompleteFirstMatch = False
ddlIdNumber.EnableAutoFiltering = Infragistics.Web.UI.ListControls.AutoFiltering.Server
ddlIdNumber.AutoFilterQueryType = Infragistics.Web.UI.ListControls.AutoFilterQueryTypes.Contains
ddlIdNumber.EnableViewState = False
ddlIdNumber.AutoFilterResultSize = 50
ddlIdNumber.EnableLoadOnDemand = True
ddlIdNumber.AutoFilterTimeoutMs = 200
ddlIdNumber.DataBind()
End Sub
in markup page i used this following code
<ig:WebDropDown ID="ddlIdNumber" runat="server" Width="100px"
OnSelectionChanged="ddlIdNumber_SelectionChanged" OnValueChanged="ddlIdNumber_ValueChanged"
AutoPostBackFlags-ValueChanged="On">
<ClientEvents />
</ig:WebDropDown>
Her i need to filter the dropdown list as well as while selecting the item in the dropdown list i need to pass the selected value or current value to query
if i selecting the item in the list it is firing to the value changed event and i can see the Old value and new value after that the selection cahnged is getting fire
if i try to clear the last letter of the first list item in the dropdown list
means "xx11.123"-> '3' it showing the new value as "xx11.12" ,but after no filtering is take place this is one issue (so filtering is one issue)
if i am suppose passing the new value to my query in value changed event like
Dim result = From a In objContext.SupplierDetailsByMFG_Vw
Where a.vchIDNumber = e.newvalue.tostring()
Select a
For Each res In result
txtContactPerson.Text = res.ContactPerson
txtTelephoneNumber.Text = res.Telephone
txtFaxNumber.Text = res.Fax
txtEmailAddress.Text = res.E_mail
the text box assigned the value from query but it is not displaying the text in textbox in the page
(value is not showing in the page this is another issue)
so please let me know
waiting for your earlier response