Showing posts with label hidden. Show all posts
Showing posts with label hidden. Show all posts

Wednesday, March 28, 2012

Atlas Wiki Application Status

In a few other posts I've read that the Wiki application was hidden on the atlas website because it wasn'tcompatible with the newest release of atlas. I was going to checkout out the wiki mostly for learning purposes (i bought Foundations of Atlas - and most of Chapt 7 is about the Wiki app). But i don't want to crack open the Wiki code if much of it is out of date and/or no longer supported.

I have heard "we will update the Wiki in a future release" - what is the status of these efforts? I would wait if a release was expected soon or if someone has already updated the wiki app.

What were the fundamental problems with the Wiki app and the latest version of atlas? A few minor changes in code syntax or major architectural issues? I'm trying to avoid making the same programming mistakes myself.

Any information or direction is appreciated - Thanks in advance for your response,

J. Shane Kunkle

Hey,

I purchased that book too and was looking for the wiki, i never did actually find it. Also, after attempting to work through many of those examples found in the book i found that the majority didn't work with the July version of Atlas that I have installed. Were you able to find updated examples online?

Thanks,

Kas

I found a download to the wiki application here -http://forums.asp.net/thread/1241581.aspx

The author does have some errata and updated code from chapters 3 & 5 on his blog -http://www.philotic.com/blog/?cat=3. Unfortunately i've still found a few problems with the latest code he has posted in his blog. I've also found a number of examples in Chapt 7 that do not run properly which he has not addressed in his blog yet (has no one else got to Chapt 7 yet? - j/k).

So after hours of debugging code from that book the last few nights I figured i would post my original question here - and try to see what i was getting myself into before crack open the wiki code – and possibly spend many more hours more debugging code.


Hi jkunkle:

Can you be more specific about the problems you've found? I'd be happy to post fixes and blog them.

Laurence

(Author of 'Foundations of Atlas')

Atlas WebPartZones Visible property not working correctly

Hi All,

I have an ASPX page that contains three WebPart Zones. As per therequirements, one of the Zones, say rightZone, needs to be hidden for,say X, role. For this I check the user role in the Page_Load event, andif logged-in user's role is X then I set rightZone's Visible propertyto false. This works fine using ASP.NET 2.0 WebParts.

I wanted to have drag-and-drop in FireFox as well; therefore, I used"Atlas" (March CTP) WebPartManager and WebPartZone to achieve the same.This works fine for all roles except X. That is, when an X type userlogs in, a JavaScript error is displayed. It goes something like this:

Could not find 'rightZone' element.

On further investigation I found out that if set the rightZone isrendered even though its visible property is set to false. I guessthat's the reason for JavaScript error.

Please let me know if this is a bug in "Atlas" or I am doing something wrong.

Thanks.

~Vihar

It's generally not a good idea to set Visible=false on a WebPartZone. The Visible property only controls whether the WebPartZone is rendered, not whether the WebPartZone participates in the WebParts control set. For example, if a WebPartZone has Visible=false, it will still appear in the list of WebPartZones in the CatalogZone and LayoutEditorPart. This will be confusing to users, since they will be able to add or move a WebPart to an invisible WebPartZone.

A better idea is to remove the WebPartZone from the page completely. You would need to do this in the PreInit phase of the lifecycle.

All this aside, you have indeed found a bug in Atlas, and it applies to any server control, not just WebParts. The xml-script for a control is always being rendered, even if the control is not visible. This is a bug because the xml-script for a control usually assumes that the control was actually rendered. We'll work on fixing this for a future release. Thanks.

-Mike
For now you could use a workaround to add the css style with display:none.

Wednesday, March 21, 2012

Atlas question

Hello all,

Thanks in advance for any help.

I used a datalist to display data, I have to build paging and sorting. I used hidden fields to store the sort field and sort command. It works fine as expect, but when I put it inside of the updatepanel, the hidden fields are all empty. Is there a way to solve this problem. I tried to replace the hidden field with static variables, but I don't like the way the static variables work.

can you enable EnablePartialRendering in script manager?

then wrap only controls need to get update within UpdatePanel

PS. remember to keep registry hidden field in each time of post back...


I put these hidden fields and put inside of the UpdatePanel, it works great.

Thanks