HI,
thnx for your reply for the prvious post, i had one more query. The thing i am selecting mutiple items in a drop down, and i need to take all the selected items and need to pass it to a query.. but after selecting the one time the postback is not happening..i'll send my code to you,please go through that and send me reply
.aspx
<ig:WebDropDown ID="DD_PropZone" runat="server" EnableDropDownAsChild="false" EnablePaging="false"
width
="150px"
EnableMultipleSelection="true" MultipleSelectionType="Checkbox" EnableClosingDropDownOnSelect="false" DropDownContainerHeight="150px" Font-Names="Arial" Font-Size="8pt" DropDownAnimationType="EaseOut" OnSelectionChanged="DD_PropZone_SelectionChanged" AutoPostBack="True" CssClass
=".igdd_ListItem"><ClientEvents Initialize="initDropDown" />
<AutoPostBackFlags SelectionChanged="On" /></ig:WebDropDown
void DD_PropZone_SelectionChanged(object sender, Infragistics.Web.UI.ListControls.DropDownSelectionChangedEventArgs
e)
string m=""
;
for (int
i = 0; i < DD_PropZone.SelectedItems.Count; i++)
if
(i == 0)
"'" + DD_PropZone.SelectedItems[i].Value.ToString() + "'"
else
m +=
",'" + DD_PropZone.SelectedItems[i].Value.ToString() + "'"
if (DD_PropZone.SelectedValue != "Select"
)
"SELECT DISTINCT City_Locality FROM [City_State_Country_LookUp] WHERE (City_Locality IS NOT NULL OR City_Locality !='') AND City_Zone IN(" + m + ") ORDER BY City_Locality ASC"
SqlDataAdapter sda91 = new SqlDataAdapter
(sSqlQuery, Conn);
DataSet ds91 = new DataSet
();
"City_Locality"
"Select"
);
{
BindPageLocality();
}
ModalPopupEx_AdSearch.Show();
plzz reply me quickly
dd_Locality.DataBind();
dd_Locality.Items.Insert(0,
dd_Locality.DataTextField =
sda91.Fill(ds91);
dd_Locality.Items.Clear();
dd_Locality.DataSource = ds91.Tables[0];
dd_Locality.DataValueField =
sSqlQuery =
m =
protected
>
.cs page
Hi,
My first suggestion is to upgrade to the latest service release- there have been a couple of fixes related to autopostback flags and that functionality. Then, i suggest not to use AutoPostBack property - it has been also marked Obsolete - you should only use the AutoPostBackFlags for SelectionChanged and ValueChanged.
I tried this scenario, and it works fine, so i guess after you get the SR and remove AutoPostBack=true, everything should be ok.
Hope it helps,
Angel
Hi,thnx for ur reply, i removed autopostback option still its not wrking, what i need exactly is after selecting required items once close the dropdown,I need to search for those items,, plz send me if u hav any example for selectionchanged event
its urgent for me
Could you try the latest service release, as i have suggested ?
Thanks,
Hi, thnx for your reply.. right now am using 9.1.. i want to knw how can i get the latest version..