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

How to keep a column in edit mode permenantly

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 May 2010, 10:16 PM
How do I keep a column in edit mode permenantly.  I have an issue with boolean checkbox columns.  It is not intuitive for the users to have to click on the checkbox several times in order for it to check.

1 Answer, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 12 May 2010, 06:08 PM
Hello David,

Currently you can do that by defining a simple CellStyle like this:

<telerik:GridViewDataColumn Header="Stuff" DataMemberBinding="{Binding MyBoolProperty}">
    <telerik:GridViewDataColumn.CellStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:GridViewCell">
                        <CheckBox IsChecked="{Binding MyBoolProperty}"/> 
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
        </Style>
    </telerik:GridViewDataColumn.CellStyle>
</telerik:GridViewDataColumn>

In some of our future release we will provide new API that will allow you to achieve the same result by setting a single property. 

Best wishes,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or