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

Telerik UI for ASP.NET AJAX R2 2018.  When I use the AntiXssEncoder as the default encoder...
 web.config 
    <httpRuntime encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary" maxRequestLength="102400"/>

A mistake as a figure

 

gao
Top achievements
Rank 1
 asked on 03 Jun 2018
4 answers
966 views

In the parent page, it had a preview button to prompt a radwindow.

How can I refresh the grid in parent page when user click the Close [X] button of the radwindow.

The radwindow generate in code behind:


Protected Sub rtbMenu_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles rtbMenu.ButtonClick
    If e.Item.Value = "Preview" Then
        Dim url = "~/TrainingAdmin/SIMPER_view.aspx?SIMPER_ID=0&UserID=" & Request.QueryString("UserID") & "&From=" & RadDatePicker_ValidFrom.SelectedDate & "&To=" & RadDatePicker_ValidTill.SelectedDate
 
        Dim windowManager As New RadWindowManager()
        Dim window1 As New RadWindow()
        ' Set the window properties  
        window1.NavigateUrl = url
        window1.ID = "RadWindow1"
        window1.Height = 750
        window1.Width = 740
        window1.Top = 140
        window1.Left = 250
 
        window1.AutoSize = False
        window1.VisibleTitlebar = True
        window1.VisibleStatusbar = False
        window1.VisibleOnPageLoad = True           
 
        ' Set this property to True for showing window from code  
        windowManager.Windows.Add(window1)
        Me.Form.Controls.Add(window1)
 
    ElseIf e.Item.Value = "Refresh" Then
        Response.Redirect("~/TrainingAdmin/SIMPER_details.aspx?userID=" & Request.QueryString("UserID"))
 
    End If
End Sub

Marin Bratanov
Telerik team
 answered on 01 Jun 2018
1 answer
404 views

Dear All,

i need to show a bar graph.

First x-axis - Month like January, February etc. .

Second X axis- every month i need to show two countries  like USA, UK

Y Axis- Total Amount. 

Per country, month expense is Y1 and forecast amount is Y2.

if i can combine Bar chart with bullet charge will achieve my goal. or if Bar chart can show "Target" also will be ok. appreciate your help.

i attached a demo graph for your reference. 

 

Marin Bratanov
Telerik team
 answered on 01 Jun 2018
4 answers
339 views

Hi,

I have a aspx content page which is using a master page. In my content page I have two RadMultiPage controls and a RadTabStrip control. One RadMultiPage is assigned to RadTabStrip through the MultiPageID property. The second RadMultiPage has by default set the SelectedIndex to 1. What i try to do, is to change the second RadMultiPage selected index on RadTabStrip OnClientTabSelected event. Looking at the samples and the documentation i came up with something like that:

function clientTabSelected(sender, args) {
            var multipage = document.getElementById('<%= ribbonMultiPage.ClientID %>');
            var v = multipage.findPageViewByID("accountsView");
            if (v)
                alert('got it');
            else
                alert('null.');
        }

where ribbonMultiPage is the id of the second RadMultiPage. When i run the code i got the exception "Object doesn't support this property or method" on line var v = multipage.findPageViewByID("accountsView");. Could you point me a solution to that?

Peter Milchev
Telerik team
 answered on 01 Jun 2018
3 answers
202 views

Hello,

 

I am having a problem with keyboard navigation when using tab indexes with MasterPages and their ContentPages.

The problem is I would like to leave the default TabIndex of "0" across all elements on the MasterPages and their associated ContentPages so that when tabbing from the keyboard the focus goes from the last element on the MasterPage to the first element on the ContentPage.  Is this possible? 

Of course, I can manually set the TabIndexes across all controls and that works, but would rather leave the elements' TabIndexes at "0".

 

Thanks,

Phil

Phil
Top achievements
Rank 1
 answered on 31 May 2018
1 answer
1.1K+ views

I wrote a Telerik Ajax based app that has been in use for years.  Among other things it has a RadGrid that displays links to files stored in a SQL db.  If a user wants to download a file, they simply click on the link and it downloads. (The files are stored in SQL Server db fields.)  The c# code itself is fairly vanilla, something I cook-booked off the web. The data is fed into a byte array (bytes) and then passed to this final section.  (I've traced and verified that the data is coming from the db as usual.)  As I said, it's been in use for years without problems.

                    HttpContext.Current.Response.Clear();
                    HttpContext.Current.Response.Buffer = true;
                    HttpContext.Current.Response.Charset = "";
                    Response.Cache.SetCacheability(HttpCacheability.NoCache);
                    HttpContext.Current.Response.ContentType = sAttachType;
                    sAttachName = sAttachName.Replace(" ", "%20");
                    HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment; filename=\"" + sAttachName + "\"");
                    HttpContext.Current.Response.BinaryWrite(bytes);
                    HttpContext.Current.Response.Flush();                                   
                    HttpContext.Current.Response.End();

 

Now that I've upgraded to the latest Telerik controls and moved development to VS2015 in a Windows 8 virtual machine, this has started.

Telerik.Web.UI.WebResource.axd:9 Uncaught Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'PK!���V�'.
    at Function.f.create (Telerik.Web.UI.WebResource.axd:3)
    at Sys.WebForms.PageRequestManager._createPageRequestManagerParserError (Telerik.Web.UI.WebResource.axd:9)
    at Sys.WebForms.PageRequestManager._parseDelta (Telerik.Web.UI.WebResource.axd:9)
    at Sys.WebForms.PageRequestManager._onFormSubmitCompleted (Telerik.Web.UI.WebResource.axd:9)
    at Array.<anonymous> (Telerik.Web.UI.WebResource.axd:3)
    at Telerik.Web.UI.WebResource.axd:3
    at i (Telerik.Web.UI.WebResource.axd:3)
    at t.Net.WebRequest.completed (Telerik.Web.UI.WebResource.axd:3)
    at XMLHttpRequest._onReadyStateChange (Telerik.Web.UI.WebResource.axd:3)

I can see there are numerous references to this problem online but nothing I've seen so far seems relevant.  (I've upped my maxRequestLength to 5 meg.  There is no Asp.Net update panel in my system.  Etc.. )  

My copy of the Telerik controls is most definitely licensed (another reference I've seen), but feel free to remind me how to double-check that. 

Suggestions?

 

 

Jeff Shaw
Top achievements
Rank 1
 answered on 31 May 2018
1 answer
161 views

Hi,

I have a grid control on a page.  Upon the first time it is loaded, it displays fine, with all the formatting, pagination controls, etc.

When clicking on any control, such as the next page control; the page refreshes with the original data(not the next page), but all the formatting is stripped off. (See attached images for correct and incorrect footer controls) This unformatted behavior continues across browsers and client machines until the app pool is refreshed on IIS.  Then, the page will display properly the first time only that it is requested from the server.

I have noticed in looking at the view source for the web-pages displayed that on the original load, the <link href to the telerik.web.ui.webresources.axd is included.  Any subsequent loads of the same page do not contain that link; despite the browser or computer used... until the IIS app pool is reset.

Anyone have any ideas??

Thanks!

Windows Server 2012 R2
IIS ver 8.5.9600.16384
Telerik DLL ver 2016.2.607.40

Marin Bratanov
Telerik team
 answered on 31 May 2018
3 answers
102 views

I am working on some tests using Selenium for UI testing and am having difficulty trying to determine how best to interact with RadWindows that are opened.

One scenario is that I show a radalert dialog or a radconfirm dialog frequently when the user cancels on a page.  How do I use javascript to simulate the user clicking a Close button in the radalert/radconfirm dialog?  The window has no "name" that I can find since I don't define it directly.

Second scenario is when I open a radwindow that contains a form.  Again how can I use javascript to access all the controls in the modal dialog that I open, put text in textboxes and so forth and so on and click buttons etc. 

I cannot find any examples where anyone has used Selenium with the radwindow (or any of the controls).

Rumen
Telerik team
 answered on 31 May 2018
0 answers
247 views

Hello!

We are using RadAsyncUpload in a couple of places in our system. We've set the TemporaryFileExpiration property for each control, for some of them it is set on 20 minutes, for others it is set on 4 hours. However our RadAsyncUpload  temporary folder doesn't get automatically cleaned up no matter of the TemporaryFileExpiration setting. We are using version 2017.2.503.35 of Telerik.Web.UI.dll. Any help with this will be much appreciated!

Regards,

T. Toncheva

Teodora
Top achievements
Rank 1
 asked on 31 May 2018
1 answer
145 views

There looks to be an article about how to see Anchor links Editor Mode but the page does not display.  This link is http://www.telerik.com/support/kb/aspnet-ajax/editor/making-named-anchors-visible-in-editing-area.aspx.

Is there an updated page on how to do this?

Rumen
Telerik team
 answered on 31 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?