OnRowEditEndedCommandCommandExecuted Not Running

4 posts, 0 answers
  1. None
    None avatar
    25 posts
    Member since:
    Nov 2013

    Posted 10 Apr 2014 Link to this post

    I have a datepicker in a grid column, and when the cell changes, it does not call my grid event "OnRowEditEndedCommandCommandExecuted". How do I make this happen? Thanks.


              <telerik:GridViewDataColumn  Header="Date Filled" Width="100" >
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <telerik:RadDatePicker SelectedValue="{Binding DateFilled, Mode=TwoWay}"/>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                    </telerik:GridViewDataColumn>
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 11 Apr 2014 Link to this post

    Hello Matt,

    RowEditEnded event of RadGridView is triggered only when it is in Edit mode. When you change the SelectedValue property of RadDatePicker in the CellTemplate, RadGridView will not be in Edit mode. That is why RowEditEnded event doesn't trigger. In order to get RadGridView in edit mode and trigger RowEditEnded event you need to define a CellEditTemplate for GridVeiwDataColumn and then edit the SelectedValue property of RadDatePicker there.

    <telerik:GridViewDataColumn DataMemberBinding="{Binding DateFilled}" Header="Date Filled" >                
        <telerik:GridViewColumn.CellEditTemplate>
            <DataTemplate>
                <telerik:RadDatePicker SelectedValue="{Binding DateFilled, Mode=TwoWay}" />
            </DataTemplate>
        </telerik:GridViewColumn.CellEditTemplate>
    </telerik:GridViewDataColumn>

    However, if this approach doesn't fulfill your requirement, could you please elaborate more on your scenario ?

    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. None
    None avatar
    25 posts
    Member since:
    Nov 2013

    Posted 11 Apr 2014 in reply to Boris Link to this post

    I have no doubt you have provided the correct answer, however, it does not see, to work for me. Using the above code, when I change the date field in my gridview, it still does not seem to call the rowedit event of my grid. Could there be something else I am missing? Thank you.
  4. Boris
    Admin
    Boris avatar
    276 posts

    Posted 14 Apr 2014 Link to this post

    Hello Matt,


    I attached the sample project I used. Please examine it. However, if you still have issues with triggering the RowEditEnded event could you please modify the sample project so that it reproduces the issue?

    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.

     
Back to Top