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"
}];
}
}
}
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
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.
Dear Telerik-Team,
please delete my acc with all informations u saved about me.
Thank u.
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.
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.
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