Edit an item at runtime???

6 posts, 0 answers
  1. xavendano
    xavendano avatar
    35 posts
    Member since:
    Feb 2012

    Posted 23 Jul 2012 Link to this post

    Hi,

    how to edit the content or text in radlistiem at runtime?

    Thanks.....
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 26 Jul 2012 Link to this post

    Hello Romell,

    I prepared and attached a sample project for you showing how to change the ItemsSource of the ListBox control at runtime, the same approach can be used to modify/edit the existing ItemsSource items.

    Hope this is helpful.

    Regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    1 posts
    Member since:
    Nov 2012

    Posted 12 Nov 2012 Link to this post

    Hi,

    this is not answer to the question. The question was how to make items editable , just like RadTreeView.IsEditable does.
    Correct answer is that RadListBox does not support inline editing of items.

    However, I would expect this feature from RadListBox. If RadTreeView can do it, RadListBox should as well.

    Daniel

  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 13 Nov 2012 Link to this post

    Hi Daniel,

    There are many different scenarios and solutions on editing the items of RadListBox at runtime, the example in my previous post shows one of them.

    Inline editing is not supported out of the box in the control but it is possible to be implemented by creating a custom RadListBoxItemTemplate and writing the corresponding logic for changing the item in the ItemsSource of the ListBox control.

    All the best,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Martin
    Martin avatar
    17 posts
    Member since:
    May 2014

    Posted 10 Jun 2014 in reply to Vladi Link to this post

    Any chance you could supply us with a custom RadListBoxItemTemplate for editing or would we be better off switching to RadTreeView, which supports inline editing?
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 11 Jun 2014 Link to this post

    Hello,

    The RadListBox control as any other selector control is not designed to support built-in inline editing of the items. The mentioned inline editing is not available in the default ListBox control which is why it has not been consider to be implemented as a built-in feature in the RadListBox control.

    Currently we do not have an example that we can share with you that shows how the described scenario could be achieved. You can take a look at this post which describes a possible approach of achieving the desired behavior:
    http://stackoverflow.com/questions/2088909/inline-editing-textblock-in-a-listbox-with-data-template-wpf

    Regards,
    Vladi
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready