For a WebDropDown, how can I enable the displaytext area to enter text for list filtering.
Thanks Dan
Hi Dan,
The following property should do the trick for you:
In HTML:
DisplayMode ="DropDown"
Thanks for the quick reply. I will try that and let you know
I trying to bind an IEnumerable List<MyEntity> to the webdropdown. I can bind a datatable with no problem. I would like to have a sample of this type of binding.
Hello Dan,
Let us know if you need further assistance.
I getting this message when binding my List<AccountNameSearchEntity'> to the webdropdown
public
List<AccountNameSearchEntity> _acctSearchList = new List<AccountNameSearchEntity>();
drpdwnAcctSrch.Items.Clear();
drpdwnAcctSrch.DataSource = _acctSearchList;
drpdwnAcctSrch.TextField =
"ACCT_NM";
drpdwnAcctSrch.ValueField =
"ACCT_NUM";
Type 'Cigna.SUW.StopLoss.AccountNameSearchEntity' in Assembly 'StopLoss, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable
The data binding sample showes an access datasource not an IEnumerable list. Do you have sample code that does this?
I think it's coded correctly but I am still getting this error
Hi,
Could you mark your custom class with the [Serializable] attribute?
Thanks.
I am still getting this error when I bind my IEnumerable List<myEntity> to Webdropdown or Webcombo
What is the idea behind setting CurrentValue to empty string on every postback, and initial page load? If you do an auto postback on selection, and you do not check for IsPostBack, this is the normal behavior, yes.
Thanks,
Angel
I have the webdropdown filter working but when I select an item from the list the currentvalue gets
deleted.
protected
void drpdwnAcctSrch_PreRender(object sender, EventArgs e)
{
drpdwnAcctSrch.CurrentValue =
"";
}
without this code the filter does't work
How can I display the selectItem?