Wednesday, March 28, 2012

Linked Drop Down Lists

Hi,

I want to use Atlas to create a couple of linked drop down lists. So when you change one it will automatically fill another. Can anyone give me an example of how to do this using Atlas?

With the December release you could just use 2 DropDownList (ASP.NET) controls, and set AutoPostBack="true" on the first one. Handle its SelectedIndexChanged event and inside the handler populate the 2nd dropdown... Both dropdowns should be placed inside an Atlas UpdatePanel server control, and you should enable partial rendering (which is a property on the ScriptManager control). This should perform a callback when you change the selection in the first dropdown...

No comments:

Post a Comment