GridViewDataColumn Not Editable

4 posts, 0 answers
  1. Eric
    Eric avatar
    36 posts
    Member since:
    Apr 2013

    Posted 13 Oct 2014 Link to this post

    I have the following RadGridView defined:                    

    <telerik:RadGridView Grid.Row="1" x:Name="gvUnits" ItemsSource="{Binding UnitsOfMeasure}" ColumnWidth="*" 
                                             AutoGenerateColumns="False"
                                             RowEditEnded="Entity_EditEnded"
                                             Deleted="Entity_Deleted"
                                             Margin="5">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsReadOnly="False"/>
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>

    From what I've read there should be a default cell edit template, but when I click on an item I only get a blank box. Is there something else I need to do to make the text editable? Is it one-way binding by default?

    I'm sure this is an easy question, I'm just new to your controls.
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 14 Oct 2014 Link to this post

    Hello Eric,

    I am not entirely sure what kind of data you have bound to your column. That is why I attached a sample project that demonstrates a common scenario with RadGridView. In general if you have a string property bound to the GridViewDataColumn, your default CellEditTemplate should be TextBox and the CellTemplate a TextBlock. For more information about RadGridView you can refer to our documentation, online demos and sdk examples:
    1) Getting Started documentation article.
    2) Online Demos.
    3) SDK Examples - Although GitHub is a very well-known platform we saw a better and easier approach for reviewing our examples by developing our SDK Samples Browser


    I hope this helps.

    Regards,

    Boris Penev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Eric
    Eric avatar
    36 posts
    Member since:
    Apr 2013

    Posted 15 Oct 2014 in reply to Boris Link to this post

    apologies, I posted this in the wrong forum. I am working with WPF. 

    I can't open the project you made for me.
  5. Boris
    Admin
    Boris avatar
    276 posts

    Posted 16 Oct 2014 Link to this post

    Hello Eric,

    In order to avoid double posting, I would like to kindly ask you to keep any further communication in your  GridViewDataColumn Binding not working forum thread. In it I have attached a new WPF project. However, if you still have issues opening it, could you please provide us with more information? Perhaps what version of Visual Studio are you using?

    Regards,
    Boris Penev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top