Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views

The calendar gets cut in half when adding an appointment. This issue is happening in all the browsers .

Telerik version:- 2016.1.113.45

 

Shiva
Top achievements
Rank 1
 answered on 20 Oct 2017
8 answers
643 views

Hi,

I'm trying to use jQuery to set a selected item in a RadComboBox. This is my HTML:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="EBuild.PWMS.UI.Pages.TestPage" %>
<%@ Register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <table>
            <tr>
                <td>Buyer: </td>
                <td>
                    <telerik:RadComboBox ID="RadComboBoxBuyers"
                        DataValueField="Id" DataTextField="PickerName"
                        DataSourceID="SqlDataSource1"
                        EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true"
                        EnableVirtualScrolling="true" ItemsPerRequest="10"
                        runat="server">
                    </telerik:RadComboBox>
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource1"
            ConnectionString="<%$ ConnectionStrings:APPDB %>"
            ProviderName="System.Data.SqlClient"
            SelectCommand="usp_GetUsersBuyers"
            SelectCommandType="StoredProcedure"
            runat="server">
            <SelectParameters>
                <asp:Parameter Name="IsSearch" Type="Boolean" DefaultValue="True" />
            </SelectParameters>
        </asp:SqlDataSource>
    </form>
</body>
</html>

The problem is I'm not able to get a reference to the ComboBox. I searched the forum and found a bunch of code snippets but none of them works. This is what I tried:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
    $(document).ready(function () {
        el = $find("RadComboBoxBuyers"); // returns null
        el = $("form").find("[id='RadComboBoxBuyers']"); // el.findItemByValue is undefined
        el = $telerik.$("#RadComboBoxBuyers"); // el.findItemByValue is undefined
    });
</script>
</telerik:RadCodeBlock>

I have hard-coded the name of the control to "RadComboBoxBuyers" in the above code because I know that it is the correct ClientID.

Any suggestions?

Thanks,

Leszek

 

 

Leszek
Top achievements
Rank 1
 answered on 20 Oct 2017
0 answers
159 views

As of R2 2017 SP2 the temporary files saved to the disk or via InputStream have the .tmp extension, which could break your existing file save logic. This change is due to the security improvement explained in the Insecure Direct Object Reference article.

If the .tmp extension causes any trouble, you can strip it programmatically.

 

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 20 Oct 2017
5 answers
935 views
When Chrome browser is zoomed in/out System.FormatException: Input string was not in a correct format error is thrown. This is an issue introduced with the latest version of Chrome browser (39.0.2171.71) which started setting the scroll position as a floating point number rather than an integer. The affected Telerik controls are: RadScheduler, RadListBox, RadTreeView. This problem has been addressed in the Q3 2014 SP1 release, but if you are currently unable to upgrade use the code snippet solutions below:

RadScheduler:
<script type="text/javascript">
       Telerik.Web.UI.RadScheduler.prototype.saveClientState = function () {
           return '{"scrollTop":' + Math.round(this._scrollTop) + ',"scrollLeft":' + Math.round(this._scrollLeft) + ',"isDirty":' + this._isDirty + '}';
       }
</script>

RadListBox:
<script type="text/javascript">
      Telerik.Web.UI.RadListBox.prototype.saveClientState = function () {
          return "{" +
          "\"isEnabled\":" + this._enabled +
          ",\"logEntries\":" + this._logEntriesJson +
          ",\"selectedIndices\":" + this._selectedIndicesJson +
          ",\"checkedIndices\":" + this._checkedIndicesJson +
          ",\"scrollPosition\":" + Math.round(this._scrollPosition) +
          "}";
      }
  </script>

RadTreeView:
<script type="text/javascript">
       Telerik.Web.UI.RadTreeView.prototype.saveClientState = function () {
           return "{\"expandedNodes\":" + this._expandedNodesJson +
           ",\"collapsedNodes\":" + this._collapsedNodesJson +
           ",\"logEntries\":" + this._logEntriesJson +
           ",\"selectedNodes\":" + this._selectedNodesJson +
           ",\"checkedNodes\":" + this._checkedNodesJson +
           ",\"scrollPosition\":" + Math.round(this._scrollPosition) + "}";
       }
   </script>

Rumen
Telerik team
 answered on 20 Oct 2017
23 answers
2.1K+ views
We started getting this error message on all the pages that uses RadListBox. But only few clients are getting this issue. This is definitely not the data issue since all the users would be getting the error.

We are using  version 2011.3.1305.35 Telerik Ajax Controls.

System.Exception: 337.7143 is not a valid value for
Int32. ---> System.FormatException: Input string was not in a correct
format.

   at
System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

   at
System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo
formatInfo)

   at
System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext
context, CultureInfo culture, Object value)

   --- End of inner
exception stack trace ---

   at
System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext
context, CultureInfo culture, Object value)

   at
System.ComponentModel.TypeConverter.ConvertFromInvariantString(String text)

   at
System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object
o, Type type, JavaScriptSerializer serializer, Boolean throwOnError,
Object& convertedObject)

   at
System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object
o, Type type, JavaScriptSerializer serializer, Boolean throwOnError,
Object& convertedObject)

   at
System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object
propertyValue, Object o, String memberName, JavaScriptSerializer serializer,
Boolean throwOnError)

   at
System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2
dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError,
Object& convertedObject)

   at
System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object
o, Type type, JavaScriptSerializer serializer, Boolean throwOnError,
Object& convertedObject)

   at
System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object
o, Type type, JavaScriptSerializer serializer, Boolean throwOnError,
Object& convertedObject)

   at
System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer
serializer, String input, Type type, Int32 depthLimit)

   at
System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String
input)

   at
Telerik.Web.UI.RadListBox.LoadPostData(String postDataKey, NameValueCollection
postCollection)

   at
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean
fBeforeLoad)

   at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

   --- End of inner
exception stack trace ---

   at
System.Web.UI.Page.HandleError(Exception e)

   at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

   at
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest()

   at
System.Web.UI.Page.ProcessRequest(HttpContext context)

   at
ASP.frm_clientservices_aspx.ProcessRequest(HttpContext context)

   at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously).  
Rumen
Telerik team
 answered on 20 Oct 2017
1 answer
456 views

We are looking at upgrading our .NET application from 3.5 to 4.7 and I am wondering what version of the Telerik Controls would be suitable for .NET 4.7

We are currently using 2014.1.403.35

I found that .NET 4.6 is supported from 2015.2.826, but could see no mention of .NET 4.7

Rumen
Telerik team
 answered on 20 Oct 2017
1 answer
44 views

Hey, 

Is it possible to give the user the option to switch between week view and work week view? 

Let me know - Thanks,
Samara 

Peter Milchev
Telerik team
 answered on 19 Oct 2017
1 answer
576 views

Hello,
I am using a RadGrid with EditFormSettings EditFormType="Template". 
I would like to add inside the <FormTemplate> a user control that resides in another library that I had created as an embedded resource library as described here: https://www.codeproject.com/kb/user-controls/embeddedusercontrol.aspx.
The problem I'm facing is that  when trying to display the edit form, in  Page_Load event inside my user control,  all inner components (textboxes, radwindows, etc.) are null. 
What am I doing wrong? 

Another alternative I had thought about would be to wrap my formtemplate in a usercontrol that I would like to store in my controls library. In this case, 
what would be the UserControlPath? I have found an example with applications root reference (UserControlPath="~/WebUserControl.ascx"), but I was not able to point it to a different assembly.
Is there any way of creating the user control in code behind and set it to the grid edit form?

Any help would be appreciated. Thanks in advance.
Rumen
Telerik team
 answered on 19 Oct 2017
3 answers
579 views

hi

I need older  version

Telerik Reporting Version=4.2.10.1221

Telerik.Web.UI Version=2012.2.607.40

where can i find download link?

Thank you in advance.

Massimo

 

 

Kathryn
Telerik team
 answered on 19 Oct 2017
0 answers
90 views

Hi there.

We're working on a project with RadGrid controls that are doing batch updates.

The event that we have attached to the update event (RadGridActionGroup_UpdateCommand) has 2 parameters where we're sending to the db for updates.

protected void RadGridActionGroup_UpdateCommand(object sender, GridCommandEventArgs e)
   {
       try
       {
           Hashtable newValues = (e.CommandArgument as GridBatchEditingEventArgument).NewValues;
 
           performActionGroupModelUpdate(newValues);
       }
       catch (Exception ex)
       {
           ConfigurationController.AddMessage(ex.Message.ToString());
       }
   }

 

When a user updates only one field in a row of say, five values, I would expect that only changed values would be sent to this event method, however even though only one field was changed, all of the values (updated as well as non-updated) are sent to to this event.

Is this by design or am I doing something wrong?

 

Thanks in advance

JazzBox
Top achievements
Rank 1
 asked on 19 Oct 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?