Telerik Forums
UI for ASP.NET AJAX Forum
18 answers
661 views

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!

Rahul
Top achievements
Rank 1
 answered on 04 Apr 2017
0 answers
350 views

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?

Jutas Arthasarnprasit
Top achievements
Rank 1
 asked on 04 Apr 2017
0 answers
102 views

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.

azhar
Top achievements
Rank 1
 asked on 04 Apr 2017
0 answers
64 views

 

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>

Robel
Top achievements
Rank 1
 asked on 04 Apr 2017
0 answers
61 views

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>

Robel
Top achievements
Rank 1
 asked on 04 Apr 2017
1 answer
207 views

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!

Eyup
Telerik team
 answered on 04 Apr 2017
1 answer
34 views

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.

 

 

Priya Mohan
Top achievements
Rank 1
 answered on 04 Apr 2017
5 answers
521 views
Hello,

I understand that the Q1 2014 version of the radHTMLChart allows the location of an additional Y axis can be specified.

The documentation describes how to specify the AxisCrossingPoint through aspx, but my chart is created programmatically.

Attached is a screen shot of how the graph currently looks. I would like to move the additional Y axis (the one that runs 0 - 6) to the right hand side of the graph.
My code is below.

Thanks to anybody who can assist.

Daniel

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 Percentageand 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);
}
VINIT
Top achievements
Rank 1
 answered on 04 Apr 2017
1 answer
97 views
We are looking for a way to display the filtered values from all the columns in our RadGrid and don't see an easy way to do that.  I see the MasterTableView.FilterExpression option but it displays a bunch of junk that isn't easily parsed.  Is there a solution I'm not seeing somewhere in the settings?
CalebH
Top achievements
Rank 1
 answered on 03 Apr 2017
1 answer
111 views

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

Rumen
Telerik team
 answered on 03 Apr 2017
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?