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

RadListbox not adding items

9 Answers 159 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jack
Top achievements
Rank 1
jack asked on 06 Jan 2009, 05:45 AM
Hello Everyone,

I am using Telerik Radcontrols for Winforms Q3 2008. Here I have added a rad listbox control and when I execute code to add items nothing is happening.

My form has RadListBox control. Now I use the following code -

Dim

 

ltitem As New Telerik.WinControls.RadItem

 


ltitem.Text =

"Hello"

 

 

Me.RadListBox1.Items.Add(ltitem)

 

RadListBox1.Refresh()

(I am using VB.NET 2008).

Can anyone help me out. I tried a few things but so far no result.

Thank you,

GR

9 Answers, 1 is accepted

Sort by
0
jack
Top achievements
Rank 1
answered on 06 Jan 2009, 07:46 AM
I found the error, I needed to use the statement 

Dim

 

RadItem As New RadListBoxItem

Now it is working.

But I have another question. The items in the listbox are filled vertically. How can they be filled in horizontal manner ? In other words one next to the other and then below. 

 

0
Nikolay
Telerik team
answered on 08 Jan 2009, 08:46 AM
Hello jack,

Thank you for the question.

Currently, RadListBox orders its RadListBoxItems only vertically. However, I am interested in how you would like the desired feature to behave. Could you please provide us with more information about the it?

I am looking forward to your response.

Best wishes,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
jack
Top achievements
Rank 1
answered on 09 Jan 2009, 05:00 AM
I would like the items to appear horizontally as well. For example one next to the other. And once the box gets filled horizintally then one below the other. For example a ListView control available in Visual Basic 6.0 supports this feature. Items appear horizontally and vertically together.
0
Nikolay
Telerik team
answered on 10 Jan 2009, 12:48 PM
Hello jack,

Thank you for the additional information.

I now understand your case. You want a functionality as the one provided by the standard ListView control. We already have a request for RadListView control and it is logged in your issue tracking system. However, currently there is no specific time frame when it will be implemented.

If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
jack
Top achievements
Rank 1
answered on 10 Jan 2009, 03:00 PM
Hello,

Thanks for the support telerik has provided thru forums. I have been trying telerik trial version and there is no doubt in my mind regarding the fact that its one of the most powerful tools for UI design.

Unfortunately, I noticed that in a business application which I am developing, I need limited controls to do the job for me. Moreover I noticed using telerik controls caused a delay in my application's loading time considerably. Plus forms where telerik controls were used also took a while to show up. This is a compromise in performance which didnt work well for me.

Therefore I decided not to use telerik controls on my application. I will either use a lightweight control suite or may not use at all. I am still probing few lightweight control suited.

Hope you understand.

Thank You.
0
Nikolay
Telerik team
answered on 13 Jan 2009, 04:56 PM

Hi jack,

Thank you for the feedback.

Indeed, due to the flexibility and the unique visual appearance that our controls provide, there are some performance penalties, when compared to the Standard Windows Forms Controls. We have always tried to avoid this tradeoff of performance versus visuals and will continue doing so.

Generally, I understand your arguments. However, if you decide to give our suite a chance, we will help you as much as we can in optimizing your application's work with our controls.

If you have questions or feedback to share, feel free to contact me.

All the best,

Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
jack
Top achievements
Rank 1
answered on 14 Jan 2009, 05:00 AM
Dear Sir,

I found another control suit. I am trying the suit and have not experienced any performance issues so far. It may not be a bad choice.

But I still agree that Telerik Suit is one of the best in the market. But the price tag and performance combined is a primary reason for me not going for it.

In future if i ever go for telerik will surely let you know.

Thank you for your support, I really appreciate it.

Yours Sincerely,
GR

0
LINSON THOMACHAN
Top achievements
Rank 1
answered on 10 May 2010, 05:19 PM
Hi,
i use the RadListBox that comes with WinForms Q3 2009 SP1 in my C# project. One major difficulty i face now is i want to  perform a condition on adding items to the radListBox. i.e, all items must be added only once.no duplication of same element must be present. in the standard listbox of Windows Forms i used if(!listbox1.item.contains(s)) to enter a string s, but i need to know how to implement this using RadListBox.
0
Victor
Telerik team
answered on 13 May 2010, 09:05 AM
Hello LINSON THOMACHAN,

You can easily do this with the help of a loop that searches for an item with the same text as a string that your provide. Microsoft ListBox does exactly the same thing internally, namely loops through its items and compares each item to the argument provided.

Write again if you have other questions.

Sincerely yours,
Victor
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
jack
Top achievements
Rank 1
Answers by
jack
Top achievements
Rank 1
Nikolay
Telerik team
LINSON THOMACHAN
Top achievements
Rank 1
Victor
Telerik team
Share this question
or