Telerik Forums
Community Forums Forum
1 answer
46 views

Hi, 

I have been exploring on how to use ObjectDataSource and manage to make it work but I am encountering an error when passing parameter with Multi-value

HourlyTicketODS DataSource : Object must implement IConvertible.

I searched on online and based on the answers provided i should change the parameter type to object[] however it still doesn't work.  I tried string[], IEnumerable<string>, IEnumerable<object>, List<object> and List<string>  still the same.

Solutions i found on the internet but doesn't work:

https://docs.telerik.com/reporting/knowledge-base/object-must-implement-iconvertible

https://www.telerik.com/forums/objectdatasource-and-multivalue-parameter

 

Using =JOIN() and making the method's parameter as string works. Is it really doable to pass array? because on the documentation it states that

 "The Data Source Components are based on ADO.NET and ADO.NET does not allow a collection of values to be passed. The SqlDataSource Component however supports parametrized SQL queries by associating the report parameters with placeholders in the SelectCommand query. "

My config and code for reference

 

 

using System.ComponentModel; using System.Diagnostics; namespaceTelerikReportData { public class HourlyTicket { publicint Id { get; set; } publicstring Category { get; set; } = string.Empty; publicstring Status { get; set; } = string.Empty; } [DataObject] public class HourlyTickets { [DataObjectMethod(DataObjectMethodType.Select)] public List<HourlyTicket> GetHourlyTickets(DateTime from, DateTime to, object[] categories) { Debug.WriteLine($"HOURLY TICKET ODS | Date Range Params: From = {from.ToString()}, To = {to.ToString()}"); //Debug.WriteLine($"HOURLY TICKET ODS | Categories = {categories}");return [new HourlyTicket { Id = 1, Category = "Load Reprocessing", Status = "ongoing" }]; } } }

Ryan
Top achievements
Rank 1
 answered on 04 Nov 2024
1 answer
50 views
Good Day

We have an Angular frontend that is using version: "14.21.915" of the Angular Report Viewer:     "@progress/telerik-angular-report-viewer": "14.21.915".  Currently, we can't upgrade off over Angular v15-LTS because of that package, so our backend was thinking of upgrading their side to use R1 2019 SP1 (13.0.19.222).

What versions of the "@progress/telerik-angular-report-viewer" are compatible with that backend service?  If I try to up upgrade off the version we're currently using, I get an error when the report view tries to load, the version I attempted to use was: 16.22.804.

"Cannot access the Reporting REST service <address> Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)"

The CORS setting is completely open, so there is no CORS error.

But can move to Angular 16+, so we're hoping that backend service upgrade will resolve that issue.

Thanks
Dimitar
Telerik team
 answered on 24 Oct 2024
2 answers
39 views

Hello,

I have a web page with a number of elements, including labels, buttons, a file uploader, and some text boxes. Also, I'm using the RadAjaxManager and RadAjaxLabel. This is a picture of a few of the elements.

I need to update some of the elements, so I've set up my RadAjaxManager like this:


<telerik:RadAjaxManager ID="RadAjaxManager3" runat="server" >    
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadButtonCreate">
            <UpdatedControls>                    
                <telerik:AjaxUpdatedControl ControlID="RadLabel1" LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="RadAsyncUploadFile1" LoadingPanelID="RadAjaxLoadingPanel1"/>                 
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

This code doesn't impact my layout. However, when I added a the textbox to the UpdatedControls....


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >    
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadButtonCreate">
            <UpdatedControls>                    
                <telerik:AjaxUpdatedControl ControlID="RadLabelTicketInfo" LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="RadAsyncUploadSARFile" LoadingPanelID="RadAjaxLoadingPanel1"/> 
                <telerik:AjaxUpdatedControl ControlID="RadTextBoxDescription" LoadingPanelID="RadAjaxLoadingPanel1"/>                    
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

...My website changes to this:

When I remove the <telerik:AjaxUpdatedControl ControlID="RadTextBoxDescription" LoadingPanelID="RadAjaxLoadingPanel1"/> element from the UpdatedControls, the layout goes back to what is shown in the first picture.

 

Can someone please explain why adding elements to the UpdatedControls section would affect the placement of the other webpage elements? I'd like to update the content of these textboxes, so how can I add them to the UpdateControls without distorting the layout?

 

Thanks,

Mike

 

Rumen
Telerik team
 answered on 22 Oct 2024
0 answers
38 views

I have a .NET 8 MVC Application where I am using Telerik Kendo UI for the Captcha implementation. It is working fine at my local machine. But after a publish on AWS Elastic Beanstalk on Linux it is not working. 

I got some details like Telerik Captcha is using System.Drawing package which is not supported on Linux.

Now, please help me to figure out how can I implement Telerik Captcha Support with Linux based Hosting.

Siddhant
Top achievements
Rank 1
 asked on 18 Oct 2024
2 answers
123 views
Is the NuGet feed down? I get a 503 error when browsing to https://nuget.telerik.com/ and my Azure pipeline builds are failing.

Plamen Mitrev
Telerik team
 answered on 17 Oct 2024
1 answer
37 views

Dear Telerik-Team,

please delete my acc with all informations u saved about me.

Thank u. 

Jennifer
Telerik team
 answered on 14 Oct 2024
0 answers
46 views

Hi Team,

We have legacy application which is currently running in Visual studio 2008. As EOL of VS 2008 we started to build the application in VS 2019 with .net framework 3.5.

Currently we are using RAD control which have separate dll for each control like RadEditor.Net2.dll, RadPanelbar.Net2.dll, RadWindow.Net2.dll 

as well as Telerik UI with Telerik.Web.UI.dll (version 2008.02.0826) 

 

Problem statement:-

While migrating application from VS2008 to VS2019 we are facing below error while debugging locally.


Uncaught Error: Unexpected ajax response was received from the server. This may be caused by one of the following reasons: - Server.Transfer. - Custom http handler. - Incorrect loading of an "Ajaxified" user control. Verify that you don't get a server-side exception or any other undesired behavior, by setting the EnableAJAX property to false. at _1.CheckContentType () at _1.HandleAsyncRequestResponse () at _4e.onreadystatechange ()

we are using rad:RadAjaxManager in our aspx page. 

by adding this property to the manager ajax mechanism will not work and page start post back in each call.

 

Any other solution do you have to overcome this.

 

 

 

 

 

Abhishek
Top achievements
Rank 1
 asked on 10 Oct 2024
0 answers
22 views
I would like to delete all data associated to my account, why isn't there an easier solution than posting on the forums and waiting for an admin to do it ?
Missing User
 asked on 01 Oct 2024
1 answer
34 views

Hello Fellow members, My name is Emmanuel Katto. Does anyone have experience using Telerik components with large datasets? What strategies or controls do you recommend to ensure smooth performance?

 

Please let me know.

Thanks,

Emmanuel Katto

Vessy
Telerik team
 answered on 24 Sep 2024
1 answer
32 views
Please delete my account and all my user data from your systems.
Nick Iliev
Telerik team
 answered on 24 Sep 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?