I am using the RadGridView to simulate a ListBox because I want Delete functionality that isn't built into the RadListBox.
I've removed the headers, the RowIndicator, and I only have one column, but there's still a GridSplitter on the left side of the control. (See attached screenshot.) How can I get rid of this?
Here's my control XAML. I'm using Version 2012.2.607.40.
Thanks!
<telerik:RadGridView Grid.Row="1"
Margin="0,5,0,0"
AllowDrop="False"
SelectionMode="Extended"
ShowGroupPanel="False"
ShowColumnHeaders="False"
ShowColumnFooters="False"
ShowInsertRow="False"
CanUserInsertRows="False"
CanUserDeleteRows="True"
ColumnWidth="*"
CanUserResizeColumns="False"
EditTriggers="None"
RowDetailsVisibilityMode="Collapsed"
RowIndicatorVisibility="Collapsed"
AutoGenerateColumns="False"
ItemsSource="{Binding Words}"
MouseDoubleClick="wordList_MouseDoubleClick"
Deleted="wordList_Deleted"
Deleting="wordList_Deleting">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Phrase}" Width="*">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Grid>
<ContentControl Content="{Binding}"
ContentTemplate="{StaticResource WordDataTemplate}"/>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
<telerik:RadGridView.SortDescriptors>
<telerik:ColumnSortDescriptor Column="{Binding Columns[\Phrase\], ElementName=wordList}"
SortDirection="Ascending" />
</telerik:RadGridView.SortDescriptors>
</telerik:RadGridView>
I've removed the headers, the RowIndicator, and I only have one column, but there's still a GridSplitter on the left side of the control. (See attached screenshot.) How can I get rid of this?
Here's my control XAML. I'm using Version 2012.2.607.40.
Thanks!
<telerik:RadGridView Grid.Row="1"
Margin="0,5,0,0"
AllowDrop="False"
SelectionMode="Extended"
ShowGroupPanel="False"
ShowColumnHeaders="False"
ShowColumnFooters="False"
ShowInsertRow="False"
CanUserInsertRows="False"
CanUserDeleteRows="True"
ColumnWidth="*"
CanUserResizeColumns="False"
EditTriggers="None"
RowDetailsVisibilityMode="Collapsed"
RowIndicatorVisibility="Collapsed"
AutoGenerateColumns="False"
ItemsSource="{Binding Words}"
MouseDoubleClick="wordList_MouseDoubleClick"
Deleted="wordList_Deleted"
Deleting="wordList_Deleting">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Phrase}" Width="*">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Grid>
<ContentControl Content="{Binding}"
ContentTemplate="{StaticResource WordDataTemplate}"/>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
<telerik:RadGridView.SortDescriptors>
<telerik:ColumnSortDescriptor Column="{Binding Columns[\Phrase\], ElementName=wordList}"
SortDirection="Ascending" />
</telerik:RadGridView.SortDescriptors>
</telerik:RadGridView>