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

Specified cast is not valid since upgrading to 619 trial

8 Answers 97 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ionescu
Top achievements
Rank 1
Ionescu asked on 16 Jul 2008, 09:42 AM
Hi,

I am currently trying out the trial version of the RadTreeControl. I've basically set it up for load on demand via a web service. Until now I didn't encounter any problems.

Recently after upgrading to the RadControls_for_ASP.NET_AJAX_2008_1_619_trial version I keep getting sporadic "Specified cast is not valid" errors, usually when selecting an action from the tree context menu. This didn't happen until now with the 515 trial version.

Any help would be appreciated.

Thank you,
Cristi

8 Answers, 1 is accepted

Sort by
0
Ionescu
Top achievements
Rank 1
answered on 22 Jul 2008, 08:29 AM
Is there anyone experiencing the same issue or someone from Telerik team willing to help?

Thank you,
Cristi
0
Atanas Korchev
Telerik team
answered on 22 Jul 2008, 08:37 AM
Hi Ionescu,

This problem should be fixed in the next official release (Q2 2008) which is due this week.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ionescu
Top achievements
Rank 1
answered on 23 Jul 2008, 09:51 AM
Thank you very much!

Best Regards,
Cristi
0
Ionescu
Top achievements
Rank 1
answered on 25 Jul 2008, 02:45 PM
Hi,

I am sorry to report the issue is not fixed in Q2 2008.
However the error message is now more specific:
Unable to case object of type "System.Boolean" to type "System.String"

Cristi
0
Ionescu
Top achievements
Rank 1
answered on 25 Jul 2008, 03:13 PM
I was able to track it down to the following issue.
I am using a web service to load child nodes on demand.

If in the web service I assign a boolean value in the Attributes collection of the RadTreeNode, it triggers this error, but not right away only when I open a context menu on the node and select an item.
0
Atanas Korchev
Telerik team
answered on 28 Jul 2008, 07:17 AM
Hello Ionescu,

This error should be resolved in our latest official release Q2 2008. Please try upgrading to it.

All the best,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ionescu
Top achievements
Rank 1
answered on 28 Jul 2008, 09:11 AM
Hi,

As mentioned in my previous post, the issue is still reproducible in the latest Q2 2008 version.
Is there a newer version I am missing? The one downloaded today is the same with the one downloaded on Friday (25/07/2008)

Cristi

PS. Anyway I worked around the issue, by assigning strings instead of booleans in the Attribute collection.
0
Kirill Ugolnikov
Top achievements
Rank 1
answered on 26 Aug 2008, 09:32 AM

dataItem.Attributes[

"Checked"] = true; // will error


dataItem.Attributes[

"Checked"] = "true"; //OK

Tags
TreeView
Asked by
Ionescu
Top achievements
Rank 1
Answers by
Ionescu
Top achievements
Rank 1
Atanas Korchev
Telerik team
Kirill Ugolnikov
Top achievements
Rank 1
Share this question
or