This is a migrated thread and some comments may be shown as answers.

Treeview design time odd behavior

3 Answers 34 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 11 Feb 2009, 07:08 PM
Hi folks,

Running Visual Studio 2008, no SP1
I have the odd problem when I add contextmenu items through the gui, they show, and are editable, but do not save.
No changes get made to the declarative code when I hit OK, yet clicking the ellipsis for ContextMenus shows what I previously added.
If I save,close the file and re-open it, all contextMenus are gone.

I have rebooted ( quite a few times, disabling AV for one boot just to be sure ) , installed VS 2008 SP1, and same problem, with a small difference.
First try after SP1, It did insert 
                            <ContextMenus>
                                <telerik:RadTreeViewContextMenu ID="RadTreeVdsfgiewContextMenu1" runat="server">
                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                    <Items>
                                        <telerik:RadMenuItem runat="server" Text="test">
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem runat="server" Text="test2">
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadTreeViewContextMenu>
                            </ContextMenus>

But then immediately stopped functioning.  These original changes to this one tree do persist through opens and closes, but any additional menus or menuitems do NOT show or persist.
I had added this new bare treeview for testing.



At times, I can click on the code for a treeview, and the ContextMenus property is not even visible in the properties window.
(I have a screenshot of this.  Please let me know where to send/upload it.)

This behavior occurs whether the file is checked out or not.
This behavior is reproducible only in Web Content Forms.

This is a fresh install of VS2008, no addins, on a fresh OS install.

Is there a documented procedure for re-installing telerik asp.net ajax tools?
This is driving me nuts.
Any ideas?

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Feb 2009, 11:41 AM
Hello Bob,

I couldn't reproduce this problem at my end. Please find attached my test page. Does it work at your side?

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Bob
Top achievements
Rank 1
answered on 18 Feb 2009, 05:17 PM
Hi Albert,

Actually, now when I go in to edit a treecontrol with a contect menu on it, I can click on the "ContextMenus" property ellipsis and the ContextMenu Collection Editor opens up.

But, when I click on the "Items" Ellipsis, I get a popup error:

"Object reference not set to an instance of an object."

This error now consistently pops for me whenever I try to access the Items collections through the GUI.  For any treeview in this project.  I haven't yet tried it in a new project.
I should probably have noted that my project is in VB.NET
However, I added in your default page to the same subdirectory in my existing project, and yes I get the above mentioned error.

I have uninstalled and reinstalled 2008 Q3 with a reboot in between.

It still gives me this weird behavior.


Now, Since I haven't tried to duplicate the error in a new project:
OK, created a new project.
Pasted in your .aspx code( all of it, I did not paste parts of it ) , left the default .cs stuff alone, as that seems to be what you had done.

It could not find the tree control, so I added a reference to:
C:\Program Files\Telerik\RadControls for ASPNET AJAX Q3 2008\Bin35\Telerik.Web.UI.dll

Closed the .aspx and reopened it and it finds the control OK.
Open ContextMenus works OK,
Click On Items Ellipsis give me the same error.
"Object reference not set to an instance of an object."

Albert, if you would like to remote in, just email me at my registered address and we'll set something up.

Please note that this is not a critical problem, as I have just abandoned using treeviews for any work until this gets resolved.

Thanks

0
Atanas Korchev
Telerik team
answered on 19 Feb 2009, 08:32 AM
Hello Bob,

We do remote debugging sessions only for enterprise customers. What I may suggest is that you open a support ticket instead and send us a zipped version of your website which shows those errors.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Bob
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Bob
Top achievements
Rank 1
Share this question
or