How can I delete all selected rows on the client in RadGrid without doing a postback?
I already use a GridClientDeleteColumn for individual rows (with a single postback later).
I want to select several rows and achieve the same effect. I found MasterTableView.deleteSelectedItems() but it does a postback. Should I cancel it? Can I use MasterTableView._clientDelete(event) directly?
Thank you.
function disableEnterKey(sender, eventArgs)
{
var key = eventArgs.get_keyCode();
if(key && key == 13)
eventArgs.set_cancel(
true);
}
<telerik:RadNumericTextBox
ShowSpinButtons="False"
Skin="Office2007"
Type="Currency"
width="155px"
ID="txtUnitPrice"
runat="server" DbValue='<%# Bind("UNIT_SELLING_PRICE") %>' InvalidStyleDuration="100"
MinValue='<%#Convert.ToDouble(ConfigurationManager.AppSettings["MinNumber"].ToString())%>'
MaxValue='<%#Convert.ToDouble(ConfigurationManager.AppSettings["MaxNumber"].ToString())%>'
>
<NumberFormat AllowRounding="True" KeepNotRoundedValue="False" />
<ClientEvents OnKeyPress="disableEnterKey" />
</telerik:RadNumericTextBox>
| protected void Page_Load(object sender, EventArgs e) |
| { |
| // Load the control, then |
| MyControl.PanelBar.ItemDataBound += ... |
| } |
| <uc1:MyControl runat="server" ID="MyControl" OnPanelBarItemDataBound="..." /> |