Hi everyone,
I've been using Telerik released in Q1 2015. I tried the simplest export to pdf code as follow but it doesn't work once I used Client Export Manager.
My code is just like this:
<div id="foo">Just for testing</div>
<telerik:RadClientExportManager runat="server" ID="RadClientExportManager1">
<PdfSettings FileName="Myfile.pdf" />
</telerik:RadClientExportManager>
<input type="button" onclick="exportPdf()" value="export" />
<script type="text/javascript">
function exportPdf() {
var exp = $find("<%= RadClientExportManager1.ClientID %>");
exp.exportPDF($telerik.$("#foo"));
}
</script>
When button was clicked, no error had been found but no pdf file was generated. Have I missed anything? Appriciate your help!
A client of ours runs a security scanner daily on a website. One page on the site has the RadDatePicker control. When the scanner runs, it brings up t
Inner Exception Type: System.ArgumentException
Inner Exception
Invalid JSON primitive: ;WAITFOR DELAY '00:00:28'-- .
Inner Source:
System.Web.Extensions
Inner Stack Trace:
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
at Telerik.Web.UI.RadDatePicker.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I looked at the scanner form input data and found this:
ContentPlaceHolder1_applicationManager1_sessionsearchresults1_Criteria1_radTo_ClientState: 1';WAITFOR DELAY '00:00:28'--
I know this value is not valid JSON, but I'm unsure how to proceed. I tried to reproduce this problem on the form itself but have been unable to. Has anyone experienced this problem?
hi friends i have a radgrid control and i need to export grid content into zipped csv, how can i achieve this functionality, can somebody help me???
Thanks for your help in advance.
Regards,
Azhar.
Look at the picture i have attached why does internet explorer react in a different way? Is there a problem on there end?
<telerik:RadEditor
OnClientCommandExecuting="OnClientCommandExecuting"
Width="100%"
EnableResize="true"
Height="100%"
ID="editor1"
OnClientLoad="OnClientLoad"
Runat="server"
ToolsFile="**" >
<ImageManager ViewPaths="*****" SearchPatterns="*.jpeg,*.jpg,*.png,*.gif,*.bmp"/>
</telerik:RadEditor>
T<telerik:RadEditor
OnClientCommandExecuting="OnClientCommandExecuting"
Width="100%"
EnableResize="true"
Height="100%"
ID="editor1"
OnClientLoad="OnClientLoad"
Runat="server"
ToolsFile="/_layouts/telerik/EditorInWindowToolsFile.xml" >
<ImageManager ViewPaths="/_layouts/images" SearchPatterns="*.jpeg,*.jpg,*.png,*.gif,*.bmp"/>
</telerik:RadEditor>
Hi
I have a hierarchical grid with RetainExpandStateOnRebind="true" and allow sorting activated for some columns.
Problem:
On sorting the wrong DetailTable is expanded: always the same index of the MasterTable and not the Id.
Anyone knows a solution without having to post code? It's a huge grid with a lot of code...
Thanks!
Hi ,
we are having some issues...while upgrading to 2017 version from older version.Mainly it's related UI.Some pages rad window is not opening...some pages extra scroll bar is coming...some pages...colour is getting darker...some pages..grid view boarder is extended..some pages...calendar popup direction is changed to bottomright instead of bottomleft.....in some pages..extra boarder is coming in header...it seems like having not properly upgraded .may be some reference and compatability issue...we have followed this link to upgrade....: http://blogs.telerik.com/aspnet-ajax/posts/12-12-21/upgrade-the-version-of-your-telerik-asp.net-controls-in-6-easy-steps.
Please guide us in this regards.
public
void
SetupSlotsReleasedChart(RadHtmlChart radChart)
{
DataTable dtDataTable =
new
DataTable();
ResultData oResultData =
new
ResultData();
InternetHomeController oController =
new
InternetHomeController();
// Get Tenant KPI Data for a specific Tenant KPI ID (for Homepage Graph)
oResultData = oController.GetKPIGraphData(
ref
dtDataTable);
// Set the Chart Title and Set the X Axis and Y Axis Labels
radChart.ChartTitle.Text =
"Slots Released"
;
radChart.PlotArea.XAxis.TitleAppearance.Text =
"Month"
;
radChart.PlotArea.YAxis.TitleAppearance.Text =
"No. Hourly Slots"
;
// The "Total Slots Value" will be the bar graph
ColumnSeries totalSlotsValueColumnSeries =
new
ColumnSeries();
// The "Total Slots Failed Value" will be the bar graph
ColumnSeries totalSlotsFailedValueColumnSeries =
new
ColumnSeries();
// Add and additional Y axis to be used for the Slots Released Percentage
and Slots Released Target value series
AxisY axisY =
new
AxisY();
axisY.Name =
"Percentage_Axis"
;
radChart.PlotArea.AdditionalYAxes.Add(axisY);
// The "Slots Released Percentage Value" will be a line graph
LineSeries slotsValueLineSeries =
new
LineSeries();
// This series will use the additional Y axis created above
slotsValueLineSeries.AxisName =
"Percentage_Axis"
;
// The "Slots Released Target Value" will be a line graph
LineSeries slotsTargetValueLineSeries =
new
LineSeries();
// This series will use the additional Y axis created above
slotsTargetValueLineSeries.AxisName =
"Percentage_Axis"
;
// Do not show the number values on the line graphs
slotsValueLineSeries.LabelsAppearance.Visible =
false
;
slotsTargetValueLineSeries.LabelsAppearance.Visible =
false
;
// Display Legend on graph for the Value and Target series
slotsValueLineSeries.Name =
"Slots Released %"
;
slotsTargetValueLineSeries.Name =
"Target"
;
// Display Legend on graph for the Total Slots and Total Slots Failed values (bar chart)
totalSlotsValueColumnSeries.Name =
"Total Slots"
;
totalSlotsFailedValueColumnSeries.Name =
"Total Slots Failed"
;
foreach
(DataRow row
in
dtDataTable.Rows)
{
// Populate the Total Slots Value bar graph series
totalSlotsValueColumnSeries.SeriesItems.Add(Decimal.Parse(row[
"SRTotalSlotsValue"
].ToString()));
// Populate the Total Slots Failed Value bar graph series
totalSlotsFailedValueColumnSeries.SeriesItems.Add(Decimal.Parse(row[
"SRTotalSlotsFailedValue"
].ToString()));
// Populate the Slots Released Percentage Value line graph series
slotsValueLineSeries.SeriesItems.Add(Decimal.Parse(row[
"SRValue"
].ToString()));
// Populate the Slots Released Target line graph series
slotsTargetValueLineSeries.SeriesItems.Add(Int32.Parse(row[
"SRTargetValue"
].ToString()));
// Set the labels on the X Axis
AxisItem xAxisItem =
new
AxisItem(row[
"MonthDesc"
].ToString());
radChart.PlotArea.XAxis.Items.Add(xAxisItem);
}
// Add the Total Slots Value bar graph to the plot area
radChart.PlotArea.Series.Add(totalSlotsValueColumnSeries);
// Add the Total Slots Failed Value bar graph to the plot area
radChart.PlotArea.Series.Add(totalSlotsFailedValueColumnSeries);
// Add the Slots Released Percentage Value line graph to the plot area
radChart.PlotArea.Series.Add(slotsValueLineSeries);
// Add the Delay in Communication Target line graph series to the plot area
radChart.PlotArea.Series.Add(slotsTargetValueLineSeries);
}
Hello,
Can you
please take a look at this problem?
In the
editor the listBox is not on the position where I set it.It
has to be below the black border.
When I runt the site it is ok.
It is not a big problem but it is annoying when you have to use more listBoxes on one page.
What is
this blue rectangle beside the listBox?
If i click on it, it changes the position of the listBox.
Im using VS 2012 pro, Win 7, IE 11.
Sincerely
Gunther Wagner