Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
243 views

We are using Telerik.Web.UI (version - 2012.2.607.40) in Asp.net application (.Net framework 4.6).

The application sometimes throws an exception and upon an investigation of IIS logs, we find that it is related to some Telerik issue.

please see attached log for details.

---------------------------------------

Exception 
   147.1999969482422 is not a valid value for Int32. at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(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.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) 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)  
   https://canon.mcf.gov.bc.ca:443/Adoptandfoster/ManageFamilyRegistrationsTab.aspx?Action=ManageFamilyRegistration&CaseID=73906 
   /Adoptandfoster/ManageFamilyRegistrationsTab.aspx 
Aman
Top achievements
Rank 1
 asked on 10 Nov 2022
0 answers
133 views

Hi Scenario is like when I have made a grouping in my kendo grid and after that if try to search the Id(int) of the grid it throws an error also my grid is server side . getting the error when I am trying to return the list from the controller also it works fine for other columns that are of type string . only the error is coming if we try to search after grouping .

return isGrouping ? Json(lstofToolAction.ToDataSourceResult(request), JsonRequestBehavior.AllowGet) : Json(new { Data = lstofToolAction, Total = total }, JsonRequestBehavior.AllowGet);
          



Error :

Provided expression should have string type\r\nParameter name: stringExpression filter.
Akshay
Top achievements
Rank 1
 asked on 09 Nov 2022
1 answer
137 views
I know we can add lines to a RadMap. I would like these lines to resemble arrows and have some curvature. Is it possible?
Valentin Dragnev
Telerik team
 answered on 09 Nov 2022
1 answer
112 views

Hello!

I wanted to know if there was a design where the hours of each day can be put under the header, horizontally, instead of vertically and on the sides.

This interests me because I am working on a project within my company and that format is the one I need, because I will be adding tasks for multiple people at once therefore tasks can be parallel as shown in the attached screenshot.

Thank you! 

Johnny
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 09 Nov 2022
1 answer
551 views

Hello there!

I've got a DAT file that I am trying to display its content in a RadTextBox. 

I've done that, however the problem is the formatting. I will be sharing screenshots of how I want it to be formatted and how it is actually formatting it. I've spent a few hours looking with no results therefore I hope a way exits to do this.

The image DatFile.png contains a screenshot of how my file looks like, with vertical and horizontal scrollbars to keep the text formatted in a readable way and only wrapping the text when the line is finished. If the line is too long, an horizontal scroll allows you to navigate and see the rest of the line without actually wrapping it to a new line and making it very hard to read.

The image code.png contains a screenshot of how it is being formatted in my RadTextBox.

The code below is the code of the RadTextBox on my aspx page

<telerik:RadTextBox ID="RadTextBox1" Runat="server" ReadOnly="True" TextMode="MultiLine" Resize="Both" Text='<%# Eval("FichierGrtn") %>' Width="1750px" Height="800px">
</telerik:RadTextBox>

After inserting the code above, I have just realized that the text box you guys used to insert the colored code is exactly the same thing I want for my text box to behave. I have included a screenshot for that as well under the name of "forums.png".

Please check all the attached screenshots in order to have a better idea regarding the problem I'm facing.

Thank you!

Doncho
Telerik team
 answered on 09 Nov 2022
1 answer
200 views

Hello!

I was trying to use the RadScheduler, therefore I went and checked out its demos and tried to download each one of them to test it and to make it work for me to better understand how that control works.

However, the problem is that none of the demos worked, each one of them either missed a file (xml) or a database (I recreated the used databases but I still had other errors)

Finally I tried this demo https://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultvb.aspx?show-source=true and still got errors after putting the needed xml file in the App_Code directory.

My final error was the following: "SchedulerWebService" is not declared.


Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
	If Not IsPostBack Then
		' Resets the example data on each page load.
		Session.Remove(SchedulerWebService.ProviderSessionKey)
	End If

End Sub


Protected Sub RadScheduler1_Load(sender As Object, e As EventArgs)
	'this code clears the sessionkey for demo related purposes
	Session.Remove(SchedulerWebService.ProviderSessionKey)
End Sub

Can you please provide me with a working code that I can test to be able to see how this scheduler works and then use it in my project? This is urgent.

Thank you!

Johnny
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 08 Nov 2022
1 answer
234 views

I'm having issues with attempting to use client-side databinding on a Grid (Version 2022 R2) to a simple JSON formatted string as described in the documentation.  The issue I'm having is that the MasterTableView is not exposed to the client and is always null.

Thanks for any help. 

Grid Markup:

 <telerik:RadGrid ID="GridDiag" runat="server" AutoGenerateColumns="false" Width="100%" Height="95%" AllowPaging="false" ShowGroupPanel="false" EnableViewState="false">
      <ClientSettings Scrolling-AllowScroll="true">   
          <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="false" AllowColumnResize="True"></Resizing>
       </ClientSettings>
   <MasterTableView Name="Diags" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="9pt" HeaderStyle-Width="200px" ItemStyle-Font-Size="9pt" Visible="true">
     <Columns>
       <telerik:GridBoundColumn DataField="UM_Row_ID" UniqueName="UM_Row_ID" DataType="System.Int32" Visible="false">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="Claim_Number" UniqueName="Claim_Number" DataType="System.String" Visible="false">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="Diag_Number" UniqueName="Diag_Number" DataType="System.Int32" HeaderText="Sequence">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="Diag_Code" UniqueName="Diag_Code" DataType="System.String"HeaderText="Code">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="Description" UniqueName="Description" DataType="System.String" HeaderText="Description">
       </telerik:GridBoundColumn>
       <telerik:GridBoundColumn DataField="Type" UniqueName="Type" DataType="System.String" HeaderText="Type">
       </telerik:GridBoundColumn> 
     </Columns>
   </MasterTableView>
 </telerik:RadGrid>

JS:

 function GetdiagGrid(recordid, claimid) {
            var source = document.getElementById("<%=hdnSource.ClientID%>").value;
            PageMethods.GetClaimDiagnosis(source, recordid, claimid, onSucsess, onFailure);

            function onSucsess(response) {
                var dxGrid = $find("<%=GridDiag.ClientID%>");
                var masterView = dxGrid.get_masterTableView();
                //masterView returns null value code errors on next line..
                masterView.set_dataSource(response);
                masterView.dataBind();
                
            }

Attila Antal
Telerik team
 answered on 07 Nov 2022
0 answers
122 views

How to attach doc/xlsx/pdf file from host located under virtual directory root to that virtual directory, following by storing its path to MSSQL db

having loading grid and its controls dynamically. experiencing lots of access issues have to use Sys. authentication w/o identity impersonation. cannot retrieve file path of posted file

Edward
Top achievements
Rank 1
 asked on 05 Nov 2022
1 answer
121 views
Is there a way to ensure the checklist items alignment is like a table with even sized columns and rows?
Peter Milchev
Telerik team
 answered on 04 Nov 2022
0 answers
114 views

i'm lost on this.  I have a rad dropdown list that if I run through debugger and step through, it binds correctly showing years 2017-2022 from a SQL Query.  This is the weird part... If I build and run it on the dev server, somehow the years are being bound -1, displaying 2016-2021.  I have done a find for every reference to the dropdown and it is only accessed on two occasions - page load and on change,  what. in. the. world. is going on with this thing?

i've tried clearing the DDL, creating a new instance of DataSet, iterated through the returned dataset and bound each row individually, and everything else just short of clapping 3 times & doing the hokey pokey.

 

                DDLyear.Items.Clear();
                string yrSQL = "select year4 as TEXT, year4 as VALUE  from " + INSERT_TABLE_NAME_HERE + " group by year4 ORDER BY YEAR4 DESC";
                DataSet ds = new DataSet();
                ds = GetDataSet(yrSQL);
                DDLyear.DataSource = ds;
                DDLyear.DataBind();

 

Attached screenshots show the results running in debug and on dev server. 

Mike
Top achievements
Rank 1
 asked on 03 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?