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

Edit an item at runtime???

5 Answers 195 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Romell
Top achievements
Rank 1
Romell asked on 23 Jul 2012, 09:21 PM
Hi,

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

Thanks.....

5 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 26 Jul 2012, 12:49 PM
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.

0
Daniel
Top achievements
Rank 1
answered on 12 Nov 2012, 02:53 PM

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

0
Vladi
Telerik team
answered on 13 Nov 2012, 01:36 PM
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.

0
Martin
Top achievements
Rank 1
answered on 10 Jun 2014, 11:23 AM
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?
0
Vladi
Telerik team
answered on 11 Jun 2014, 08:55 AM
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.
 
Tags
ListBox
Asked by
Romell
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Daniel
Top achievements
Rank 1
Martin
Top achievements
Rank 1
Share this question
or