I am also facing the same issue? CommitingEdit seems to be missing. In another thread, it was mentioned that this has been there in the Breaking changes. Not sure, why this was not added to the Breaking changes document?
After dipping into its reflected source code, we are failed to find out the alternative way. Therefore, we need to handle it manually by modifying the template and attaching events to the template.
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Then, right now nobody can use online editing on a datagrid?
Currently, it is not supported.
Why then there is an edit data template / two way Binding / Context ? On Beta 2 I have been written an article about online editing using Silverlight Data Grid. Is this going to be fixed on the next release or SL2 DataGrid will remain an a readonly dataGrid?
No official document is exposed to describe this, but we are confident that it will be fixed or implemented by another way. Thanks for understanding.
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
I will delay the implementation of online editing in my project until a new version or doc is published.
Could you please notify us when that article / doc is being published? If finally this is not going to be fixed on the RTM (readonly DataGrid), Could you notify us as well ? (I have in mind a quick and dirty workaround, place a modal control above the row
to edit including the fields to edit, very bad approach :-().
I will keep my eyes on this. I will try my best to notify our community members. However, we highly suggest that you'd better go to
Scottgu's Blog to obtain the latest info.
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
I know it's not perfect, but you can use IEditableObject.EndEdit. If you want keep editing of the current selected item you can reselect it (in a DispatcherTimer.Tick event).
Brauliod
Contributor
2448 Points
744 Posts
CommittingEdit event in DataGrid in RC0
Sep 27, 2008 07:52 AM | LINK
CommitingEdit event seems to be missing on RC0 is there any other way to execute the same operation?
Book: Mastering LOB Development for Silverlight 5: A Case Study in Action
amit_pal1979
Participant
1150 Points
202 Posts
Re: CommittingEdit event in DataGrid in RC0
Oct 01, 2008 12:22 PM | LINK
I am also facing the same issue? CommitingEdit seems to be missing. In another thread, it was mentioned that this has been there in the Breaking changes. Not sure, why this was not added to the Breaking changes document?
Any workaround for the same?
Jonathan She...
All-Star
50156 Points
4951 Posts
Microsoft
Re: CommittingEdit event in DataGrid in RC0
Oct 02, 2008 09:41 AM | LINK
Hi Brauliod,
After dipping into its reflected source code, we are failed to find out the alternative way. Therefore, we need to handle it manually by modifying the template and attaching events to the template.
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Brauliod
Contributor
2448 Points
744 Posts
Re: Re: CommittingEdit event in DataGrid in RC0
Oct 02, 2008 02:11 PM | LINK
Could you provide a sample?
Is this going to be fixed on the RC1?
Then, right now nobody can use online editing on a datagrid?
Book: Mastering LOB Development for Silverlight 5: A Case Study in Action
Jonathan She...
All-Star
50156 Points
4951 Posts
Microsoft
Re: Re: CommittingEdit event in DataGrid in RC0
Oct 03, 2008 03:48 AM | LINK
Hi Brauliod,
Currently, it is not supported.
We can simple modify its template and add a TextBox. Then do what we want on its events.
<data:DataGridTemplateColumn Header="Command">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding FirstName}"></TextBlock>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
<data:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<TextBox Text="{Binding FirstName}" LostFocus="TextBox_LostFocus"></TextBox> //you can detect other events.
</DataTemplate>
</data:DataGridTemplateColumn.CellEditingTemplate>
</data:DataGridTemplateColumn>
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Brauliod
Contributor
2448 Points
744 Posts
Re: Re: CommittingEdit event in DataGrid in RC0
Oct 03, 2008 05:51 AM | LINK
Thanks for the sample Jonathan,
What I don't understand is:
Then, right now nobody can use online editing on a datagrid?
Currently, it is not supported.
Why then there is an edit data template / two way Binding / Context ? On Beta 2 I have been written an article about online editing using Silverlight Data Grid. Is this going to be fixed on the next release or SL2 DataGrid will remain an a readonly dataGrid?
Book: Mastering LOB Development for Silverlight 5: A Case Study in Action
Jonathan She...
All-Star
50156 Points
4951 Posts
Microsoft
Re: Re: CommittingEdit event in DataGrid in RC0
Oct 03, 2008 06:06 AM | LINK
Hi Brauliod,
No official document is exposed to describe this, but we are confident that it will be fixed or implemented by another way. Thanks for understanding.
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Brauliod
Contributor
2448 Points
744 Posts
Re: Re: CommittingEdit event in DataGrid in RC0
Oct 06, 2008 11:23 AM | LINK
Thanks Jonathan
I will delay the implementation of online editing in my project until a new version or doc is published.
Could you please notify us when that article / doc is being published? If finally this is not going to be fixed on the RTM (readonly DataGrid), Could you notify us as well ? (I have in mind a quick and dirty workaround, place a modal control above the row to edit including the fields to edit, very bad approach :-().
Book: Mastering LOB Development for Silverlight 5: A Case Study in Action
Jonathan She...
All-Star
50156 Points
4951 Posts
Microsoft
Re: Re: CommittingEdit event in DataGrid in RC0
Oct 07, 2008 03:39 AM | LINK
Hi Brauliod,
I will keep my eyes on this. I will try my best to notify our community members. However, we highly suggest that you'd better go to Scottgu's Blog to obtain the latest info.
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
dimdim
Member
28 Points
24 Posts
Re: Re: Re: CommittingEdit event in DataGrid in RC0
Oct 12, 2008 08:01 PM | LINK
Hi Brauliod,
I know it's not perfect, but you can use IEditableObject.EndEdit. If you want keep editing of the current selected item you can reselect it (in a DispatcherTimer.Tick event).