or
protected void Page_Load(object sender, EventArgs e){ // Put the grids into edit mode on the selected request for (int i = 0; i < RadGrid1.PageSize; i++) { RadGrid1.EditIndexes.Add(i); }}<telerik:RadButton ID="RadButton1" Skin="Default" Text="Save" Font-Underline="false" OnClick="RadButton1_Click" AutoPostBack="true" UseSubmitBehavior="false" runat="server" /><telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadButton1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Skin="Default" runat="server" />protected void RadButton1_Click(object sender, EventArgs e){ EISDataContext db = new EISDataContext(); // Get access to the grid edit item GridItem[] items1 = RadGrid1.MasterTableView.GetItems(GridItemType.EditFormItem); for (int i = 0; i < items1.Length; i++) { GridEditableItem item = (GridEditableItem)items1[i]; // LINQ code to update database... } // Reset the edit index and rebind the grid RadGrid1.EditIndexes.Clear(); RadGrid1.EditIndexes.Add(0); RadGrid1.Rebind();}function OnClientValidationFailed(sender, args) { try { var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length); if (args.get_fileName().lastIndexOf('.') != -1) {//this checks if the extension is correct if (sender.get_allowedFileExtensions().indexOf(fileExtention) == -1) { //alert("Wrong Extension!"); var msg = 'The file upload has failed because this is not an allowed extension. Allowed extensions are {0}.'; msg = msg.replace("{0}", sender.get_allowedFileExtensions()); radalert(msg, 400, 200, 'The file upload has failed.', null, null); } else { //alert("Wrong file size!"); var msg = 'The file upload has failed because the file is to large. Maximum file size allowed is {0} Kb.' msg = msg.replace("{0}", 4096000 / 1024); radalert(msg, 400, 200, 'The file upload has failed.', null, null); } } else { //alert("not correct extension!"); var msg = 'The file upload has failed because this is not an allowed extension. Allowed extensions are {0}.'; msg = msg.replace("{0}", sender.get_allowedFileExtensions()); radalert(msg, 400, 200, 'The file upload has failed.', null, null); } } catch (ex) { alert("JS Error #1311161741:" + ex); } setTimeout(function () { sender.deleteFileInputAt(0); }, 10);}
aComboBox(aTextBoxCount) = New TextBox aComboBox(aTextBoxCount).TextMode = TextBoxMode.MultiLineaComboBox(aTextBoxCount).ReadOnly = TrueaEditButton(aTextBoxCount) = New RadButtonaEditButton(aTextBoxCount).Text = "Edit"aEditButton(aTextBoxCount).ID = aTextBoxCountaEditButton(aTextBoxCount).AutoPostBack = TrueAddHandler aEditButton(aTextBoxCount).Click, AddressOf EditTextaComboBox(aTextBoxCount).ID = "aComboBox" & aTextBoxCountaComboBox(aTextBoxCount).Width = TextBoxWidthaComboBox(aTextBoxCount).DataBind()aComboBox(aTextBoxCount).Text = "" RadMultiPage1.PageViews(cCheckBoxTab).Controls.Add(New LiteralControl("<table><tr><td style=""width: 45px""></td><td>"))RadMultiPage1.PageViews(cCheckBoxTab).Controls.Add(aComboBox(aTextBoxCount))RadMultiPage1.PageViews(cCheckBoxTab).Controls.Add(New LiteralControl("</td><td>"))RadMultiPage1.PageViews(cCheckBoxTab).Controls.Add(aEditButton(aTextBoxCount))RadMultiPage1.PageViews(cCheckBoxTab).Controls.Add(New LiteralControl("</td></tr></table>"))

