FineUI 官方论坛
标题:
【求助】单元格编辑后台获取不到修改的内容
[打印本页]
作者:
Daitianyi
时间:
2017-8-16 18:16
标题:
【求助】单元格编辑后台获取不到修改的内容
项目的fineui版本是3.3.3,参考的官网里开源版例子里的【结束编辑】,前面都没问题,就是触发了OnAfterEdit事件后,后台用GetModifiedDict()获取不到内容,研究了几天了,实在是不得其门而入,只能来次求助了,希望有大牛能指点一下,下面贴代码
页面的
<x:Grid ID="wndItemList" Title="列表" PageSize="80" ShowBorder="false" AllowPaging="true" AllowSorting="true"
OnPageIndexChange="wndItemList_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"
OnSort="wndItemList_Sort" EnableRowNumber="True" DataKeyNames="TaskID" AllowCellEditing="true" ClicksToEdit="1"
EnableAfterEditEvent="true" OnAfterEdit="wndItemList_AfterEdit">
<Columns>
<x:RenderField ColumnID="Name" FieldType="String" DataField="Name" SortField="Name" HeaderText="运送内容">
<Editor>
<x:DropDownList ID="cbTasks" Required="true" runat="server">
</x:DropDownList>
</Editor>
</x:RenderField>
<x:BoundField DataField="ZYCode" SortField="ZYCode" HeaderText="住院号" DataFormatString="{0}" />
<x:BoundField DataField="WorkFor" SortField="WorkFor" HeaderText="病人名称" DataFormatString="{0}" />
<x:BoundField DataField="ToSite" SortField="ToSite" HeaderText="到科室" DataFormatString="{0}" />
<x:BoundField DataField="TaskType" SortField="TaskType" HeaderText="运送方式" DataFormatString="{0}" />
<x:BoundField DataField="NeedDate" SortField="NeedDate" HeaderText="要求时间" DataFormatString="{0}" />
<x:BoundField DataField="Remark" SortField="Remark" HeaderText="备注" DataFormatString="{0}" />
<x:BoundField DataField="AcceptBy" SortField="AcceptBy" HeaderText="运送员" DataFormatString="{0}" />
<x:BoundField DataField="AssignTime" SortField="AssignTime" HeaderText="派工时间" DataFormatString="{0}" />
<x:BoundField DataField="InputTime" SortField="InputTime" HeaderText="录入时间" DataFormatString="{0}" />
<x:BoundField DataField="WorkState" SortField="WorkState" HeaderText="任务状态" DataFormatString="{0}" />
</Columns>
</x:Grid>
复制代码
后台的
protected void wndItemList_AfterEdit(object sender, GridAfterEditEventArgs e)
{
Dictionary<int, Dictionary<string, string>> modifiedDict = wndItemList.GetModifiedDict();
var a= wndItemList.GetModifiedData();
}
复制代码
[attach]10440[/attach][attach]10439[/attach]
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4