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

The problem of the CheckBox

3 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
tim David
Top achievements
Rank 1
tim David asked on 02 Dec 2009, 06:03 AM
Hello guys,
       I found a problem follow:
       http://demos.telerik.com/silverlight/#GridView/ColumnTypes
       In the above Telerik Demo online,when the row was clicked ,the checkbox was checked.

       http://demos.telerik.com/silverlight/#GridView/Exporting
       At this example above, if I want to change the check at 6th column(Name's Bool),I need click 3 times.

      Can you fix this problem.
      I want  to the CheckBox independent ,when other columns  were clicked at same row.When I click the CheckBox,other columns are not change!( I should say  each column is independent).

    Thank you in advance.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Dec 2009, 07:02 AM
Hi,

The first example is related to rows selection using our new column called GridViewSelectColumn and on the second example you have boolean editor (CheckBox). You can control the grid "enter in edit mode" behavior using EditTriggers or you can declare you own CheckBox in CellTemplate directly.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Max xu
Top achievements
Rank 1
answered on 04 Dec 2009, 02:52 AM
Excuse me ,please!

After that I use CellTemplate and EditTriggers in the RadGridView ,I still have to click 2 times in order to let the CheckBox to be Checked. The code is like this:
       <grid:GridViewDataColumn x:Name="CheckBoxToSelectDocument" Header="Bool" Width="30"  DataMemberBinding="{Binding CheckBox1}" EditTriggers="CellClick" >     
         <grid:GridViewDataColumn.CellTemplate>
         <DataTemplate>
            <CheckBox IsChecked="{Binding CheckBox1}" IsEnabled="False" />
         </DataTemplate>
      </grid:GridViewDataColumn.CellTemplate>
     </grid:GridViewDataColumn>

What can I do if I want to  let the CheckBox to be Checked and I just click  one time ?
0
Vlad
Telerik team
answered on 04 Dec 2009, 07:36 AM
Hi,

Since you have declared CellTemlate you do not need this column to be editable - set IsReadOnly to false. I've attached an example project to demonstrate you this.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
tim David
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Max xu
Top achievements
Rank 1
Share this question
or