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

How to RadListView Cells in the add control

7 Answers 128 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Chen
Top achievements
Rank 1
Chen asked on 30 May 2012, 10:17 AM
Hi:
    How to add control to RadListView?

7 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 31 May 2012, 01:34 PM
Hello Chen,

Thank you for contacting us.

To add other controls or elements to RadListView's, you need to populate it with custom items. The following help article describes to add some buttons to RadListView's items. In case you need to add controls to the items, then you can use a RadHostItem to host the controls you would like to display.  We also provide a Custom Items example in our Examples application which comes with the installation. Its full source code is also available in the installation directory so you might find it useful.

I hope this helps. Feel free to write back if you have any further questions.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Chen
Top achievements
Rank 1
answered on 31 May 2012, 02:01 PM
Excuse me, RadListView in the DetailsView mode nowadays can also add to the control? 
0
Ivan Todorov
Telerik team
answered on 05 Jun 2012, 01:49 PM
Hi Chen,

As far as I understand, you want to add some custom elements to RadListView's cells in DetailsView mode. To achieve this, you need to create custom data cell class. I have attached a sample code which demonstrates how this can be implemented.

I hope this will help you. In case you have any additional questions, do not hesitate to ask.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Chen
Top achievements
Rank 1
answered on 09 Jun 2012, 02:49 PM
I RadListView in adding a few lines data, then cleared, add a few lines again new data, but RadProgressBar value or the old value, can't change, excuse me, what is the problem? 
0
Accepted
Ivan Todorov
Telerik team
answered on 12 Jun 2012, 10:56 AM
Hi Chen,

I am not sure I understand what the problem is. I have tried clearing the existing items, then adding a few new items, but the value of the progress bars was updated correctly. Generally, you can force item update by using the following code:
this.radListView1.ListViewElement.SynchronizeVisualItems();

However, I am not sure that this is your case. Can you try to better explain the exact scenario or send me some code snippets that demonstrate it. This will let me provide you with a proper answer.

I am looking forward to hearing from you.

Regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Danny
Top achievements
Rank 1
answered on 10 May 2018, 08:51 PM

Hi,

I really need some support for the following problem: I want to add into a radListView cell (located in column no.2/from 3  let's say) a LinkLabel or some text acting as a hyperlink. (I have attached a small capture for my first try, but the code add the label in the first position of the ListView item - see the second capture)

Thanks in advance for any suggestion/idea/example...

Dan

0
Dimitar
Telerik team
answered on 11 May 2018, 11:50 AM
Hello Danny,

You can use HTML-like text formatting to make the item text (or just part) appear like a hyperlink. Here is an example:
radListView1.Items.Add("<html>Text <a href=\"Test\">Link<a/>");

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ListView
Asked by
Chen
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Chen
Top achievements
Rank 1
Danny
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or