Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 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
117 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
99 views
How to open radwindow on clicking the menu item from client side?
Ivan Danchev
Telerik team
 answered on 12 Feb 2015
1 answer
139 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
216 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
99 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
82 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
0 answers
82 views
Hi

I am using AjaxControltoolkit version this -> Product Version: - 4.5.7.0429

But when i run my page i meet this error how to solve this ?

My Error this
==============

Uncaught Error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the 
correct version of the scripts are referenced. 
If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll



I change scriptmanager to Toolscript manager some other issue came how to solve this
any one guide me.
Jaya
Top achievements
Rank 1
 asked on 12 Feb 2015
1 answer
56 views
issue is 

i have a radgrid in that there is a raddropdown control on selection_index_changed() event of  dropdown i select select dropdown index==1 in grid. a radwindow model wil shows up there the asyncupload control show correctly then i click cancel then i select dropdown index==2 then again radwindow model shows up   the visibility of that asyncupload control is visible= false ...then again i close the radwindow model then  i select select dropdown index==1 the asyncupload control is visible=true but asyncupload control show up two time... 

Can this problem wil be fixed ... ?? kindly  suggestions...fix

Thanks..
Itachi
Top achievements
Rank 1
 answered on 12 Feb 2015
16 answers
130 views
Hi Telerik Team,

I am using ASP.NET with vb code. i want to use Grid - Binding to Telerik ClientDataSource. i convert the code using telerik convertor. but i did not get exact code. can you please send same sample program in VB code.



Thanks in advance,
Dhamu.
Dhamodharan
Top achievements
Rank 1
 answered on 12 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?