Putting a cell into edit mode on click?

13 posts, 0 answers
  1. Andy
    Andy avatar
    11 posts
    Member since:
    Feb 2009

    Posted 20 Apr 2009 Link to this post

    Currently you have to click twice on a cell to enter edit mode it seems. Is there a way to trigger edit mode on the cell on the initial click of the cell?

    Thanks
  2. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 22 Apr 2009 Link to this post

    Hi Andy,

    We plan to introduce some other (except DoubleClick) conditions to put GridViewCell into EditMode, but I cannot commit with any specific date or release.

    For now I can suggest you a workaround with a few lines of code. All you have to do is to subscribe to RadGridView.CurrentCellChanged event and call RadGridView.BeginEdit() method. I'm attaching my test application for your reference.

    Regards,
    Nedyalko Nikolov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. BlogReader
    BlogReader avatar
    27 posts
    Member since:
    Apr 2009

    Posted 24 Apr 2009 Link to this post

    I second the need to enter edit mode on single click.
  5. mjohn mjohn
    mjohn mjohn avatar
    9 posts
    Member since:
    Mar 2010

    Posted 07 Sep 2010 Link to this post

    I need to enter edit mode on single click too.
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 07 Sep 2010 Link to this post

    Hi,

     You can set EditTriggers="CellClick" to achieve this. 

    Regards,
    Vlad
    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
  7. mjohn mjohn
    mjohn mjohn avatar
    9 posts
    Member since:
    Mar 2010

    Posted 07 Sep 2010 Link to this post

    It is very good!
    But the checkbox cell still need click twice to changed the value.
    Thanks!
  8. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 08 Sep 2010 Link to this post

    Hi mjohn mjohn,

    You can use our dedicated CheckBox column which has some extra property "AutoSelectOnEdit" that solves this problem:

    <telerik:GridViewCheckBoxColumn EditTriggers="CellClick" AutoSelectOnEdit="True" Header="Active" DataMemberBinding="{Binding IsActive}" />

    I hope this helps.

    Kind regards,
    Nedyalko Nikolov
    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
  9. Hrushikesh
    Hrushikesh avatar
    33 posts
    Member since:
    Sep 2010

    Posted 11 Nov 2010 Link to this post

    This Still not doing on single click, need 2 click one for selecting the row and other for select and deselct the value of the checkbox.

    here is how i implemented

     
    <telerik:RadGridView x:Name="gridView"
                            EditTriggers="CellClick"
                            AutoGenerateColumns="False"
                            ColumnWidth="*"
                            CanUserFreezeColumns="False"
                            VerticalAlignment="Top"
                            AlternationCount="2"
                            ItemsSource="{Binding MathchedRecords}"
                            SelectedItem="{Binding UserSelectedItem, Mode=TwoWay}"
                             ShowGroupPanel="False" Grid.Row="1"
                             BeginningEdit="gridView_BeginningEdit"
                             SelectedCellsChanged="gridView_SelectedCellsChanged">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewCheckBoxColumn AutoSelectOnEdit="True" Header="   " DataMemberBinding="{Binding IsSelected}"   />
                                <telerik:GridViewDataColumn Header="Code" DataMemberBinding="{Binding ValueKey}" IsReadOnly="True"   />
                                <telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding DisplayDescription}" IsReadOnly="True" />
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>

     

     

     

     


    Thank you
    Hrushikesh Patel
  10. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 12 Nov 2010 Link to this post

    Hello Hrushikesh,

    Actually, you need to combine that property with the EditTriggers="CellClick" for that column:

    <telerik:GridViewCheckBoxColumn AutoSelectOnEdit="True" Header="   " DataMemberBinding="{Binding IsSelected}" EditTriggers="CellClck" />

    This way, only one click should be enough to change the checked state of the column.

    Best wishes,
    Veselin Vasilev
    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
  11. Krishna
    Krishna avatar
    1 posts
    Member since:
    May 2013

    Posted 01 Aug 2013 Link to this post

    HI,
    mine is also same case with a bit Different Apporach .
    In My RadGridView i have a Column which Uses CellEditTemplateSelector
    in that case it not getting cell to edit mode with one Click .
    plz Suggest me Solution For This Problem,.
    all Other Columns Are Normal and Those are Ok.

    Regards,
    Krishna
  12. Vera
    Admin
    Vera avatar
    263 posts

    Posted 05 Aug 2013 Link to this post

    Hello Krishna,

    Attached you can find a sample project with CellEditTemplateSelector. Are you able to get the problem on it? Is there anything specific in your scenario?


    Regards,
    Vera
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  13. Scott
    Scott avatar
    1 posts
    Member since:
    Jun 2015

    Posted 01 Oct 2015 Link to this post

    Is there a simple way to allow single click on a cell to enter edit mode in a GridView, but double click to fire a different command and have the cell not enter edit mode?
  14. Yoan
    Admin
    Yoan avatar
    1068 posts

    Posted 05 Oct 2015 Link to this post

    Hi Scott,

    You can set the EditTriggers property of the column to CellClick. In this way the cells will enter edit mode with a single click only. As for the DoubleClick event - I suppose that you want to commit the edit operation on this event, since the cell will be already in edit mode when the event is raised (due to the first mouse click). So, you can handle GridView's MouseDoubleClick event and invoke grid's CommitEdit method. Then you will be able to execute your own command.

    I hope this helps.

    Regards,
    Yoan
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner