Available Sub Categories<br /><telerik:RadListBox ID="rlbAvailableSubcategories" runat="server" Height="200px" Width="200px" AllowTransfer="true" TransferToID="rlbMappedSubcategories" TransferMode="Copy" ButtonSettings-ShowTransferAll="false" SelectionMode="Multiple" AllowDelete="false" AllowTransferOnDoubleClick="True" ButtonSettings-TransferButtons="TransferFrom"></telerik:RadListBox>Mapped<br /><telerik:RadListBox ID="rlbMappedSubcategories" runat="server" AllowTransferDuplicates="false" Height="200px" Width="200px" AllowDelete="true"></telerik:RadListBox><asp:CustomValidator ID="ValidateMappedSubcategories" EnableClientScript="True" runat="server" ErrorMessage="You must add at least 1 category" ClientValidationFunction="rlbMappedSubcategoriesHasItems" ControlToValidate="txtAddLongDesc" ValidateEmptyText="True" OnServerValidate="rlbMappedSubcategoriesHasItems_Validate" Display="Dynamic"></asp:CustomValidator><script type="text/javascript"> function rlbMappedSubcategoriesHasItems(source, args) { var list = $find("<%= rlbMappedSubcategories.ClientID %>"); args.IsValid = list.get_items().get_count() > 0; }</script><script type="text/javascript" language="javascript"> // Catches events fired by the RadGrid (paging) and jumps page to the top var postbackElement; Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest); Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded); function beginRequest(sender, args) { postbackElement = args.get_postBackElement(); } function pageLoaded(sender, args) { if (typeof (postbackElement) === "undefined") { return; } // Uses the MasterTable ClientID if ((postbackElement.id) === "ctl00_CphJam_ctl00_RadGrid1_ctl00") { window.scrollTo(0, 160); } } </script> void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e) {........ var result = blala.ValidateAndSave(...); if (result.ResultCode == ValidationResultCode.Ok) { AddMessage("The data were successfully validated and Saved!"); NewAllEntriesToAccount(); } else { AddMessage("Please check the data. The following errors were found: ");
AddErrorList(RadGrid1.Columns[meldung.SpaltenIndex].UniqueName); }GridEditableItem item = (GridEditableItem)e.Item; TextBox combo = (TextBox)item[itemm.ItemArray[0].ToString().Replace(" ", "")].Controls[0]; combo.BackColor = GetColor((ClArt)itemm.ItemArray[2]); if (IsInErrorList(itemm.ItemArray[0].ToString().Replace(" ", ""))) { combo.BorderStyle = BorderStyle.Solid; combo.BorderWidth = 2; combo.BorderColor = System.Drawing.Color.Red; }
After deploying the code to production server, I got the below mentioned error on login. We have recently upgraded the Telerik version to the latest 2012.3.1308.35 product version.
As per the below error, a method is missing from System.Web.UI but we can see that method in the Object Browser. Please provide some suggestions to resolve this issue.
Method not found: 'System.Web.UI.CompositeScriptReference System.Web.UI.ScriptManager.get_CompositeScript()'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'System.Web.UI.CompositeScriptReference System.Web.UI.ScriptManager.get_CompositeScript()'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MissingMethodException: Method not found: 'System.Web.UI.CompositeScriptReference System.Web.UI.ScriptManager.get_CompositeScript()'.] Telerik.Web.UI.RadScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) +0 System.Web.UI.ScriptManager.RegisterScripts() +261 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +117 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2060736 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
Version Information: Microsoft .NET Framework Version:2.0.50727.1891; ASP.NET Version:2.0.50727.1887
Hi
I have a RadGrid populated with sql datasource. I want to display a context menu on right clicking the rows.
what events I need to use and any sample code will be a great help....
Thanks
Shahi