Rad Combo box is Not Working Proper

ntspirit11

New Member
I have rad Combo box populating from database.There is Bit Problem that when i select Value ist time from combobox its fine.But when i select any other value and click outside it automaticaly changes the selected value to that value which i selcted ist time.Can Any Tell me what may be the issue with it.Here is my code to populate it from db\[code\] protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) { if (e.Text != "") { DataTable data = http://stackoverflow.com/questions/14556000/GetData(e.Text); int itemOffset = e.NumberOfItems; int endOffset = Math.Min(itemOffset + 10, data.Rows.Count); e.EndOfItems = endOffset == data.Rows.Count; for (int i = itemOffset; i < endOffset; i++) { RadComboBoxItem item = new RadComboBoxItem(); item.Text = data.Rows["passbook_no"].ToString(); item.Value = http://stackoverflow.com/questions/14556000/data.Rows["bas_cod"].ToString(); item.Attributes.Add("grower_name", data.Rows["grower_name"].ToString()); item.Attributes.Add("grower_father", data.Rows["grower_father"].ToString()); item.Attributes.Add("mob_no", data.Rows["mob_no"].ToString()); item.Attributes.Add("circle_no", data.Rows["circle_no"].ToString()); item.Attributes.Add("unit", data.Rows["unit"].ToString()); RadComboBox1.Items.Add(item); item.DataBind(); } } } private static DataTable GetData(string text) { OracleDataAdapter adapter = new OracleDataAdapter("select passbook_no, grower_name, grower_father,mob_no,circle_no,unit,bas_cod, PASSBOOK from growersview WHERE UPPER(PASSBOOK) LIKE ('%" + text.ToUpper() + "%') ", ConfigurationManager.ConnectionStrings["ConnectionString3"].ConnectionString); // adapter.SelectCommand.Parameters.AddWithValue("@text", text); DataTable data = http://stackoverflow.com/questions/14556000/new DataTable(); adapter.Fill(data); return data; }\[/code\]Is there any one to help me out this problem
 
Back
Top