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

[Solved] Item value problem

1 Answer 28 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Giedrius
Top achievements
Rank 1
Giedrius asked on 16 Jun 2010, 10:15 AM
Hi,
I'm having a problem with TreeView, that getItemValue($node) always returns text of first element, not value of passed node. Before i've used not official(as I understand) version that i've found in this forum, Telerik.Web.Mvc, Version=2010.1.416.235 and now i've updated to as understand new official version, Telerik.Web.Mvc, Version=2010.1.309.235.
Comparing code, i've noticed, that 309 version does not contain this code (reflected from dll, private void WriteItem(TreeViewItem item, IHtmlNode parentTag, ITreeViewHtmlBuilder builder); Declaring Type: Telerik.Web.Mvc.UI.TreeView):
  if ((item.LoadOnDemand || this.ShowCheckBox) || !item.Value.IsNullOrEmpty()) 
        { 
            builder.ItemHiddenInputValue(item).AppendTo(parent.Children[0]); 
        } 
 

So question is, should i stick to 416 or should i use 309 in some different way, because as i understand 309 does not generate inputs when checkbox'es and load on demand are disabled?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Jun 2010, 10:40 AM
Hi Giedrius,

Both versions are official. However you have actually downgraded as 309 is older than 416. You are only seeing 309 as official because service packs (such as 416) are available only to licensed users. In a word use the 416 version.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Giedrius
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or