Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
274 views

Hi;

We have a .net webforms page that selects a file via a RadAsyncUpload control (the upload part is working fine).  After the file has been selected and transferred to the server in the background by the async upload, the user clicks a button to begin processing the file in the page's code-behind. 

We had previously created added a ProgressArea to the page, hoping that the communication between the server and the client would prevent the page from timing out during long processes (the processing of a file can take up to 30 minutes).  However, while the ProgressArea worked and was a definite improvement, the page request would still not have the response sent until the entire code-behind processing was complete, and thus the page would hit the http timeout limit (2 mins by default, I believe) before the server was finished processing, and we would get a "System.Web.HttpException (0x80004005): Request timed out." error.  Finally, we ended up just extending that page's timeout to an hour with the code

 

Server.ScriptTimeout = 3600;

in the Page_Load event.

However, our product is available not just hosted on our servers but also as an on-site web application on customers' servers -- this addresses security issues and regulations some of our customers have.  As a result, we do not have full control over the environment in which the software runs.  We've recently had a customer add AWS Cloudfront for content delivery, which has its own timeout settings.  This customer does not wish to set their Cloudfront http timeout to an hour, so our setting on the web application page doesn't matter.

What I am looking for is a way to keep that full response (as initiated by the user clicking the "Process" button) from timing out by keeping the server and client communicating during the processing in such a way as the http timeout doesn't get hit.  If I understand correctly, the ProgressArea sending information back from the server to the client does not "count" as part of the response the page is waiting for, so does not keep the http connection alive to prevent a timeout.

I had previously tried explicitly calling the processing from an ajax post from in a loop on the client, and while I was able to do this, the performance was drastically impacted for the worse.

Is there any way with the ProgressArea, ProgressManager, or some other telerik control to keep an http connection alive for the duration of a long process without having to change the timeout settings of any layer between the client and the web server?

Thanks!

Peter Milchev
Telerik team
 answered on 09 Aug 2019
1 answer
402 views
We're working on optimizing a page and found that it takes a while to download the ScriptResource.axd.  We downloaded this file and would like to use the local version instead of downloading it each time the page loads.  How would I reference the local version instead?
Rumen
Telerik team
 answered on 09 Aug 2019
12 answers
1.7K+ views
Hi,

How do I make the GridNumericColumn display negative numbers in the folowing "$ -40.00" format.  RadNumericTextbox has a NegativePattern, but I'm not able to set a negative pattern in GridNumericColumn.  GridNumericColumn seems to display negative values in "($40.00)" format.

This is annoying.

Thanks,
Brian
Sasp
Top achievements
Rank 1
 answered on 09 Aug 2019
4 answers
244 views

I am trying to change the font size for axes labels from the client. I was able to do so with series labels as follows:

var chart = $find(chartname);
var kw = chart.get_kendoWidget();
kw.options.title.font = kw.options.title.font.replace("16px", "12px");
kw.options.series[2].labels.from.font = kw.options.series[2].labels.from.font.replace("12px", "8px");
kw.refresh();

 

And this works well for the series labels and the title font. However, when trying to change the axis labels in this way:

kw.options.xAxis.labels.font=kw.options.xAxis.labels.font.replace("12px","6px")

 

It does not seem to have any effect. Is this a bug? Or am I going about this the wrong way?

In case anyone is interested, the reason i am doing this is because I am exporting to PDF (with rad export manager) and there does not seem to be a way to scale the content to "fit to page" except changing the content size. (outside of asking the user to check the "fit to page" option when printing the pdf.  

Vessy
Telerik team
 answered on 09 Aug 2019
4 answers
3.8K+ views
How do I wrap contents of long non space text in a RadGrid column?
Please review the attachment.
I tried following code ,it not helping.
Thank you.
<telerik:GridBoundColumn DataField="ShipName" HeaderText="ShipName" SortExpression="ShipName" UniqueName="ShipName"> 
             <ItemStyle Wrap="false" Width="50px"  /> 
</telerik:GridBoundColumn>
Disposable Hero
Top achievements
Rank 1
Iron
 answered on 08 Aug 2019
3 answers
266 views

Hi,

I am using radscheduler and customizing the colors of Appointments in Day, Week and Month Views, However, in the Year view I am unable to view the appointments days in different colors (depending on what type of appointments are made on that day). In the year view, all days containing appointments are shown in a single color, is there a way to view these days in different colors?

We are against our project deadline so a quick response would be greatly appreciated.

Thanks,

Jalil Akhtar

Peter Milchev
Telerik team
 answered on 08 Aug 2019
14 answers
386 views

Hello,

we have custom versions of Bootstrap skins in application. Everything works almost fine. It is easy to create build framework (with help of Theme Builder) based on source scss files. Then using multiple variables we are generating multiple "Bootstrap skins" for lightweight mode.

But there are 2 version of skin resources. Classic and Lite. When EnableEmbeddedSkins is active, everithings works. Resources are inserted to page and my overrides are aplied. But there are many problems in Ajax requests. Results are not as expected. Many controls are broken without any reason. For example Grid Pager paddings are missing etc.

So I decided to disable embedded skins and build whole Bootstrap skin. Well, then I found it sometimes doesn§t work and many styles are missing. I found, then in original page, both skins are injected - classic then lite. 

So for example - css handler returns \Bootstrap\Grid.Bootstrap.css then \BootstrapLite\Grid.Bootstrap.css

Just look for css selector '.RadGrid_Bootstrap .rgPagerCell .rgPageNext'. It is defined in classic css file but not in lite css. So when classic css is missing, button is invisible.

I'm lost :-) I thought that both versions are different. That I can use lite OR classic. So why in lightweight mode is still classic css required?

So in my build framework I need to build classic css and append lite version to get working Bootstrap skin?

I'm really loking for any explanation about skins, how it works based on renderring mode.

Best Regards

René

Rumen
Telerik team
 answered on 08 Aug 2019
3 answers
5.9K+ views
Hi,
This seems like it should be so simple - but I can't get it to work. I have a RadGrid , using AjaxManager and NeedDataSource.  I execute different queries - depending on the search criteria selected and return a dataset that is set to the DataSource:

this.RadGrid1.MasterTableView.DataSource = ds;

this.RadGrid1.MasterTableView.DataMember = ds.Tables[0].ToString();


This works great - however I have a clear button that I am trying to clear the grid with - the code is executed but the rows still are in the grid on the screen  - I set the DataSource and DataMember to null and rebind.

protected

void btnClear_Click(object sender, EventArgs e)

{

this.RadGrid1.MasterTableView.DataSource = null;

this.RadGrid1.MasterTableView.DataMember = null;

this.RadGrid1.DataSource = null;

this.RadGrid1.Rebind();

}

So when that didn't work I thought I would manually try to remove the rows and I can't seem to find any RowsCollecion to iterate through and remove.

What am I missing here?? Any help is appreciated. Thanks!

Edited to add - I have EnableViewState set to True on the grid

Edited again - I was able to get the functionality I wanted by creating an empty table and setting the dataset to the datasource and the empty table to the datamember and then doing the this.RadGrid1.Rebind(); 

I would still be curious as to why setting the datasource and datamember to null would not work. It seems as though this functionality works when the NeedDataSource event is called automatically without having to do a Rebind.

joni

Attila Antal
Telerik team
 answered on 07 Aug 2019
1 answer
267 views
     We have a RadGrid with a RadNumericTextBox in a GridTemplateColumn.  How can we have the grid highlight the row where the keyboard focus is?  So as the user Tabs to the next RadNumericTextBox in the next row, the highlighted row of the grid should change.
Attila Antal
Telerik team
 answered on 07 Aug 2019
6 answers
254 views

Hi,

Using the RadGrid in Batch Editing mode and the EditType is set to row.

What is the best way to implement a RangeValidation for a GridNumericColumn ? I 

I just want the user having to enter a value between 1 and 999. If this is not the case, a small message indicates the error.

Thanks in advance to show me the way :)

 

Attila Antal
Telerik team
 answered on 07 Aug 2019
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?