Silverlight 3 Toolkit DataForm - 未启用取消功能?
我有一个 Silverlight 3 datakit:DataForm 通过 ItemsSource 绑定到 ADO.NET Data Service 1.5 CTP2 数据源。下面是一个片段...
var programs = DataServiceCollection.CreateTracked(
dashboardService, query.EndExecute(asyncResult));
this.ProgramEditForm.ItemsSource = programs;
我的 DataForm 定义非常简单...
<"ProgramEditForm"
CommandButtonsVisibility="All"
AutoCommit="False"
AutoEdit="False"/>
我关闭了 AutoEdit 和 AutoCommit,因为我希望用户有半模式的感觉,明确发起更改,然后明确接受最终结果。这就是一切变得糟糕的地方。
当用户点击铅笔图标开始编辑时,“确定”按钮会亮起,但取消按钮不会亮起。由于导航图标在编辑期间被禁用(没有自动提交),因此除了更改数据库之外,用户无法退出编辑。
这是 ADO.NET 的产物吗?
谢谢!
I have a Silverlight 3 datakit:DataForm bound to a ADO.NET Data Service 1.5 CTP2 datasource via the ItemsSource. A fragment is below...
var programs = DataServiceCollection.CreateTracked(
dashboardService, query.EndExecute(asyncResult));
this.ProgramEditForm.ItemsSource = programs;
My DataForm definition is dead simple...
<"ProgramEditForm"
CommandButtonsVisibility="All"
AutoCommit="False"
AutoEdit="False"/>
I have AutoEdit and AutoCommit off because I want the semi-modal feel of the user havign to explicity initiate a change, and then specifically accept the final results. And thats where it all goes bad.
When the user hits the pencil icon to initiate an edit, the OK button lights up but NEVER the cancel button. Since the navigation icons are disabled during edit (without autocommit) then the user has no way, other than changing the database, to back out of the edit.
Is this an artifact of the ADO.NET stuff?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不是 100% 确定,但我认为这与类型上缺乏 IEditableObject 实现有关。
I am not 100% sure, but I think this has to do with lack of IEditableObject implementation on the types.