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

RadListview Find key

8 Answers 189 Views
ListView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 15 Jan 2014, 06:50 AM
hello, well I tested the demo of your product working with the listview control by the database
radlistview1.DataSource = dt
dt.Columns radlistview1.DisplayMember = (1). ToString


and post pictures in the ItemDataBound event to perfect the problem there is that I require key press selects the first item that Start with good lyrics that I hope your help thanks.


I tried this and nothing


For i = 0 To ViewVideos.Items.Count - 1
             If ViewVideos.Items (i). Text = "sauce" Then
                 ViewVideos.SelectedIndex = i

                 MsgBox (i)
             else
             End If
         Next

regards

8 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Jan 2014, 12:58 PM
Hello John,

Thank you for writing.

Please note that official language used for correspondence in Telerik (forums and support threads) is English. This is why I want to kindly ask you to rewrite your message in English and send it back to us so we can understand it and help you with it.

I am looking forward to your reply.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
John
Top achievements
Rank 1
answered on 15 Jan 2014, 03:33 PM
hi, sorry for the inconvenience'm using google translator thanks for replying
0
Dimitar
Telerik team
answered on 20 Jan 2014, 11:24 AM
Hello John,

Thank you for writing back.

If I understand correctly you want to bind to a database that has image column and you want to display the images in RadListView. This can be achieved by using the CellFormatting event and setting the images there.

Also you can check a particular column value and select the corresponding row like this:
For i = 0 To RadListView1.Items.Count - 1
  
    If RadListView1.Items(i)(0) = "Robert" Then
        RadListView1.SelectedIndex = i
  
        MsgBox(i)
    Else
    End If
Next

Please refer to attached project for sample implementation of the described approaches.

Off topic, there was a duplicate of this thread posted which was deleted.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
John
Top achievements
Rank 1
answered on 22 Jan 2014, 03:42 PM
Hi Thanks for your good answer tell them I'm using the property IconView radlistview to show pictures caratulas charge type and passing the datatable to datasource so radlistview same datamember and I use the ItemDataBound property to load the images such that when using your example, the scroll position is not always the selected item and disappear the last items of radlistview or scroll is shortened and can not move at the end of the items so whether you want to do is to press a button for example the letter "C 'selects the first item that begins with that letter eg "Carlos Vives" and the scroll is positioned on the item what was done with the find in listview visual studio hope you can help me thank you for taking the time to answer greetings.
0
Dimitar
Telerik team
answered on 24 Jan 2014, 03:46 PM
Hello John,

Thank you for writing back.

I am having difficulties understanding the text you wrote. Google translate is not an appropriate way to translate as it does not always provide the best possible translations. I would suggest that you consult an English speaker to compose your questions, in order for us to understand them and help you resolve them.

If I understand you correctly you have a RadListView with ViewType set to IconsView. And if the user presses a character key the first item whоse text starts with this character to be selected (the listview should be scrolled to the item if necessary). I have updated the demo project to implement this functionality. I am just comparing the items text first character with the pressed one in the KeyPress event handler.

I hope this information helps. Should you have any other questions, I will be glad to assist you.

Regards,
Dimitar
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
John
Top achievements
Rank 1
answered on 24 Jan 2014, 06:37 PM
Good Day thanks for replying unfortunately I do not have a translator than google as the example above works but continues with the errors mentioned because when you press the keys on occasion the scrooll does not move to the right place and the scroll is shortened which causes the last items are hidden on this occasion hize modify your example and catch errors again thanks for taking the inconvenience of answering greetings.
0
George
Telerik team
answered on 29 Jan 2014, 11:49 AM
Hi John,

Thank you for replying.

If I understood your latest reply correctly, at some point the scrollbar's value becomes invalid and not all items are visible? If that is the case, then we have this issue logged in our database. It is caused by some miscalculations in our logic of calculating the size of the items. Moreover the issue has been addressed and if it passes our QA tests will be available in the next release. Currently, no workaround is available.

Due to some technical difficulties we currently experience I cannot provide you with a link to the issue. As soon as these issues are resolved I will reply in this thread with the needed information.

Let me know if there is anything else.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
George
Telerik team
answered on 13 Feb 2014, 02:21 PM
Hello John,

As I promised, I am sending you a link to the issue. It is located on the following address - UI for Winforms Feedback Portal - FIX. RadListView - IconsView scrollbar does not update accordingly.

I hope this information will be helpful.

Regards,
George
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
ListView
Asked by
John
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
John
Top achievements
Rank 1
George
Telerik team
Share this question
or