Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
147 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.0K+ 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
123 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
58 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
190 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
104 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
0 answers
74 views
     I am setting accesskeys for basically all buttons on my page, and I realize that for some onclientclicking button, which be clicked will trigger some popups, if you set accesskey for them then popup windows will keep coming like you are keep clicking the button even  you just did once. it works fine on chrome but that problem can't be fixed on IE, so is there any way that we can do like set_cancel(true) for a onclientclikcing method, for those accesskeys?
yi
Top achievements
Rank 1
 asked on 30 May 2018
4 answers
244 views
Hi

Hope you can help.
 
I have a RadDatePicker control within a RadPanelBar . I need to assign the RadDatePicker control id to a sql select parameter, heres what I have so far...
<telerik:RadPanelBar ID="pbRegister" runat="server">
<Items>
<telerik:RadPanelItem Text="Register" Value="Register">
<ItemTemplate>
<telerik:RadDatePicker ID="txtDate" runat="server" AutoPostBack="True" SelectedDate="2012-02-21" Width="150px">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
</Calendar>
<DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" AutoPostBack="True"
LabelWidth="" SelectedDate="2012-02-21">
</DateInput>
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
</telerik:RadDatePicker>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
------------------------------------------------------
<asp:SqlDataSource ID="dsTGRegister" runat="server" ConnectionString=""
SelectCommand="ext_Register" SelectCommandType="StoredProcedure"
DataSourceMode="DataReader">
<SelectParameters>
<asp:ControlParameter ControlID='<%= pbRegister.FindItemByValue("Register").FindControl("txtDate").ClientID %>' Name="AttributeDate" PropertyName="SelectedDate" />
</SelectParameters>
</asp:SqlDataSource>


Thanks in advance, Ben
Matt
Top achievements
Rank 1
 answered on 30 May 2018
1 answer
107 views

Hello,

Working with a radtreeview with a custom template.  The template has a radtextbox and when typing in the textbox if there are matching characters in any nodes, that node get auto selected (and highlighted).  I need to disable this functionality.  

Any help is appreciated.

Peter Milchev
Telerik team
 answered on 30 May 2018
3 answers
96 views

I am using version 2018.1.112.40 of the Telerik software.

How to change the size of the Buttons?

Please help!

Thanks!

Sincerely,

Keith Jackson

Rumen
Telerik team
 answered on 30 May 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?