Custom RadListView

7 posts, 0 answers
  1. LE THANH
    LE THANH avatar
    5 posts
    Member since:
    Sep 2011

    Posted 22 Apr 2013 Link to this post

    Im new bie in Telerik Winform.
    I want to create ListView like Google Talk list user same as:

    http://www.mediafire.com/view/?1mo7uemelr0fn1d

    Who can give me simple project demo, please!!!! Thanks in advance!!!
  2. Paul
    Admin
    Paul avatar
    60 posts

    Posted 25 Apr 2013 Link to this post

    Hi Le Thanh,

    Thank you for writing.

    You can create ListView like Google Talk no doubt. In order to do that you will have to make your own custom visual element. After you do that you can bind it to the table, list, etc. with the users and visualize it to the screen.

    I have created a sample project, which will give you idea how to do that and allow easy customizations which will help you fit your exact requirements.

    I hope this helps.

    Regards,
    Nikolay Aleksiev
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. LE THANH
    LE THANH avatar
    5 posts
    Member since:
    Sep 2011

    Posted 02 May 2013 Link to this post

    Thank you very much for the example project !
    But with example project, how to access custom item to change elemtent of it, ex: userstatus from "Available" to "Offline" :

    MyCustomVisualItem item = radListView1.ListViewElement.ViewElement.GetElement(radListView1.Items[0]) as MyCustomVisualItem;
    how to change element of item: statusImage, userName, userStatus, userPhoto ???
  5. LE THANH
    LE THANH avatar
    5 posts
    Member since:
    Sep 2011

    Posted 02 May 2013 Link to this post

    and how to group custom item with sample project by code:
    this.radListView1.DataSource = usersList;
  6. Paul
    Admin
    Paul avatar
    60 posts

    Posted 07 May 2013 Link to this post

    Hello Le Thanh,

    In order to react on user property changes, your user class have to implement the INotifyPropertyChanged interface and you will have to raise the PropertyChanged event.

    In order to group the users, you will have to create groups and specify the group a user should be assigned to. Later when you change the user's properties you can also change the groups they belong to. I have also added sorting just to give you basic idea.

    I have attached a sample project to show you everything in action.

    Hope this helps. Please let me know if you have further questions.

    Kind regards,
    Paul
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  7. LE THANH
    LE THANH avatar
    5 posts
    Member since:
    Sep 2011

    Posted 13 May 2013 Link to this post

    Thank you very much, I understood and done project like image
    But please help me with same problem in topic : ListView DragDrop with Groups     and i written my problem in end of topic
  8. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 16 May 2013 Link to this post

    I am glad everything with this case is sorted out. Please expect our answer in the mentioned forum thread. 
     
    Greetings,
    Stefan
    the Telerik team
    RadChart for WinForms is obsolete. Now what?
Back to Top
UI for WinForms is Visual Studio 2017 Ready