RadListbox not adding items

10 posts, 0 answers
  1. jack
    jack avatar
    8 posts
    Member since:
    Dec 2008

    Posted 05 Jan 2009 Link to this post

    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

  2. jack
    jack avatar
    8 posts
    Member since:
    Dec 2008

    Posted 06 Jan 2009 Link to this post

    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. 

     

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 08 Jan 2009 Link to this post

    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.
  5. jack
    jack avatar
    8 posts
    Member since:
    Dec 2008

    Posted 08 Jan 2009 Link to this post

    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.
  6. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 10 Jan 2009 Link to this post

    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.
  7. jack
    jack avatar
    8 posts
    Member since:
    Dec 2008

    Posted 10 Jan 2009 Link to this post

    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.
  8. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 13 Jan 2009 Link to this post

    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.
  9. jack
    jack avatar
    8 posts
    Member since:
    Dec 2008

    Posted 13 Jan 2009 Link to this post

    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

  10. LINSON THOMACHAN
    LINSON THOMACHAN avatar
    4 posts
    Member since:
    Dec 2009

    Posted 10 May 2010 Link to this post

    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.
  11. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 13 May 2010 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready