Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
745
Select Index Event Problems of WebDropdown
posted

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"

;

 

 

"City_Locality"

;

 

 

"Select"

);

 

 

else

{

BindPageLocality();

}

ModalPopupEx_AdSearch.Show();

}

 

 and after selecting any item...its taking lot of time...and aftr am not able to select next item...

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

 

Parents Reply Children