Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1109.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Telerik.Web.UI, Version=2010.3.1109.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4Telerik.Web.UI.xml and Telerik.Web.UI.dll were different versions. Hope this helps someone.We have wrapped the .Net TreeList control for our application. Once the ASP page is loaded and starts execution, we get on error stating that the ClientSettings.ClientEvents handlers are undefined. We have tried declaring the event handlers in the TreeList declaration of the TreeList in the .ascx file and setting the event handlers at run time in the .ascx.vb file.
We tried registering the client scripts which I don’t like having to place an entire function in a string. We have placed the reference function in the .ascx file and in a separate file which is then included in the outer .aspx file.
We have just upgraded to the latest version last week. I’m not sure what version. From Visual Studio, the Telerik About menu doesn’t display version information, just an advertisement.
What is the proper method of creating a user control with client side event handlers? We found several similar questions posted, but none of the answers appear to work for this version.
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. |
<telerik:RadGrid ID="radgrid1" AutoGenerateColumns="False" runat="server" GridLines="None" Skin="Office2007" CellSpacing="0" DataSourceID="radgrid1DataSource" OnItemInserted="radgrid1_ItemInserted" AllowAutomaticInserts="true" OnItemDataBound="radgrid1_ItemDataBound" OnItemCommand="radgrid1_ItemCommand" AllowAutomaticDeletes="true" ValidationSettings-EnableValidation="false"> <MasterTableView DataKeyNames="KeyID" EditMode="InPlace" AllowAutomaticInserts="true" AllowAutomaticDeletes="true"> <Columns> <telerik:GridBoundColumn DataField="KeyID" Visible="false" UniqueName="KeyID" HeaderText="<%$ Resources:GlobalResources, KeyID %>" /> <telerik:GridBoundColumn DataField="ProjectID" Visible="false" UniqueName="ProjectID" HeaderText="<%$ Resources:GlobalResources, ProjectID %>" /> <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="<%$ Resources:GlobalResources, Name%>" /> <telerik:GridNumericColumn DataField="InitialAmount" NumericType="Number" DataFormatString="{0:N}" DecimalDigits="2" UniqueName="InitialAmount" HeaderText="<%$ Resources:GlobalResources, InitialAmount%>" /> <telerik:GridTemplateColumn UniqueName="CurrencyCode" ItemStyle-Width="260px" HeaderText="<%$ Resources:GlobalResources, CurrencyCode %>"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "CurrencyCode") %> </ItemTemplate> <EditItemTemplate> <cc:CurrencyDropDownList ID="ddlCurrency" runat="server" IsAlertsVisible="false" IsLockVisible="false" IsHistoryVisible="false" IsFieldLabelVisible="false" IsReadOnly="false" IncludeNullValue="false" MyDropDownList-SelectedValue='<%# Bind("CurrencyCode") %>' /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridCheckBoxColumn DataField="ToDelete" UniqueName="ToDelete" HeaderText="Delete" /> <telerik:GridEditCommandColumn ButtonType="PushButton" InsertText="Confirm" EditText="Edit" CancelText="Cancel" UniqueName="EditCommandColumn" /> </Columns> <NoRecordsTemplate> No Records Found. </NoRecordsTemplate> <CommandItemTemplate> <table cellpadding="5" style="width: 100%"> <tr> <td align="left"> <asp:LinkButton ID="btnAddNewRecord" runat="server" CommandName="InitInsert"> <img style="border:0px" alt="" src="../Images/add.png" />Add New Record </asp:LinkButton> </td> <td align="right"> <asp:LinkButton ID="btnDeleteSelected" runat="server" CommandName="DeleteSelected" OnClientClick="javascript:return confirm('Delete all selected records?')"> <img src="../Images/delete.png" alt="" style="border:0px" />Delete Selected </asp:LinkButton> </td> </tr> </table> </CommandItemTemplate> </MasterTableView></telerik:RadGrid>protected void Page_Load(object sender, EventArgs e) { if (this.IsInEditMode) { for (int i = 0; i < this.radgrid1.PageSize; i++) { this.radgrid1.EditIndexes.Add(i); } this.radgrid1.Columns.FindByUniqueName("ToDelete").Visible = true; this.radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Bottom; } else { this.radgrid1.Columns.FindByUniqueName("ToDelete").Visible = false; this.radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None; } }protected void radgrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e != null) { if (e.Item is GridDataItem && !e.Item.IsInEditMode) { GridDataItem item = e.Item as GridDataItem; Button editButton = (Button)item.Controls[item.Controls.Count - 1].Controls[0]; editButton.Visible = false; } else if (e.Item is GridDataInsertItem && e.Item.IsInEditMode) { GridDataInsertItem item = e.Item as GridDataInsertItem; Button insertButton = (Button)item.Controls[item.Controls.Count - 1].Controls[0]; Button cancelButton = (Button)item.Controls[item.Controls.Count - 1].Controls[2]; insertButton.Visible = true; cancelButton.Visible = true; } else if (e.Item is GridDataItem && e.Item.IsInEditMode) { GridEditableItem item = e.Item as GridEditableItem; Button editButton = (Button)item.Controls[item.Controls.Count - 1].Controls[0]; Button cancelButton = (Button)item.Controls[item.Controls.Count - 1].Controls[2]; editButton.Visible = false; cancelButton.Visible = false; } } }