Monday, March 26, 2012

Atlas Update Panel DropDownList

I have a dropdownlist which has around 2300 items and is placed inside an EditTemplate of a DetailsView.

When i change the mode to edit, the detailsview does not change the mode and no error is shown. It silently stops updating. If i have lesser number of items in the dropdown it works.

I have tested the controls outside the updatepanel to check if there is anything wrong with my code, but that works fine. I also tested the dropdown outside the edit template but inside a updatepanel it works. It happens only in a edit template. Works within an item template also.

Did anybody have a similar issue?? I very much think it is a bug in the Updatepanel and i have been using updatepanels extensively. The biggest trouble is, this issue could happen after the app goes live and data keeps accumulating.

Datasource is objectdatasource; also tried with SQLdatasource(no luck).

PartialRendering is on. (If it is switched off it works).

UpdatePanel mode is conditional (Making it always doesnot work)

Filling the items of dropdownlist in the dropdownlist_prerender (without a datasource) also gives the same error.

Id there any property that i am missing somewhere??

Best regards,

chandrakanth

Is this some kind of sync issue between the trigger event and update itself since you have 2300 items?Exactly how are you using the dropdown within the edit template? Are the values used in the update process some how?

The drop down has key-value pairs with keys as Ids and values as the designations. The Id is bound to a field of the datasource. I havel also removed the binding between dropdown and the datasource field, making it a simple dropdown with a datasource having 2300 items, and the mode does not change yet.

These values are not used anywhere in the update process.

Since the event is raised by a control inside the update panel, i am not using any triggers.

I have even tried to make everything from scratch in a test page to rebuild the issue.(Inorder to remove any effects of other controls on the updateprocess. No luck again.

chandrakanth


Some more updates on the update panel issue.

The dropdown works as long as the size is less than or equal to 894. Anything more than that which as is in my case the issue shows up. Any suggestions with a workaround for this?


Figured it out.

The issue was with the data. Data having some non ascii characters was behaving in that manner.

hope it helps others who might have a similar issue.

chandrakanth

No comments:

Post a Comment