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" />

 

>

.cs page

 

 

<AutoPostBackFlags SelectionChanged="On" /></ig:WebDropDown

protected

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)

m =

 

"'" + DD_PropZone.SelectedItems[i].Value.ToString() + "'"

;

 

 

else

m +=

 

",'" + DD_PropZone.SelectedItems[i].Value.ToString() + "'"

;

 

}

 

 

if (DD_PropZone.SelectedValue != "Select"

)

{

sSqlQuery =

 

"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

();

sda91.Fill(ds91);

dd_Locality.Items.Clear();

dd_Locality.DataSource = ds91.Tables[0];

dd_Locality.DataValueField =

 

"City_Locality"

;

dd_Locality.DataTextField =

 

"City_Locality"

;

dd_Locality.DataBind();

dd_Locality.Items.Insert(0,

 

"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 

  • 24671
    Suggested Answer
    posted

    Hi,

    I am not sure if i understand the issue correctly, but - it sounds more like a performance issue to me. I suggest to remove the AutoPostBack=True setting, then use AutoPostBackFlag for SelectionChanged=On, and keep AutoFiltering=Server or AutoFiltering=Off. This, combined with using the latest service release for the product, should make all of the performance issues go away :)  - I hope so.

    Let me know if it helps,

    Angel