Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
214 views
I upgraded my sharepoint solution from the 2008 version of Telerik to the latest 2013 version

i replaced, the old assembly reference w/ the one in the documentation and on other forum posts to remove the version information.
i followed the upgrade instructions that telerik provides.

everything builds properly, and deploys, but when i bring up the page in sharepoint 2013 it displays the message
"Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.
Technical Details


Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: c48e6a9c-9b59-80cf-23a0-53953f3ba395

Date and Time: 1/15/2014 11:32:44 AM
"

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" Version="2013.3.1114.35", Culture="neutral", PublicKeyToken="121fae78165ba3d4" %>

all three DLLs have been placed in the GAC, and included in the package in the sharpoint web solution.

thanks
Slav
Telerik team
 answered on 20 Jan 2014
1 answer
269 views
I have a Grid tat is displaying data.  I am providing a string that contains numbers, and the grid is removing leading zeros.  How can I alter this behavior?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2014
3 answers
119 views
I have an application in ASP .NET Framework 4.0, one page have a radcombobox and this control works fine in IE8, IE9 and IE10 but recently the page was tested on IE11 and the results were not good.

The code for the radcombobox:
<rad:RadComboBox ID="cmbRegWT" Width="100%" style="min-width:230px;" OnSelectedIndexChanged="cmbReg_Change" CloseDropDownOnBlur="true"
ShowDropDownOnTextboxClick="true" runat="server" Height="350px"  MarkFirstMatch="true"
SelectOnTab="true" DataValueField="wtValue" DataTextField="wtDisplayText" 
HighlightTemplatedItems="true" DropDownWidth="400px" OffsetX="0" EmptyMessage="Velg lønnsart"
AutoPostBack="true" Filter="Contains">

BUG1: I've got an error telling me that the selectedvalue is not selected when someone press a ImageButton
(<asp:Imagebutton ID="btnSaveReg" runat="server" Enabled="false" 
ImageUrl="~/Design/Time/regSave.png" OnClientClick="return CheckDayTotals(this);" OnCommand="saveReg" />

). ErrorSFP24.png

BUG2: cmbRegWT list is also cleared for elements when I select another element and return the cmbRegWT. ErrorSFP24-2.png.


I followed the code and the results were:
BUG1: Property EmptyMessage enter in the "cmbReg_Change" event before enter the correct code behind event for the "btnSaveReg".
Enter in two sub code behind instead one.
BUG2: Automatically filter (Filter="Contains") in the combobox when the user back the cmbRegWT and the user thinks that the items were deleted.

This behavior is not correct because this events was firing by this properties. I have RadControls for ASP.NET AJAX Q3 2013, please I need help to solve this issues with Internet Explorer 11. As, I said in earlier versions of explorer works fine.








Aneliya Petkova
Telerik team
 answered on 20 Jan 2014
1 answer
69 views
Hi,
I noticed currently no API is available to bind TreeList data from client side. Is there a plan to support this in  the near future?
Thanks,

Abi
Maria Ilieva
Telerik team
 answered on 20 Jan 2014
11 answers
1.8K+ views
I have a project created in Windows XP, Visual Studio 2008 & Telerik Rad Controls Q2 2009 SP1 (I think Q2 2009 SP1).

I have upgraded to Windows 7 and Visual Studio 2010 and Telerik Rad Controls Q1 2010 SP2.

I am now getting the following error in my browser:

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies.This assembly is built by a runtime newer than the currently loaded runtime andcannot be loaded.

I have searched and read many threads, but all attempts lead to nothing. I have the correct files in my local bin folder and can find no reference relating to the error in my web.config file.

I need some assistance to solve the issue.

Below is the full error displayed in my browser:


Server Error in '/' Application. 
-------------------------------------------------------------------------------- 
 
Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.  
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.BadImageFormatException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 
 
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.   
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded. 
 
 
WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 
 
  
 
Stack Trace:  
 
 
[BadImageFormatException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.] 
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 
   System.Reflection.Assembly.Load(String assemblyString) +28 
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46 
 
[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.] 
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54 
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600 
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125 
   System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31 
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304 
 
[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.] 
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729 
 
[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.] 
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659 
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333 
 
  
 
 
-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927  

Petar
Telerik team
 answered on 20 Jan 2014
2 answers
80 views
I need to format few strings when in edit mode. In line I have done it with the designer.
This is the code I am using for the formatting in edit mode:

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
         
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem edit = (GridEditableItem)e.Item;
                TextBox txt = (TextBox)edit["Due"].Controls[0];
                string dataFormatString = (RadGrid1.MasterTableView.GetColumn("Due") as GridBoundColumn).DataFormatString;
                txt.Text = String.Format(dataFormatString, double.Parse(txt.Text));
            }
 
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem edit = (GridEditableItem)e.Item;
                TextBox txt = (TextBox)edit["Paid"].Controls[0];
                string dataFormatString = (RadGrid1.MasterTableView.GetColumn("Paid") as GridBoundColumn).DataFormatString;
                txt.Text = String.Format(dataFormatString, double.Parse(txt.Text));
            }
 
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem edit = (GridEditableItem)e.Item;
                TextBox txt = (TextBox)edit["Expenses"].Controls[0];
                string dataFormatString = (RadGrid1.MasterTableView.GetColumn("Expenses") as GridBoundColumn).DataFormatString;
                txt.Text = String.Format(dataFormatString, double.Parse(txt.Text));
            }
 
 
    }
The problems I have are the following:

1) When I click add a new row I get an exception because the text boxes are still empty, so the above methods try to format a null value. I do I get around this problem ?
2) The above code formats the numeric string, how do I format the other fields containing date time? I need {0:MMM/yyyy}

Thanks for supporting,
Felice
Felice
Top achievements
Rank 1
 answered on 20 Jan 2014
7 answers
474 views
Hi,
   I have a page with editor(say id = editor1) on it. On click of a button i'm opening a popup window and after selection of some text user closes that button. That selected text should come in editor. i am firing on client close event of window with the code

function OnCloseSentenceGalleryRadWindow(oWnd, args) {
        var arg = args.get_argument();
        if (arg) {
            var Sentence = arg.Sentence;
            var ctrl = arg.ControlId;
            ctrl = document.getElementById(ctrl);
            ctrl.innerHTML = Sentence;
        }
    }
text is coming in editor but editor changes into a Readonly text box. where i can't type of edit any thing.

Please help to get out of it.
waiting for early reply;
Lahiru
Top achievements
Rank 1
 answered on 20 Jan 2014
1 answer
153 views
Hi All

I tried the below link
 Persisting CheckBox control state in GridTemplateColumn on rebind
But there is Autopostback = "true" in the checkbox template which causes the selected checkbox unchecked.  It is not working.

 

<telerik:RadGrid ID="RGBankCash" runat="server"

 

GridLines="None" Skin="Vista" Width="500px"

 

OnItemDataBound="RGBankCash_ItemDataBound" >

 

<AlternatingItemStyle BackColor = "White" />

 

<ClientSettings > <Selecting AllowRowSelect="true" /> </ClientSettings>

 

<MasterTableView AutoGenerateColumns="False" DataKeyNames="CAKey" AllowFilteringByColumn="True" >

 

<RowIndicatorColumn>

 

<HeaderStyle Width="20px"></HeaderStyle>

 

</RowIndicatorColumn>

 

<ExpandCollapseColumn>

 

<HeaderStyle Width="20px"></HeaderStyle>

 

</ExpandCollapseColumn>

 

<Columns>

 

<telerik:GridBoundColumn DataField="CAKey" DataType="System.Int32"

 

HeaderText="CAKey" ReadOnly="True" SortExpression="CAKey"

 

UniqueName="CAKey" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn DataField="IsTrue" DataType="System.Int32"

 

HeaderText="IsTrue" ReadOnly="True" SortExpression="IsTrue"

 

UniqueName="IsTrue" Visible="False">

 

</telerik:GridBoundColumn>

 

<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="MasterTemplate" HeaderText="Select">

 

<HeaderTemplate>

 

<input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server" type="checkbox" />

 

</HeaderTemplate>

 

<ItemTemplate>

<%

 

-- <telerik:radwindow runat="server" id="RadWindow1" visibleonpageload="false">

<ContentTemplate>

--

 

 

%>

<%

 

-- <asp:UpdatePanel ID="UpdatePanel1" runat="server" OnUnload="UpdatePanel_Unload">

<Triggers>

<asp:AsyncPostBackTrigger ControlID="RGBankCash" EventName="Click" />

</Triggers>

<contenttemplate>--

 

 

%>

 

<asp:CheckBox runat="server" ID="chkUpdate" OnCheckedChanged="CheckChanged" />

<%

 

-- </contenttemplate>

</asp:UpdatePanel > --

 

 

%>

<%

 

-- </ContentTemplate>

</telerik:radwindow> --

 

 

%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="TransMonth"

 

HeaderText="Trans Month" UniqueName="TransMonth">

 

<ItemTemplate>

 

<asp:Label ID="TransMonthLabel" runat="server"

 

Text='<%# Eval("TransMonth") %>'></asp:Label>

 

</ItemTemplate>

 

<HeaderStyle Width="250px" />

 

</telerik:GridTemplateColumn>









 

protected void CheckChanged(Object sender, System.EventArgs e)

{

 

CheckBox box = (CheckBox)sender;

 

GridDataItem item = (GridDataItem)box.NamingContainer;

 

Hashtable target = null;

 

if (item.OwnerTableView.DataKeyNames.ToString() == "CAKey")

{

target = CAKeyChecked;

}

 

if (box.Checked)

{

target[item[

 

"CAKey"].Text] = true;

}

 

else

{

target[item[

 

"CAKey"].Text] = null;

}

}

 

private Hashtable CAKeyChecked

{

 

get

{

 

object res = ViewState["_cc"];

 

if (res == null)

{

res =

 

new Hashtable();

ViewState[

 

"_cc"] = res;

}

 

return (Hashtable)res;

}

}

 

 

 

 

 

protected void RGBankCash_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

{

 

 

 

 

 

DataSet ds1 = new DataSet();

ds1 = SelectDistinctCompanySubmitted();

 

 

 

 

 

string transmonth = this.rcboMonth.SelectedValue + this.rcboFiscalYear.SelectedValue;

 

 

 

 

 

for (int i = 0; i < ds1.Tables[0].Rows.Count; i++)

{

 

 

 

 

 

//foreach (DataRow r in ds1.Tables[0].Rows)

 

 

 

 

 

//{

 

 

 

 

 

string compkey = ds1.Tables[0].Rows[i]["companykey"].ToString();

 

 

 

 

 

bool chk = FindoddCompany(Int32.Parse(compkey));

 

 

 

 

 

if (chk == true)

{

 

 

 

 

 

//Trigger Reject Email to Accountant

 

 

 

 

 

// CommonClass.TriggerEmailToAccByCHQ(compkey, transmonth);

 

 

 

 

 

//Reset Submit status

 

 

 

 

 

//conn.Open();

 

 

 

 

 

//SqlCommand cmd1 = new SqlCommand("Update CashAnalysisDetail_Tbl Set IsSubmitted = 0 where CompanyKey = " + Int32.Parse(compkey) + " and TransMonth = '" + transmonth + "'", conn);

 

 

 

 

 

//cmd1.ExecuteNonQuery();

 

 

 

 

 

//conn.Close();

}

 

 

 

 

 

else

{

 

 

 

 

 

if (e.Item is GridDataItem)

{

 

 

 

 

 

string sqlst1 = "SELECT CAKey from CashAnalysisDetail_Tbl where CompanyKey = " + compkey + " and Transmonth = '" + transmonth + "' and IsSubmitted = 1 and ReportStatus='A'";

cn =

 

 

 

 

 

new SqlConnection(connString);

cn.Open();

 

 

 

 

 

SqlCommand cmd = new SqlCommand();

cmd.CommandText = sqlst1;

cmd.Connection = cn;

 

 

 

 

 

SqlDataAdapter adapter = new SqlDataAdapter();

adapter.SelectCommand = cmd;

 

 

 

 

 

DataSet ds = new DataSet();

adapter.Fill(ds,

 

 

 

 

 

"dt1");

 

 

 

 

 

for (int j = 0; j < ds.Tables[0].Rows.Count; j++)

{

 

 

 

 

 

GridDataItem dataItem = (GridDataItem)e.Item;

 

 

 

 

 

string CAKey = ds.Tables[0].Rows[j]["CAKey"].ToString();

 

 

 

 

 

if (Int32.Parse((e.Item as GridDataItem).OwnerTableView.DataKeyValues[e.Item.ItemIndex]["CAKey"].ToString()) == Int32.Parse(CAKey))

{

dataItem.BackColor = System.Drawing.

 

 

 

 

 

Color.Yellow;

dataItem.Font.Bold =

 

 

 

 

 

true;

}

 

}

}

}

}

 

 

 

 

 

 

if (e.Item is GridDataItem)

{

 

 

 

 

 

GridDataItem item = e.Item as GridDataItem;

 

 

 

 

 

CheckBox box = (CheckBox)item.FindControl("cbChecked");

 

 

 

 

 

object isChecked = null;

 

 

 

 

 

if (item.OwnerTableView.DataMember == "CAKey")

{

isChecked = CAKeyChecked[item[

 

 

 

 

 

"CAKey"].Text];

}

 

 

 

 

 

//if (item.OwnerTableView.DataMember == "Customers1")

 

 

 

 

 

//{

 

 

 

 

 

// isChecked = Customers1Checked[item["CustomerID"].Text];

 

 

 

 

 

//}

 

 

 

 

 

//if (item.OwnerTableView.DataMember == "Customers2")

 

 

 

 

 

//{

 

 

 

 

 

// isChecked = Customers2Checked[item["CustomerID"].Text];

 

 

 

 

 

//}

 

 

 

 

 

if (isChecked != null)

{

box.Checked = (

 

 

 

 

 

bool)isChecked == true;

}

}

}

Please help me.
Angel Petrov
Telerik team
 answered on 20 Jan 2014
2 answers
532 views
<telerik:RadDropDownList ID="RadDropDownList5" runat="server" AutoPostBack="true"  DataValueField="category" SelectedValue='<%#Bind("category") %>'  OnSelectedIndexChanged="category_selectedindexchaged" >
        <Items>
                                                       <telerik:DropDownListItem Text="India" Value='India' />
                                                       <telerik:DropDownListItem Text="International" Value='International' />
                                                   </Items>
       </telerik:RadDropDownList>
 
       <telerik:RadDropDownList ID="RadDropDownList6" runat="server"  >
         
       </telerik:RadDropDownList>
  
i want to fill the items in second dropdownlist based on the selection from the first static dropdownlist. how can i do it?? 
Tanvi
Top achievements
Rank 1
 answered on 20 Jan 2014
2 answers
118 views
We are used well before chrome update version 32 today.
Problem found if we used RadEditor inside dynamic UserControl .
 - All Font Color/BK,Font,Size not working.
 - Table Design button not effect.
 - Insert Symbol not working.
 - Custom botton (link) not working

IE10 and Firefox and Safari last version it working with out above problem.

Please Help.
วรวุฒิ
Top achievements
Rank 2
 answered on 20 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?