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

extending the checkbox selection area in filtering dialog box

3 Answers 199 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 19 Nov 2012, 11:24 AM
Hi There,

I have a requirement to extend the check box clickable area,can you please tell me, that where i can set this in the styling.?
for more information I have attached a screenshot please check once and let me know if you need more information.

Thanks in advance,
Srinivas.

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 19 Nov 2012, 12:30 PM
Hello Srinivas,

 In order to achieve your goal, you can predefine the template of GridView's FilteringControl. As you can see from this help article the PART_DistinctValuesList is a listbox that hosts the DisctinctValues for the FilteringControl. So, you can extract the default style, as it is mentioned in the article, then you need to find the PART_DistinctValuesList, you will see that in the listbox's ItemTemplate there is a CheckBox. You can set some height to that CheckBox. Please check the following code snippet:

<ListBox x:Name="PART_DistinctValuesList" ItemsSource="{Binding DistinctValues}"                    ScrollViewer.HorizontalScrollBarVisibility="Auto"
 MaxHeight="100" SelectionMode="Multiple">
<ListBox.ItemTemplate>
    <DataTemplate>
               <CheckBox Content="{Binding ConvertedValue}" Height="50" IsChecked="{Binding IsActive, Mode=TwoWay}" VerticalContentAlignment="Center">
  <telerik:StyleManager.Theme>
     <telerik:Office_BlackTheme/>
  </telerik:StyleManager.Theme>
       </CheckBox>
    </DataTemplate>
</ListBox.ItemTemplate>
<telerik:StyleManager.Theme>
         <telerik:Office_BlackTheme/>
</telerik:StyleManager.Theme>
</ListBox>


Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yoan
Telerik team
answered on 19 Nov 2012, 01:12 PM
Hi Srinivas,


In addition to my previous post, I must point out that my suggested approach is valid for the latest version of our controls. If you are using some of the older versions of the controls you are able to select distinct value by clicking only in the checkbox (not on the entire row). So, in order to make it clear, may I ask you what exactly version of RadControls you are using?

 

Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ravi
Top achievements
Rank 1
answered on 20 Nov 2012, 08:32 AM
Hi Yoan,
Thanks for reply, we are using latest Q3 version.

Thanks again,
Srinivas.
Tags
GridView
Asked by
Ravi
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or