The problem of the CheckBox

4 posts, 0 answers
  1. tim David
    tim David avatar
    7 posts
    Member since:
    Oct 2009

    Posted 02 Dec 2009 Link to this post

    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.
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 02 Dec 2009 Link to this post

    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.
  3. DevCraft banner
  4. Max xu
    Max xu avatar
    15 posts
    Member since:
    Oct 2009

    Posted 03 Dec 2009 Link to this post

    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 ?
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Dec 2009 Link to this post

    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.
Back to Top