RadTreeListView add and remove rows

3 posts, 0 answers
  1. Jara
    Jara avatar
    29 posts
    Member since:
    Jul 2010

    Posted 30 Nov 2010 Link to this post

    I create RadTreeListView, where users can delete rows.
    But delete buttons are unactivity, see error.jpg.
    Maybe someone can help me.
    Also, I want to add new row to my RadTreeListView , maybe someone has some suggestions, how can i do it.
    My xaml code:




    <telerik:RadTreeListView Name="RadTreeListView_1" AutoGenerateColumns="False" IsReadOnly="True" CanUserDeleteRows="True" Deleting="RadTreeListView_1_Deleting">












    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" >





















    <telerik:GridViewDataColumn DataMemberBinding="{Binding Nr}" Header="Nr" />





    <telerik:GridViewDataColumn DataMemberBinding="{Binding Pavadinimas}" Header="Pavadinimas" />




















    <telerik:RadButton Content="Delete" Command="telerikGrid:RadGridViewCommands.Delete" Visibility="Visible" />





























  2. Maya
    Maya avatar
    4062 posts

    Posted 02 Dec 2010 Link to this post

    Hello Jara,

    May you try to set the IsReadOnly property of the TreeListView to "False" and see if the button is still disabled ?

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Jara
    Jara avatar
    29 posts
    Member since:
    Jul 2010

    Posted 03 Dec 2010 Link to this post

    Thanks for reply.
    I find some error in code.
Back to Top