在 jqgrid 中删除一行时,我想在服务器返回 500 错误时返回自定义错误文本。我正在为 ASP.NET 使用 jqGrid,并且网格似乎没有“loadError”事件
有人做过吗?
jqGrid 是这样定义的
<trirand:JQGrid runat="server" ID="Jqgrid" ShrinkToFit="true" Width="900px" Height="500" PagerSettings-PageSize="20" PagerSettings-PageSizeOptions="[20,50,100]" OnSearching="JQGrid_Searching" OnSorting="JQGrid_Sorting" OnRowEditing="JQGrid_RowEditing" OnRowDeleting="JQGrid_RowDeleting">
<Columns>
<trirand:JQGridColumn DataField="ID" PrimaryKey="True" Width="40" Visible="False" />
<trirand:JQGridColumn DataField="NAME" SearchType="DropDown" Width="55" SearchControlID="ddlNameFilter"
HeaderText="Name" Editable="true">
<EditClientSideValidators>
<trirand:RequiredValidator />
</EditClientSideValidators>
</trirand:JQGridColumn>
<trirand:JQGridColumn DataField="DESCR" SearchType="DropDown" Width="55" SearchControlID="ddlDescrFilter"
Searchable="True" HeaderText="Descr" Editable="true">
<EditClientSideValidators>
<trirand:RequiredValidator />
</EditClientSideValidators>
</trirand:JQGridColumn>
<trirand:JQGridColumn HeaderText=" " EditActionIconsColumn="true" Width="50" EditActionIconsEditEnabled="false"
CssClass="clickable" />
</Columns>
<ClientSideEvents LoadComplete="loadComplete" ColumnSort="columnSort" RowDoubleClick="editRow">
</ClientSideEvents>
<ToolBarSettings ShowSearchToolBar="True" ToolBarPosition="TopAndBottom">
</ToolBarSettings>
<PagerSettings NoRowsMessage="No rows to display" />
<ExportSettings ExportDataRange="All" />
</trirand:JQGrid>