Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
68 views
We have a page with RadEditor on a tab strip. There are scenarios when RadEditor contains a lot of html and when doing a post back in order to switch the tab, all its contents is being post back to the server. This results in gigantic performance loss (there are times when post backs are sending tens of MiB of data).
Is it possible to tweak RadEditor in such a way that it does not send its contents over to server on postbacks? Our code-behind does not rely on RadEditors Content property accessor (does not read its content explicitly), only its mutator (its contents are set from within the control's code-behind).
Is it even possible to do such things with any of Telerik controls and if it is, then how do we achieve such result?

It's worth pointing out that we use relatively old Telerik version (2013.2.611.35) and we can't switch to a newer version at the moment.

Thank you in advance.
Mokona
Top achievements
Rank 1
 asked on 12 Feb 2015
0 answers
81 views
We have a page with RadEditor on a tab strip. There are scenarios when RadEditor contains a lot of html and when doing a post back in order to switch the tab, all its contents is being post back to the server. That results in gigantic performance loss (there are times when post backs are sending tens of MiB of data).
Is it possible to tweak RadEditor in such a way that it does not send its contents over to server on postbacks? Our code-behind does not rely on RadEditors Content property accessor (does not read its content explicitly), only its mutator (its contents are set from within the control's code-behind).
Is it even possible to do such things with any of Telerik controls and if it is, then how do we achieve such result?

It's worth pointing out that we use relatively old Telerik version (2013.2.611.35) and we can't switch to a newer version at the moment.

Thank you in advance.
Mokona
Top achievements
Rank 1
 asked on 12 Feb 2015
1 answer
88 views
Hello Telerik team

I am curious whether i can create a color gradient like windows 8 tiles have it.

Greetings
Thomas Luck
Marin Bratanov
Telerik team
 answered on 12 Feb 2015
1 answer
112 views
Good afternoon,

I am trying to populate the Label with more than two values from which comes Database and one value is string and one is float. I want to convert  float value  to percentage.  I tried something like this. But it is displaying dataCol1 only, also I want format dataCol2 to  percentage. How I can I achieve this.

Chart,LabelsAppearance.ClientTemplate = "#=dataItem.dataCol1#" + "<br/>" + "#=dataItem.dataCol2#"



Thanks
Danail Vasilev
Telerik team
 answered on 12 Feb 2015
1 answer
135 views
So I posted a question on the ASP.NET forums @ Microsoft and I have not gotten any useful suggestions on how to solve this issue.  I am hoping perhaps a telerik tool might be able to solve this issue...

If you know of something please point me in the right direction... 
here is the original post.. I have copied it below...

QUICK COMMENT:So I am currently trying to figure out how to use AJAX, JQUERY, BLOCKUI and ASHX handlers to generate a very large report in CSV.  The report generation is spawned by clicking on a hyperlink which will call a javascript function that will execute a AJAX call.  As of right now I get the ajax call to execute, but I have not yet figured out how to get the ajax success method to dump the report to the calling client browser yet.

How do I get the ashx handler to work with the master page to generate a report when the user clicks on the hyperlink.I can get it to work if I just route the hyper link control directly to the ashx page, but I eventually need to add code to block the UI while this report being generated.  In the ajax, I am thinking I need to do some type of action to force the browser to kick out the report.. Just not sure what...I have a master page with the following code:
<script type="text/javascript">
function startReport(result) {
$.ajax({
url: "HTTPHandlers/TagExportHandler.ashx",
context: document.body,
success: function(){
alert("done");
//Eventually put code to block UI and etc while report is rendering...
}
});
}
 
</script>


In the markup I have a asp:hyperlink control... <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/HTTPHandlers/TagExportHandler.ashx" OnClick="startReport('');">Tag Export 2</asp:HyperLink>

Then I have a ASHX control that does the following.. 
public void ProcessRequest(HttpContext context)
{
using (var db = new TIPWebITDataContext())
{
string _exportContent = "";
int[] userDepartments = ((User)HttpContext.Current.Session["currentUser"]).Departments.ToArray();
 
List<TagDetailsDepartments> tagsModelCsvDepartmentses = null;
List<TagDetailsNonDepartments> tagModelCsvNonDepartmentses = null;
 
var data = GetTagDetails(db, "");
CsvContext cc = new CsvContext();
using (var writer = new System.IO.StreamWriter(context.Response.OutputStream))
{
CsvFileDescription output = new CsvFileDescription
{
QuoteAllFields = true,
EnforceCsvColumnAttribute = true
};
 
context.Response.AddHeader("content-disposition", "attachment; filename=TagExport.csv");
context.Response.ContentType = "text/csv";
 
if (userDepartments.Count() > 1)
{
tagsModelCsvDepartmentses = ((IQueryable<TagDetailsDepartments>)data).ToList();
cc.Write(tagsModelCsvDepartmentses.ToList(), writer, output);
}
else
{
tagModelCsvNonDepartmentses = ((IQueryable<TagDetailsNonDepartments>)data).ToList();
cc.Write(tagModelCsvNonDepartmentses.ToList(), writer, output);
}
context.Response.StatusCode = 200;
cc = null;
 
writer.Flush();
output = null;
}
 
data = null;
 
 
tagsModelCsvDepartmentses = null;
tagModelCsvNonDepartmentses = null;
 
userDepartments = null;
// context.Session.Add("TagExport", "Complete");
GC.Collect();
GC.WaitForPendingFinalizers();
}
}


Warren
Marin Bratanov
Telerik team
 answered on 12 Feb 2015
3 answers
102 views
How to open radwindow on clicking the menu item from client side?
Ivan Danchev
Telerik team
 answered on 12 Feb 2015
1 answer
145 views
Hello,

I have a little problem with the RadBarcode QR-Code. I have build an webapplication (asp.net c#) to generate buisness cards and on the back of the buisness card is an vcard QR Code image. This works fine and i can scan the code with my Windows, Apple and Android device. My problem is just, that the german umlauts (üöä) isnt in the generated QR Code. I've been experimenting with the settings.
My best result is with ECIMode = ISO8859_1En, Apple and Android works but the Windows device don´t work.
With no ECIMode the german umlauts dont show on any device.

Is there any solutions or workarounds that i can do?
 
thanks

telerik version 2014.1.403.40

Vasil
Telerik team
 answered on 12 Feb 2015
10 answers
225 views
In the load on demand example, you are calling a web service with a method GetRotatorData.  the signature of GetRotatorData requires a parameter called itemindex.  I cannot see where you are setting this in the rotator defintiion or the javascript of the page.  

Can someone point me in the right direction.  We have a web service which requires us to pass in a date of the last post displayed on the page, we'd like RadRotator to get the data from the web service and then when it needs more data (load on demand) it send the max date back to the web service.

Can you provide any guidance?
arnaud
Top achievements
Rank 1
 answered on 12 Feb 2015
1 answer
107 views
Running VS2012 Ultimate and I am trying to use the Telerik Upgrade Wizard on my web project.
I am trying to upgrade to version Telerik.Web.Ui v.2014.3.1209.40 from v.2012.2.815.35

After clicking through, I get the error:

The wizard encountered an error while trying to handle user event.System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetDirectoryName(String path)
   at Telerik.VSX.Controls.BackupFolderSelector.GetInitialFolder(WizardContext context)
   at Telerik.VSX.Controls.BackupFolderSelector.InitModel(IPropertyDataDictionary allPropertyValues, WizardContext context)
   at Telerik.VSX.WizardEngine.Controls.WizardControlBase.Init(IPropertyDataDictionary allPropertyValues, WizardContext context)
   at Telerik.VSX.Controls.EnableStateWizardControl`2.Init(IPropertyDataDictionary allPropertyValues, WizardContext context)
   at Telerik.VSX.WizardEngine.Controls.WizardControlBase.Telerik.WizardFramework.ScenarioDriven.IWizardControl.Init(IPropertyDataDictionary allPropertyValues, IWizardContext context)
   at Telerik.VSX.WizardFramework.Pages.DynamicPageController.InitControls()
   at Telerik.VSX.WizardFramework.Pages.DynamicPageController.Init(IWizardPageDef pageDefinition, IWizardContext wizardControlContext, IPropertyDataDictionary allGatheredData)
   at Telerik.WizardFramework.ScenarioDriven.ScenarioWizard.OnBeforeShow(Boolean movingNext)
   at Telerik.WizardFramework.Wizard.PostMove(Boolean movingNext)
   at Telerik.WizardFramework.Wizard.OnMoveNext()
   at Telerik.WizardFramework.Wizard.UI_Next(Object sender, EventArgs e)
   at Telerik.WizardEngine.Helpers.EventHelper.<>c__DisplayClass1.<RaiseEvent>b__0()
   at Telerik.WizardEngine.Helpers.EventHelper.CatchExceptionAndSendReport(Action action)

and the Wizard fails. I have no other problems with upgrading. The project path is reasonable, has no funny characters in the folder name.

Any ideas? How would I go about upgrading the project manually if required?

Thanks,
Bryan
Steliyan
Telerik team
 answered on 12 Feb 2015
1 answer
87 views
Hi All,

I have a issue about pick a date from RadScheduler.

please help.....


thanks!
Josie
Nencho
Telerik team
 answered on 12 Feb 2015
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?