Editing item in RadTree makes it dissappear.

36 posts, 0 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 25 Jun 2009 Link to this post

    I am trying to edit an item in a RadTree using the built in editor.  After I edit the item, the underlying collection appears to be updated but the item dissappears from the tree.

    Here is a code sample that attempts to follow the pattern illustrated here:
    http://www.telerik.com/community/forums/silverlight/treeview/iseditable-and-databinding.aspx

    I have created a simple 2-column grid with a RadTree on the left and an ItemsControl on the right.  The ItemsControl is simply used to illustrate that the collection has indeed changed.

    1 using System.Collections.ObjectModel;  
    2 using System.ComponentModel;  
    3 using System.Windows;  
    4 using System.Windows.Controls;  
    5 using Telerik.Windows.Controls;  
    6  
    7  
    8  
    9 namespace Telerik_Quick_Test  
    10 {  
    11  
    12     public partial class Page : UserControl  
    13     {  
    14  
    15         ObservableCollection<ProjectPortfolioType> _data = null;  
    16  
    17         public ObservableCollection<ProjectPortfolioType> data  
    18         {  
    19             get 
    20             {  
    21                 if (_data == null)  
    22                 {  
    23                     ProjectPortfolioType t = new ProjectPortfolioType() { ID = 1, Name = "root" };  
    24  
    25  
    26                     ProjectPortfolio i = new ProjectPortfolio(t) { Name2 = "node 1" };  
    27  
    28                     ObservableCollection<ProjectPortfolio> ci = new ObservableCollection<ProjectPortfolio>();  
    29                     ci.Add(i);  
    30  
    31                     i = new ProjectPortfolio(t) { Name2 = "node 2" };  
    32                     ci.Add(i);  
    33  
    34                     t.ProjectPortfolio = ci;  
    35  
    36                     _data = new ObservableCollection<ProjectPortfolioType>();  
    37                     _data.Add(t);  
    38                 }  
    39  
    40                 return _data;  
    41             }  
    42         }  
    43  
    44  
    45         public Page()  
    46         {  
    47             InitializeComponent();  
    48  
    49  
    50             PortfolioTree.ItemsSource = data;  
    51  
    52             itemsControl1.ItemsSource = data[0].ProjectPortfolio;  
    53  
    54             if (PortfolioTree != null)  
    55             {  
    56                 PortfolioTree.Edited += new RadTreeViewItemEditedEventHandler(PortfolioTree_Edited);  
    57             }  
    58         }  
    59       
    60  
    61         void PortfolioTree_Edited(object sender, RadTreeViewItemEditedEventArgs e)  
    62         {  
    63             var treeViewItem = e.OriginalSource as RadTreeViewItem;  
    64  
    65             ProjectPortfolio level1 = (treeViewItem.DataContext) as ProjectPortfolio;  
    66             if (level1 != null)  
    67                 level1.Name2 = e.NewText;  
    68  
    69             ProjectPortfolioType level2 = (treeViewItem.DataContext) as ProjectPortfolioType;  
    70             if (level2 != null)  
    71                 level2.Name = e.NewText;  
    72  
    73         }  
    74  
    75  
    76     }  
    77  
    78     public class ProjectPortfolioType : INotifyPropertyChanged  
    79     {  
    80  
    81         public int ID { getset; }  
    82  
    83         public string NameField;  
    84         public string Name  
    85         {  
    86             get 
    87             {  
    88                 return this.NameField;  
    89             }  
    90             set 
    91             {  
    92                 if ((object.ReferenceEquals(this.NameField, value) != true))  
    93                 {  
    94                     this.NameField = value;  
    95                     this.RaisePropertyChanged("Name");  
    96                 }  
    97             }  
    98         }  
    99  
    100         public ObservableCollection<ProjectPortfolio> ProjectPortfolio { getset; }  
    101  
    102         public override string ToString()  
    103         {  
    104             return Name;  
    105         }  
    106  
    107         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;  
    108  
    109         public void RaisePropertyChanged(string propertyName)  
    110         {  
    111             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;  
    112             if ((propertyChanged != null))  
    113             {  
    114                 propertyChanged(thisnew System.ComponentModel.PropertyChangedEventArgs(propertyName));  
    115             }  
    116         }  
    117     }  
    118  
    119     public class ProjectPortfolio : INotifyPropertyChanged  
    120     {  
    121         ProjectPortfolioType _type;  
    122         public ProjectPortfolio(ProjectPortfolioType type)  
    123         {  
    124             _type = type;  
    125         }  
    126  
    127         public int ID { getset; }  
    128         public string NameField = "";  
    129         public string Name2  
    130         {  
    131             get 
    132             {  
    133                 return this.NameField;  
    134             }  
    135             set 
    136             {  
    137                 if ((object.ReferenceEquals(this.NameField, value) != true))  
    138                 {  
    139                     this.NameField = value;  
    140                     this.RaisePropertyChanged("Name2");  
    141                     _type.RaisePropertyChanged("ProjectPortfolio");  
    142                 }  
    143             }  
    144         }  
    145         public string Desc { getset; }  
    146         public int ProjectLinksCount { getset; }  
    147  
    148         public override string ToString()  
    149         {  
    150             return Name2;  
    151         }  
    152  
    153         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;  
    154  
    155         protected void RaisePropertyChanged(string propertyName)  
    156         {  
    157             System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;  
    158             if ((propertyChanged != null))  
    159             {  
    160                 propertyChanged(thisnew System.ComponentModel.PropertyChangedEventArgs(propertyName));  
    161             }  
    162         }  
    163  
    164     }  
    165 }  
    166  
    1 <UserControl    x:Class="Telerik_Quick_Test.Page" 
    2                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    3                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    4                 xmlns:TC="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    5                 xmlns:TC_Nav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
    6 > 
    7  
    8       
    9     <UserControl.Resources> 
    10           
    11         <DataTemplate x:Key="template2">  
    12             <TextBlock Text="{Binding Name2,Mode=TwoWay}" /> 
    13         </DataTemplate> 
    14  
    15         <TC:HierarchicalDataTemplate x:Key="template1" ItemTemplate="{StaticResource template2}" ItemsSource="{Binding ProjectPortfolio, Mode=TwoWay}">  
    16             <TextBlock Text="{Binding Name, Mode=TwoWay}" /> 
    17         </TC:HierarchicalDataTemplate> 
    18  
    19     </UserControl.Resources> 
    20  
    21       
    22     <Grid x:Name="LayoutRoot" Margin="10">  
    23           
    24         <Grid.ColumnDefinitions> 
    25             <ColumnDefinition Width="1*" /> 
    26             <ColumnDefinition Width="1*" /> 
    27         </Grid.ColumnDefinitions> 
    28  
    29         <Grid.RowDefinitions> 
    30             <RowDefinition Height="1*" /> 
    31         </Grid.RowDefinitions> 
    32  
    33         <TC_Nav:RadTreeView x:Name="PortfolioTree" Grid.Column="0" IsEditable="True" ItemTemplate="{StaticResource template1}">  
    34         </TC_Nav:RadTreeView> 
    35           
    36         <ItemsControl x:Name="itemsControl1" Grid.Column="1">  
    37  
    38             <ItemsControl.ItemTemplate> 
    39  
    40                 <DataTemplate> 
    41                     <TextBox Text="{Binding Name2,Mode=TwoWay}"/>  
    42                 </DataTemplate> 
    43  
    44             </ItemsControl.ItemTemplate> 
    45  
    46         </ItemsControl> 
    47  
    48     </Grid> 
    49  
    50 </UserControl> 
    51  
  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 26 Jun 2009 Link to this post

    Hi Rob,
    We deeply apologize for the caused inconvenience.

    In the last internal build the build in editing functionality works as expected only without data binding.
    This issue is already fixed and the change will be reflected in our Q2 release which is scheduled for the beginning of July.
     We will have an edit templates feature done for the release and a lot of improvements in RadTreeView so you will be able to customize the edit experience much better then.

    However if you need the updated assemblies urgently we could make a custom build  from our main branch for you but the assemblies contain new development and some things may not be tested thoroughly so we cannot guarantee that it is fully stable, because it is not tested as an official build yet.



    All the best,
    Boryana
    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.
  3. DevCraft banner
  4. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 05 Nov 2009 Link to this post

    Hi,

    I'm just upgrading to the Q3 release and have found this is reappearing. I can hit F2 and edit my node, but then the text is completely blank after I hit enter. If I hit F2 again, my new text appears for editing, but then vanishes again when I hit enter. When I examine the databound object in the _edited event, it seems as though my editing is finding its way through to the object ok, but is for some reason not being displayed.

    Is this a bug, or does something in my code have to change for the Q3 release?

    Thanks, James.
  5. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 06 Nov 2009 Link to this post

    Hello James,

    Please take a look at the following online example:
    http://demos.telerik.com/silverlight/#TreeView/NodeEditing
    We were unable to reproduce this issue.
    Make sure that you set "Mode=TwoWay" when  binding the items in the ItemEditTemplate:
    <telerikNavigation:RadTreeView.ItemEditTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBox Text="{Binding Name, Mode=TwoWay}" />
                                <input:RadMaskedTextBox Value="{Binding ID, Mode=TwoWay}" MaskType="Numeric" Mask="#"/>
                            </StackPanel>
                        </DataTemplate>
                    </telerikNavigation:RadTreeView.ItemEditTemplate>

    If you still have any other questions or need some more help please send us some sample project in order to fix it.

    Regards,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 06 Nov 2009 Link to this post

    Hi Boryana,

    Thanks for your answer. I didn't have 'TwoWay' in the template, but it doesn't seem to make any difference (and I didn't have it before changing to Q3 and it was fine).

    My template code is this:

    <core:HierarchicalDataTemplate x:Key="AttributeTemplate" ItemsSource = "{Binding Attributes, Mode=TwoWay}">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding AttributeName, Mode=TwoWay}" />
                </StackPanel>
            </core:HierarchicalDataTemplate>






    I don't have the additional '<input:RadMaskedTextBox... etc' that you have in your example. Do I need it? (I haven't so far, and am able to edit the text.)

    My binding code is simple in the cs file:
    TreeView.ItemTemplate = ((DataTemplate)this.Resources["CodeSet"]);
    TreeView.ItemsSource = (ReviewSetsList)(App.Current.Resources["CodeSets"]);

    This all worked before the change to Q3, so I'm wondering what's changed?

    Thanks for your help, James.

    (btw - the example page you mention is blank when I click 'view code')
  7. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 10 Nov 2009 Link to this post

    Hi James,

    Please find attached a sample project that demonstrates the editing functionality of RadTreeView.
    I hope that this will help you.
    Please let us know if you have any other questions or you need some more help.

    Kind regards,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 11 Nov 2009 Link to this post

    Hi Boryana,

    Thanks for your answer - that's helpful - I'm half-way there.

    The additional code that was needed was the

    <telerikNavigation:RadTreeView.ItemEditTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <TextBox Text="{Binding AttributeName, Mode=TwoWay}"/>
                                            </Grid>
                                        </DataTemplate>
                                    </telerikNavigation:RadTreeView.ItemEditTemplate>

    However, I have two HierarchicalDataTemplates in the treeview and need to bind to different values depending on the underlying data object. Please can you tell me how to modify this to support this? (Do I put the above code somewhere in here?)

    <core:HierarchicalDataTemplate x:Key="AttributeTemplate" ItemsSource = "{Binding Attributes}">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding AttributeName}" />
                </StackPanel>
            </core:HierarchicalDataTemplate>

            <core:HierarchicalDataTemplate x:Key="CodeSet" ItemTemplate="{StaticResource AttributeTemplate}" ItemsSource = "{Binding Attributes}">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding SetName}"  />
                </StackPanel>
            </core:HierarchicalDataTemplate>

    Thanks for your help, James.
  9. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 17 Nov 2009 Link to this post

    Hello James,

    First we apologize for the delay reply.
    If you want to have different edit values depending on the underlying data object then you have to use ItemEditTemplateSelector instead of ItemEditTemplate.
    Here you can find example that shows how to implement a Selector:

    http://demos.telerik.com/silverlight/#TreeView/HierarchicalTemplate

    You can use something similar in your occasion but set the ItemEditTemplateSelector instead.
    Note also that you have to use binding in "Mode=TwoWay".
    I hope that this will be helpful.

    Greetings,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 18 Nov 2009 Link to this post

    I'm having a similar problem as well, except I'm using the built in editor... not the edit template.  It was not working in the Q1 release, fixed in the Q2 release, and now it is not working again in the Q3 release.  When I press the F2 key or trigger an edit by setting the IsInEditMode property, change the value, and then hit enter, the displayed value of the node blanks out on the tree. 

    It's setting the value properly and will show up in the editor when I hit F2 again on that node.

    Thanks,
    Jarred Froman
  11. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 18 Nov 2009 Link to this post

    Yes, I think there may be some misunderstanding here. I'm not using editing templates either, just the two hierarchical data templates I pasted in. Before I updated to Q3 I could edit using F2, but now I can edit fine using F2, but the node is blank after hitting return (though the data object 'behind' the tree is updating properly). Just the same scenario as Jarred. Do we really need to go to all the trouble of templateselectors? This was working fine before the Q3 update...

    Thanks, James.
  12. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 20 Nov 2009 Link to this post

    Hello James and Jarred,

    When the treeview is not bound, node editing works out of the box and you do not have to specify an ItemEditTemplate. The reason for this is that when you hit F2, the treeview item makes ToString() to the Header and displays the result in the edit textbox. When you hit return, the text in the edit textbox is given as Header to the treeview item.
    In case of a bound tree you will have to use the ItemEditTemplate, so that you do not experience the case of a blank treeview item. I have prepared a small project that demonstrates the usage of an ItemEditTemplateSelector. Using ItemEditTemplate and ItemEditTemplateSelector allow for greater extensibility of the treeview and once understood are not big of a deal.
    Have a look at the sample project, and if you have additional questions, let me know.

    Sincerely yours,
    Kiril Stanoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  13. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 20 Nov 2009 Link to this post

    Hi Kiril,

    Thank you for providing the explanation and the work-around.... however, I'm a bit confused.  This was reported as a bug before the Q2 release and was acknowledged then as a bug and fixed for that release.  If the tree can can be bound initially and work and then have a side-effect when you go to edit, wouldn't this still be considered a bug?  Why not then just prevent the binding if using the internal editor?

    We would still prefer to use the built in editor as it means less development on our parts.  To go through and refactor our application to use the itemedittemplateselector would be a considerable undertaking that we would like to avoid.  If I need to submit this through the appropriate channels for further consideration, please let me know.

    Thanks,
    Jarred Froman
  14. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 25 Nov 2009 Link to this post

    Hi Jarred,

    Thank you for the follow up. We will discuss your suggestion and I will update you on the matter in the next couple of days.

    Regards,
    Kiril Stanoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  15. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 27 Nov 2009 Link to this post

    Hi Jarred,

    We discussed your proposition with the team and we agree that it is more convinient if the functionality you describe can be achieved out of the box. We have logged your request and we will do our best to provide it for our 2010 Q1 release. Let me know if you have additional comments on the topic.

    Best wishes,
    Kiril Stanoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  16. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 19 Dec 2009 Link to this post

    Hi Kiril,

    Thanks for keeping us updated. I agree that this should be considered a bug. The editor should have (and did have!) the ability to do basic editing of bound nodes without the use of the significant additional coding overhead of using ItemEditTemplates.

    I'm going to leave this as unfixed in our project for the time being (as I don't need to deploy immediately) and await the next release. If there are any internal builds we can use before this, please let us know.

    Thanks, James.


  17. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 18 Feb 2010 Link to this post

    Hi,
    Just asking whether it's possible to have a progress update? Is this going to be fixed for the Q1 release (and are there any internal builds that we can use with it fixed)? I guess you can't say when the Q1 release will be released, but I'll ask anyway. Do you know when it will be released? :-)

    Thanks, James.
  18. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 22 Feb 2010 Link to this post

    I just tried out the Beta 1 release and it still doesn't appear to be working.  Also, I was unable to locate this issue in the Public Issue Tracking System.

    Any feedback would most certainly be appreciated!

     

    Thanks,

    -Jarred Froman

  19. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 23 Feb 2010 Link to this post

    Hello James,

    Yes, this improvement was not part of the beta. I am sending you a project with a build where the feature is implemented.

    It will be part of one of the next internal builds (possibly this week's) and of course the release.

    I will also make the work item visible in the Public Issue Tracking System, it may take up to 24h. to become visible for you, the item will be called:

    TreeView: Automatically generate item edit templates

    As for your previous question - the release is expected in the middle of March :)

    Hopefully this will work for you,

    Greetings,
    Miroslav
    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.
  20. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 23 Feb 2010 Link to this post

    Hi Miroslav,

    Thanks for the update and the example. It looks like it does just what we need. And mid-March will be fine too :-)

    James.
  21. Niranjan
    Niranjan avatar
    23 posts
    Member since:
    Feb 2009

    Posted 04 Mar 2010 Link to this post

    Hi,

    I have tried the attached examples in the previous posts. All the examples work well. If I provide 

    Text

    ="{Binding Name, Mode=TwoWay}" in the CellEditTemplate the value is changed automatically in the Object as well.
    My Problem is as below.
    I am paasing the updated object for saving. if all goes well then no problem but if there is some problem in saving (Some exception is return from the save functionality) then I want to again rollback to the old value in the tree and also in the object. In the Edited event if you look the Properties "OldValue" and "NewValue" both are getting changed because of the Text="{Binding Name, Mode=TwoWay}" . I think twoway binding should not change the "OldValue" property. It should only change the "NewValue" property.

    Is there any workaround for getting the old value? I dont want to fetch again from database.

    Regards,
    Niranjan

  22. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 09 Mar 2010 Link to this post

    Hi Niranjan,

    When using binding OldValue and NewValue are providing the same value, this is known issue and will be fixed for next releases. One possible workaround is to handle the EditStarted event and preserve the current value and also handle PreviewEdited so if the new value is not valid just handle the preview event (e.Handled = true).
    Please let us know if this works for you.

    Sincerely yours,
    Miro Miroslavov
    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.
  23. Niranjan
    Niranjan avatar
    23 posts
    Member since:
    Feb 2009

    Posted 10 Mar 2010 Link to this post

    Hi

    Thanks for the reply.

    It works :)

    Regards,
    Niranjan
  24. Andreas
    Andreas avatar
    14 posts
    Member since:
    Feb 2011

    Posted 03 Aug 2011 Link to this post

    Hello James!

    For me the newest release haven't solved the problem yet.

    <telerik:RadTreeView x:Name="lawTreeView"
                                     IsLineEnabled="True"
                                     Margin="20,10,0,0"
                                     HorizontalAlignment="Stretch"
                                     VerticalAlignment="Stretch"
                                     ItemsSource="{Binding Path=TreeItemCollection, Mode=TwoWay}"
                                     ItemTemplate="{StaticResource NodeTemplate}"
                                     SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}"
                                     SelectionMode="Single"
                                     IsExpandOnDblClickEnabled="True"
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ScrollViewer.VerticalScrollBarVisibility="Auto"
                                     IsEditable="True">
                    <i:Interaction.Triggers>
                        <i:EventTrigger EventName="Edited">
                            <cmd:EventToCommand Command="{Binding Path=EditedLawCommand}"
                                                PassEventArgsToCommand="False" />
                        </i:EventTrigger>
                    </i:Interaction.Triggers>
                    <!-- Needed in order to edit data bound items -->
                    <telerik:RadTreeView.ItemEditTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding Name, Mode=TwoWay}" MaxLength="100" />
                        </DataTemplate>
                    </telerik:RadTreeView.ItemEditTemplate>
                </telerik:RadTreeView>

    UserControlResources:
    <UserControl.Resources>
            <converter:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
            <converter:BooleanToFontWeightConverter x:Key="BooleanToFontWeightConverter" />
     
            <telerik:ContainerBindingCollection x:Key="BindingsCollection">
                <telerik:ContainerBinding PropertyName="IsSelected"
                                          Binding="{Binding IsSelected, Mode=TwoWay}" />
                <telerik:ContainerBinding PropertyName="IsExpanded"
                                          Binding="{Binding IsExpanded, Mode=TwoWay}" />
                <telerik:ContainerBinding PropertyName="IsInEditMode"
                                          Binding="{Binding IsInEditMode, Mode=TwoWay}" />
                <telerik:ContainerBinding PropertyName="FontWeight"
                                          Binding="{Binding IsRoot, Mode=TwoWay, Converter={StaticResource BooleanToFontWeightConverter}}" />
            </telerik:ContainerBindingCollection>
     
            <telerik:HierarchicalDataTemplate x:Key="NodeTemplate"
                                              telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}"
                                              ItemsSource="{Binding Children}">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding Name, Mode=TwoWay}"
                               Margin="5,0,0,0" />
                </StackPanel>
            </telerik:HierarchicalDataTemplate>
        </UserControl.Resources>

    I would be great if you could help me.

    Thanks in advance

    Andi
  25. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 03 Aug 2011 Link to this post

    Hi Andi,

    We've gone back to the previous release, as the recent changes to RadWindow require us to make very many changes to our code that we don't have time for at the moment! Sorry I can't be of more help.

    James.
  26. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 08 Aug 2011 Link to this post

    Hello James,

     Could you please elaborate more on your problem, any sample video or steps to reproduce will be highly appreciated? In the Q2 2011 Release, an issue in the edit mode appeared when fast clicks with mouse are performed. Is your problem related?

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  27. James
    James avatar
    117 posts
    Member since:
    Mar 2009

    Posted 08 Aug 2011 Link to this post

    Hi Petar,

    Our problem is related to radwindow, rather than TreeView (and so we're not on the latest binaries, so can't comment on these). Did you mean to ask Andi?

    Best wishes, James.
  28. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Aug 2011 Link to this post

    Hi James and Andi,

     Yes, I wanted to ask Andi. Please excuse me for the inconvenience caused.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  29. Andreas
    Andreas avatar
    14 posts
    Member since:
    Feb 2011

    Posted 10 Aug 2011 Link to this post

    Please resolve this issue as soon as possible because we need it for rollout.

    http://www.youtube.com/watch?v=1YTTNOJBC_8

    Andi
  30. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 15 Aug 2011 Link to this post

    Hello Andreas,

     We will work on this issue during the second part of Q3 2011 (September - November). You are able to track its status in our PITS. Please excuse us for the inconvenience caused.

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  31. Doug
    Doug avatar
    19 posts
    Member since:
    Jun 2010

    Posted 26 Aug 2011 Link to this post

    I'll add my vote for raising the priority. 

    The issue is worse (IMO) than described in the PITS. 

    I have a tree view that I am using with Edit (via F2 and Context Menu) and Add (Context Menu - this will add a new item and bring it into edit mode) functionality similar to a windows folder tree.  Fast clicking and F2 is one way to cause it to stop working, but it seems to happen somewhat randomly and frequently when trying to put any item in edit mode programmatically.  Once this happens the entire tree view is forever corrupted.  Hitting F2 does nothing (OK, not so horrible), but setting edit mode via rename or add will cause weird things like disappearing tree view items and the like.  There seems to be no way to get the treeview to work again short of reloading the app.  

    All this works fine with the 2011_1_0419_Trial_hotfix release, which I was forced to downgrade to.  

    Doug 

Back to Top
DevCraft banner