Showing posts with label existing. Show all posts
Showing posts with label existing. Show all posts

Monday, March 26, 2012

ATLAS used in UserControl. DropDownList problem

Hi everybody
I just modified my existing well working UserControl to use ATLAS's PopUp control.
The User Control has a Textbox, a calendar and four DropDownLists for Year, Month, Hour and Minute.
When a user clicks into the textbox, calendar with DDL's popup. If user clicks on a date, then the textbox is populated with new date.
But I do have problems when the user clicks on a DropDownList. As soon as the DropDownList opens and mouse is moved on it's items to select a new value, the panel containing Calendar and DDL's disappears.
It looks like the Atlas PopUp Control assumes that the focus was moved outside the control, But in reality the DropDownList is a part of the PopUp control.
How can I fix this?

Thanks in advance
Raja

I have the same problem using the Collapsable Panel with loading controls dynamically in the .aspx Page_Load event. When I Reorder the list, using the ReorderList control, the dynamically loaded controls disappeared.

It sounds like you're running into a general ASP.NET pattern - if you're dynamically adding controls, you'll need to re-add them after a postback as well.


My user control does not contain any dynamic controls and it works very well without ATLAS. I just think that ATLAS assumes the opened DropDownList itema as a new layer and so it thinks that the focus was moved from it's own PopUp panel and simply disappears.

Raja


Hi Raja,

I think your problem has to do with the way thePopupControlExtender handles theblur andfocus events. If you check out the code inPopupControlBehavior.js you'll probably see where things are going wrong. The good news is that we're looking at a better way of doing this and hope to release it in the next drop. For your current scenario though, you could modify the JavaScript code to only hide the popup when something outside it or the textbox is clicked.

Thanks,
Ted


I'm seeing the same problem in HoverExtender. The behavior that I see is that if the Panel's that's loaded is larger and outside of the region of hte target control ... then depending on where you click on the panel, you get diffeerent behaviors.

If I click on the DropDownList and navigate with the keyboard, the panel stays up.
If I click on the DropDownList and click on an item it goes way.

If I change the markup (in my case I'm dynamically generating within a template ... that's another story) to instead use a collection of RadioButtons, the panel is not dismissed.

--

In another panel I've got an embedded controller (the FlashPlayer). I've configured the flash player to not autostart (play=0). The only way to start playing is to click right. Doing so dismisses the hover panel.

Hi pstanhope,

I'm not able to reproduce this problem. Could you post a complete sample the demonstrates it? That would help a lot.

Thanks,
Ted

Saturday, March 24, 2012

Atlas treeview

Hi I'm looking at implementing Atlas on an existing site that has a rather complicated Treeview. I'd like to be able to populate nodes of the tree onclick events.

Is this possible with the Atlas framework at the moment?

I recently wrote an appplication where I have a TreeView inside of an UpdatePanel and I add/remove/reorder nodes on the tree using Button and TextBox controls. It's beautiful to see the tree update without postbacks!
Depending on how complicated your situation is, you may run into limitations though.

I also updated an existing application to do the same thing and I found that I had to rewrite part of the logic to make it work properly. I originally had a significant amount of code to maintain the state of the tree between postbacks (for example to make sure that the tree was still expanded to the correct level and the selected node was still selected after an new node was added). I still needed code of the same sort, but it needed to behave a little differently after Atlas was involved.

Atlas Toolkit Use

Do you i need to create a new atlas project to be able to use the atlas controls or can i just add a dll or something and use them in my existing projects?Add the dlls as reference to your project, modify your web.config to include those entries as included with the sample site web.config included with the Atlas download. Then just make sure you do the proper reference for your apsx or ascx and likewise for you code files (see one of the example pages for the declaratives / syntax...