so I wired up a OnBlur client event on the only column in the Edit Mode not read-only
the function fires well and good and triggers an Ajax request which works then - nothing
the column
why won't it work?
the function fires well and good and triggers an Ajax request which works then - nothing
<
telerik:RadCodeBlock
ID
=
"rcBlock"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
<!--
function rntbQty_OnBlur(sender, eventArgs) {
alert('clear edit item');
var theMan = $find("<%= raManager.ClientID %>");
theMan.ajaxRequest("CloseEdits");
}
-->
</
script
>
</
telerik:RadCodeBlock
>
<
telerik:RadAjaxManager
ID
=
"raManager"
OnAjaxRequest
=
"raManager_AjaxRequest"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rgEditOrder"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rgEditOrder"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtbStart1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtbEnd1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtbStart2"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtbEnd2"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtbStart3"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"rtbEnd3"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"txtStoreHidden"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"txtChain"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:GridTemplateColumn
UniqueName
=
"Qty"
HeaderText
=
"Cases"
DataField
=
"Qty"
DataType
=
"System.Int32"
Aggregate
=
"Sum"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblQty"
Text='<%# Bind("Qty") %>' Width="32px" runat="server" />
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadNumericTextBox
ID
=
"rntbQty"
DBValue='<%# Eval("Qty") %>' OnTextChanged="rntbQty_TextChanged" MinValue="0" MaxValue="99999" MaxLength="5" AutoPostBack="True" Width="32px" runat="server">
<
NumberFormat
DecimalDigits
=
"0"
GroupSeparator
=
""
/>
<
ClientEvents
OnBlur
=
"rntbQty_OnBlur"
/>
</
telerik:RadNumericTextBox
>
</
EditItemTemplate
>
<
HeaderStyle
Width
=
"32px"
/>
</
telerik:GridTemplateColumn
>
protected
void
raManager_AjaxRequest(
object
sender, AjaxRequestEventArgs e)
{
foreach
(GridItem gItem
in
rgEditOrder.EditItems)
{
if
(gItem
is
GridEditableItem)
{
GridEditableItem geItem = (GridEditableItem)gItem;
geItem.Edit =
false
;
}
}
rgEditOrder.Rebind();
}