Showing posts with label version. Show all posts
Showing posts with label version. Show all posts

Monday, March 26, 2012

Treeview not working in Beta 1.0?

I have a treeview that used to work in CTP July version but stopped working after I installed the beta version.

The first problem: say I have node A and it has at least one child. If I expand node A (by clicking the + button) then click on the name of the node, it readds the children, effectively doubling the number of the nodes. I could continue adding the children of the nodes resulting is multiple children being added.

The second problem relates to the first one. Expand node A, expand node B, select node B then select one of node B's child. Somehow one of node A's child is expanded.

The third one: I can't expand more than two levels. Everytime I try to do it, this error message appears:

Line: 82
Error: 'undefined' is null or not an object

Looking at source, the line that breaks it is this:

table.insertAdjacentHTML("afterEnd", chunk);

All of the nodes have PopulateOnDemand = true. Am I doing something totally wrong or is it really a bug in the beta 1.0? Every other controls (including the ones from value pack) seems to work properly except this treeview. :(

For reference here's what I have on the aspx page:

<div class="BrowserTreeView">
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TreeView ID="tvDirectory" runat="server" OnTreeNodePopulate="PopulateNode" OnPreRender="tvDirectory_PreRender" OnSelectedNodeChanged="tvDirectory_SelectedNodeChanged" SkinID="Explorer"></asp:TreeView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostbackTrigger ControlID="cmbComputer" EventName="SelectedIndexChanged"></asp:AsyncPostbackTrigger>
<asp:AsyncPostbackTrigger ControlID="cmdOpen" EventName="Click"></asp:AsyncPostbackTrigger>
</Triggers>
</asp:UpdatePanel>
</div>

Please see these two articles:

- What's up with UpdatePanels and how come nothing works? (http://forums.asp.net/thread/1440058.aspx)
This is a higher level piece that explains how UpdatePanel changed from being automatic (and broken) in the CTP to the new functionality in the beta.

- HOWTO: Write controls compatible with UpdatePanel without linking to the ASP.NET AJAX DLL (http://forums.asp.net/thread/1445844.aspx)
This article goes in depth on how to use the new registration APIs on ScriptManager, but without linking to the Atlas assembly.

Thanks,

Eilon


Thanks. I didn't know that treeview is not supported yet.

Wednesday, March 21, 2012

Trouble installing ASP.NET Ajax

I have tried several times to install ASP.NET Ajax (latest version as of November 9, 2006). I get no indications of installation failure. However, the Ajax project template available when I create a project. There is no evidence of a project template in the appropriate templates folder.

I would like to use ASP.NET Ajax in my current project but will not be able if I can't get it installed. Is this a bug or am I doing something wrong?

One thing I did notice is the extensions file is AJAXExtensionsToolbox.dll (notice the plural Exensions, but the documentation refers to Extension singular.

Thanks,

Rod

Hi Rod,

I was wondering whether you managed to solve the above problem.

I'm having a similar problem trying to install asp.net AJAX extensions and have the relevant templates appear in microsoft visual web developer express.

Would love to know in case you found a solution to this issue.

Thanks!!

Einat Schlagmann


For what it's worth, my first attempt to install moments ago, failed after about 5 minutes of disk churning.

I noticed I was running Visual Studio was running, so I shut that down and reinstalled. Then it worked, installed ok and controls are available.

I also noticed though that the "UpdatePanel" control (which allows for "partial page" updates does not allow drag and drop - which it should). Apparently it works in the Beta, which MS uses in the Video, but not in the "final release". You can actually make controls "children" of the updatepanel control using the HTML (source) view but that is tedious and it is not reflected in the "Design mode". I hope I am wrong about this but that's my experience thus far (trying it today).

Just my experience. Good Luck.


hello.

well, it's working on my machine, but i'm using vs 2008...