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

We are using version 2011.3.1305.35

We have a radgrid which was in production for the past 10 years.

Last few days, we have been receiving errors when user tried to edit a row. This happens only in chrome and not on firefox. Even on chrome, it does not happen for everyone. For example , me and my colleague have the same version of Chrome browser. It happens regualrly on his browser. I do not get that error.

This issue started in the last 30 days.

Our Chrome version : 89.0.4389.90 

Any idea why we are having this issue and how we can fix this?

Thanks in Advance

Attila Antal
Telerik team
 answered on 29 Mar 2021
1 answer
106 views

What's the best way of keeping the selected row in the tree view when the timeview is changed.

i.e. keep the row highlighted when the user clicks on the day/week/month/year tab

Peter Milchev
Telerik team
 answered on 29 Mar 2021
5 answers
607 views

I have a web application which needs to create a spreadsheet and save it to disk. Here's what I have so far:

Imports Telerik.Web.Spreadsheet

Dim wb As New Workbook
Dim ws As New Worksheet
Dim r As Row

wb.Sheets = New List(Of Worksheet) From {ws}
ws.Rows = New List(Of Row)

r = New Row With {.Cells = New List(Of Cell)}
r.Cells.Add(New Cell With {.Value = "Spreadsheet Title", .FontSize = Convert.ToInt16(Unit.Point(12).Value)})
ws.Rows.Add(r)

r = New Row With {.Cells = New List(Of Cell)}
r.Cells.Add(New Cell With {.Value = Today.ToShortDateString, .TextAlign = TextAlign.Left})
ws.Rows.Add(r)

r = New Row With {.Cells = New List(Of Cell)}
r.Cells.Add(New Cell With {.Value = "Column Header"})

<more column headers>

ws.Rows.Add(r)

For Each dr As DataRow In ds.Tables(0).Rows
     r = New Row With {.Cells = New List(Of Cell)}
     If Not IsDBNull(dr("Field1")) Then r.Cells.Add(New Cell With {.Value = dr("Field1")})

     <more fields>

Next dr

ws.Rows.Add(r)

Dim strPath As String = My.Settings.DocPath & "ExcelReports\"
Dim strFileName As String = "Filename.xlsx"

wb.Save(New FileStream(strPath + strFileName, FileMode.Create), ".xlsx")

Problem: When the code gets to the Save statement, I get this error: "nullable object must have a value".

I don't know what this means. The strPath, strFileName and wb objects all have values, so I don't know what nullable object is being referenced.

Can anyone point out what I'm doing wrong? Or am I going about this whole thing the wrong way (entirely possible, since this is my first attempt at this)?

Matthew
Top achievements
Rank 1
Veteran
 answered on 28 Mar 2021
1 answer
199 views

<INPUT onclick="javascript:setTimeout('window['Control_RadAjaxManager'].AsyncRequest(\'Control$ShareRadioButton\',\'\')', 0)" 

Code Snippet:
private void AddAjaxResponseScripts()
        {
            this.RadAjaxManager.ResponseScripts.Add("Sample.Controls.init(); if(Sample.QueryAddEdit) { Sample.AddEdit.init(); } ");
        }
Here Escape characters are not getting loaded properly .Missing  Escape characters in window['Control_RadAjaxManager'].
Current Version of Telerik 2015.3.1111.35 with .NetFramework 4.8.

Can anyone please help on this issue?

Rumen
Telerik team
 answered on 26 Mar 2021
2 answers
126 views

Hi, I am trying to provide visual indicators within the date input field of the data picker of possible errors with a date selection. I am trying to do this on keyboard input or the date picker date selection.

If the date selected or entered is before a date on the page, I want to show the error field in an error colour as that date could create program with other data being displayed. It is not a fatal error more a visual error. However, I do not see how this can be done because it appears that the date picker control is caching the initial classes and if you mouse over, that initial class over writes what is there and the visual error indication is lost. Alternately, if I try to set the inline styles with JQuery, they do not stick.

Basically, the concept is simple, put in a date before a displayed date, highlight the background of the input field. If the field is highlighted and you change the date to equal or be after the displayed, it goes back to the normal rendered state.

Am I basically SOL here?

Matt Smith
Top achievements
Rank 1
 answered on 25 Mar 2021
7 answers
1.2K+ views
I am trying to set certain rows on my grid in edit mode automatically on page load based on the content of one of the columns. I have seen some examples on this forum where either all rows are automatically put into edit mode during PreRender or by manually selecting multiple rows and firing a command event.

Please provide some examples on how certain rows can be automatically be put in edit mode during page load.
Doncho
Telerik team
 answered on 25 Mar 2021
6 answers
514 views

The viewstate or application's pages are already encrypted but looking at the Burp output of the response from a POST to the Telerik.UI.DialogHandler (ImageMananger) it seems the Telerik view state in the response appears not to be.

We've generated and specified the DialogParametersEncryptionKey, ConfigurationEncryptionKey, and ConfigurationHashKey keys in the site level web.config as described in article https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/security. This didn't change the viewstate.
The machine key in IIS is set for auto-generation.
I'm only assuming the Telerik viewstate can be encrypted because what I've read seems to imply that, but I haven't found a clear example so I'm not sure.

Dhaval
Top achievements
Rank 2
 answered on 25 Mar 2021
5 answers
821 views

i have excel file saved in SQL database as byte format, now i want to convert this bytes into excel and render it over RadSpreadsheet

 

Below is my code by getting exception "Value of type 'Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx.XlsxFormatProvider' cannot be converted to 'Telerik.Web.UI.SpreadsheetProviderBase'"

Please help

01.Dim fileName As String = "Book1.xlsx"
02.Dim data() As Byte
03.Dim cmd As SqlCommand = New SqlCommand("select data from tblFiles")
04.data = GetData(cmd)
05. 
06.Dim memStream = New MemoryStream()
07.Dim binForm = New BinaryFormatter()
08.memStream.Write(data, 0, data.Length)
09.memStream.Seek(0, SeekOrigin.Begin)
10. 
11.Dim formatProvider As XlsxFormatProvider = New XlsxFormatProvider()
12.formatProvider.Import(memStream)
13.RadSpreadsheet1.Provider = formatProvider
Peter Milchev
Telerik team
 answered on 24 Mar 2021
11 answers
1.0K+ views

I have  a RadRadioButtonList on a ASP.Net page with 5 items in 3 columns.  With it set to 3 columns, the remaining 2 items go to another row which is what I would like to occur.  But what I am finding is that one of the remaining 2 items has text longer than the first item of the RadioButtonList which causes the columns to be misaligned.  Please see attached screenshot.  Note the column circled in red that is misaligned.

How do I get the columns to be aligned regardless of the length of the text?

Please help.  Thanks!

Sincerely,
Keith Jackson

Rumen
Telerik team
 answered on 24 Mar 2021
2 answers
220 views

Some of our users asked me if it is possible to format the html-code for better readability, some of the content was stored without newlines in the database and results in a pain to read in the html-mode when they need to make some minor changes. 

I'm not looking for something advanced more or less only some indentation and newlines.
Did not find anything useful when searching for this.. 

Alien Interactive AB
Top achievements
Rank 1
 answered on 24 Mar 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?