public void InitializeCombo() { ddlRefType.DataSource = manager.GetAllReferenceType(DocListID); ddlRefType.DataTextField = "TransTypeName"; ddlRefType.DataValueField = "TransTypeID"; ddlRefType.DataBind(); ddlRefType.Items.Insert(0, new ListItem(String.Empty, String.Empty)); ddlRefType.SelectedIndex = 0; }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <CmnTransactionType> items = _manager.GetAllReferenceType(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("TransTypeName", "Transaction Type"); StaticInfo.SearchItem(items, "TransactionType", "SearchTransactionType", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(CmnTransactionType), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }