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

Happens when upgrading to 2023.2.606

What can I do about this one?

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 12 Jun 2023
0 answers
107 views

I have a RadGrid that I want to bind totally on the client side. I used a RadClientDataSource and it populates nicely. I have many records, so I want to use custom paging and sorting so I am only pulling 5 records at a time. When I click on a row, I have it use an ajax call from jquery to get the VirtualItemCount and use set_virtualItemCount() to set property on RadGrid.

This all seems to work okay. But when I click on a sort column or a pager item, it blanks the whole grid. What events handler can I implement on client side to handle the sort event and the PageIndexChanged event? Here is my how I am handling the row clicked event:

 function rowClick(sender, eventArgs) {
            var nodeid = eventArgs._dataKeyValues["NodeId"];
            var masterTable = sender.get_masterTableView();
            var url = "/myservice.asmx/GetRowCount";
            var params = JSON.stringify({ NodeId: nodeid });
            $.ajax({
                method: "POST",
                url: url,
                data: params,
                dataType: "json",
                contentType: "application/json; charset=utf-8",
            })
                .done(function (msg) {
                    masterTable.set_virtualItemCount(msg.d);
                    window.nodeId=nodeid;
                    masterTable.rebind();
                });
        }
and here is how I handle the parameter mapping event:
   function ParameterMap(sender, args) {
        if (args.get_type() == "read" && args.get_data()) {
            var skip = window.pageSize * window.pageIndex;
            var take = window.pageSize;
            var params = { NodeId: window.nodeId, Skip: skip, Take: take, SortExpression: window.sort};
            var paramstr = JSON.stringify(params);
            args.set_parameterFormat(paramstr);
        }
    }

Mike
Top achievements
Rank 1
 asked on 11 Jun 2023
0 answers
115 views

The page starts without the element on it, but through another action everything in the image below will show up on the page. Once the element is populated on the page, something isn't calculated correctly in terms of the dropdown list location - the yellow highlighted area just under the "Record Types" widget is where I expect the list to be. In particular, class rddtSlide top property is what is miscalculated. What calculates this position? And how can I get it to calculate properly once it shows up on the page?

 

Russell
Top achievements
Rank 1
 asked on 06 Jun 2023
0 answers
247 views

I am getting the following error when using RadMultiSelect with over 13000 records:

Error InnerException Message: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
 Error InnerException StackTrace:    at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)
   at Telerik.Web.UI.AdvancedJavaScriptSerializer.Serialize(Object obj)
   at Telerik.Web.UI.RadMultiSelect.DescribeItems(IScriptDescriptor descriptor)
   at Telerik.Web.UI.RadMultiSelect.DescribeComponent(IScriptDescriptor descriptor)
   at Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control)
   at Telerik.Web.UI.RadDataBoundControl.GetScriptDescriptors()
   at System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl)
   at Telerik.Web.UI.RadDataBoundControl.RegisterScriptDescriptors()
   at Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer)
   at Telerik.Web.UI.RadMultiSelect.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

I already have <jsonSerialization maxJsonLength="2147483647"> in my web.config but still errors out.

Telerik.Web.UI Version: 2022.2.622.45

Seems similar to this issue: https://www.telerik.com/forums/maxjsonlength-exceeded-in-radmap

But updating to higher version than 2020 didn't seem to solve it. Was the fix only for RadMap?

Hudson
Top achievements
Rank 1
 asked on 05 Jun 2023
8 answers
1.3K+ views
Hello telerik,

I am getting an error on every page wherever i have used rad controls.In fact my project has completely stopped working due to these errors:
Before it was working fine. The error is:
​Sys.WebForms.PageRequestManagerServerErrorException:
Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON
primitive:
{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minValue":0,"maxValue":70368744177664,"lastSetTextBoxValue":""}.

Please tell me the  solution for this so that i can fix it and work on my project asap 
Joseph
Top achievements
Rank 1
Iron
 answered on 01 Jun 2023
0 answers
123 views

Hello,

is it possible to show the Marker Tooltips initially (code behind)?

i didnt find any example.

 

 

 

Manuel
Top achievements
Rank 1
 asked on 01 Jun 2023
0 answers
165 views

I have a large dataset of employees.

I want to load one node initially and all other node collapsed and load other node on demand.

But this control is loading complete data on page load which is making it slow.

is there any way to rebind the org chart on expand and bind all child nodes?

 

anuj
Top achievements
Rank 1
 asked on 01 Jun 2023
0 answers
121 views

RadEditor is closing the source element that is nested inside the video element . For example, in the attached screen shots show the “source” element which we add it to Rich text field. After we save the Rich Text field and open it again, we see the source element is closed. Is there a configuration setting that would allow us to bypass the closure of the source element?

 

Mike
Top achievements
Rank 1
 asked on 30 May 2023
0 answers
953 views

Hi,

I'm getting the following exception multiple time throughout the application in error log. It's very difficult to identify the exact reason for exception occurrence as the application is vast to debug in depth. Also, I'm using Telerik Control as well as Telerik Reporting in multiple place in the application. The version of Telerik.Web.UI which I am currently using is 2023.1.323.45

EXCEPTION URL :

https://adba.roc-p.com:443/Telerik.Web.UI.WebResource.axd?type=rau

EXCEPTION MESSAGE :

System.ArgumentException: Illegal characters in path.     at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)     at System.IO.Path.GetExtension(String path)     at Telerik.Web.UI.AsyncUploadHandler.ProcessUploadedFile()     at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)     at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Can anyone please provide all the possible reason behind this exception along with its step to resolve. Any help will be highly appreciated!

NOTE :

I have already visited multiple forum in which it is mentioned that this issue occurs in the previous version of the Telerik.Web.UI. Please confirm whether the exception mentioned above still exist in the version of Telerik.Web.UI which I am currently using i.e. 2023.1.323.45. And If not then please provide the possible reason that we need to verify on our end.

Akshat
Top achievements
Rank 1
 asked on 30 May 2023
2 answers
272 views
Hi,
I'm trying to use RadProgressArea to monitor custom progress.Everything works good, but the last part of my method is to return file to a user for a download. I do this through writing stream to a response and ending it with Response.End(). Something like this: 

RadProgressContext progress = RadProgressContext.Current;
        progress.SecondaryValue = 1;
        progress.SecondaryPercent = 1;
        progress.SecondaryTotal = 100;
 
        System.Threading.Thread.Sleep(3000);
        progress.SecondaryValue = 50;
        progress.SecondaryPercent = 50;
        System.Threading.Thread.Sleep(3000);

        //testing response
        byte[] b = File.ReadAllBytes("c:\\image1.jpg");
        Context.Response.ContentType = "image/jpg";
        Response.AddHeader("content-disposition", "attachment; filename=image.jpg");
        Response.BinaryWrite(b);
        Response.End();


It works great except RadProgressArea is not hidden after method is complete. I guess this happens because of the abruption of the response stream, because it hides if I do not have last 5 lines of code.
Is there any workaround of this issue?

Thanks. 
Rumen
Telerik team
 updated answer on 30 May 2023
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?