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

OnRowEditEndedCommandCommandExecuted Not Running

3 Answers 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
None
Top achievements
Rank 1
None asked on 10 Apr 2014, 03:09 PM
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>

3 Answers, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 11 Apr 2014, 01:41 PM
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.

 
0
None
Top achievements
Rank 1
answered on 11 Apr 2014, 03:10 PM
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.
0
Boris
Telerik team
answered on 14 Apr 2014, 01:51 PM
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.

 
Tags
GridView
Asked by
None
Top achievements
Rank 1
Answers by
Boris
Telerik team
None
Top achievements
Rank 1
Share this question
or