I have a WebDropDown (WDD), where I have added an item. I wish to append the bound data to the item. This is an easy thing with the Microsoft dropdownlist. Is it possible with your control?
<ig:WebDropDown ID="DDL_Markets" runat="server" Width="256px" Style="float: left;
margin-left: 83px;" DataKeyFields="Market_ID" DataSourceID="ODS_Markets" TextField="Description"
ToolTip="Select a Market " ValueField="Market_ID" AutoPostBack="True" OnSelectionChanged="DDL_Markets_SelectionChanged"
DropDownAnimationDuration="250" DropDownContainerHeight="400px" DropDownContainerMaxHeight="400px"
EnableAnimations="False">
<Button AltText=""></Button>
<Items>
<ig:DropDownItem Selected="False" Text="Select..." Value="-1">
</ig:DropDownItem>
</Items>
<DropDownItemBinding TextField="Description" ValueField="Market_ID" />
</ig:WebDropDown>
Hi Frank,
We don't support AppendDataBoundItems at the moment (meaning not to clear the items during DataBound, if this property is True) - but we will add this in the upcoming service release and volume release.
Thank you,
Angel
I'm assuming this hasn't been added yet.
It would be very handy. I use this functionality a lot with standard ASP DropDownLists.
My current workaround is to UNION what I would add as items to my datasource select command.
OK. I performed a work-around in the meantime...
protected void WebDropDown1_DataBound(object sender, EventArgs e) {WebDropDown1.Items.Insert(0, new Infragistics.Web.UI.ListControls.DropDownItem("Select... ", "-1" ));
Thanks for your response!