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

Remove selected and hover states

1 Answer 237 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Alex Lawson
Top achievements
Rank 1
Alex Lawson asked on 10 Aug 2011, 02:45 PM
Probably missing something here, but is there an easy way to block the selected and hovered item being highlighted?  It is undesirable in my touch screen application.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Aug 2011, 03:31 PM
Hi Alex,

Thank you for writing.

There are two possibilities to do that. The first one is in the SelectedItemChanged event to remove the control Selected and Current item:
void radListView1_SelectedItemChanged(object sender, Telerik.WinControls.UI.ListViewItemEventArgs e)
{
    radListView1.CurrentItem = null;
    radListView1.SelectedItem = null;
}

The other approach is to modify the theme by using Visual Style Builder, and remove the selected and current states. Please refer to the attached image. Then load the modified theme to your application.

I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
 
Kind regards,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
ListView
Asked by
Alex Lawson
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or