Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
993 views
I am working on adding some excel export functionality to all of the grids in my application. I have played around with numerous options but I can't seem to get the results I need.

I have grids that use calculated columns and aggregates. When using the ExportDataOnly = true and Format="ExcelML" the calculated columns and aggregates do not appear on the export. Also, any formatting applied to data is lost.

When I set ExportDataOnly = false and use HTML format the column names are linked inside of excel, the filter fields appear, and all hell breaks loose when you have a detail table.

I've tried using the GridExporting event like this:

        protected void RadGridSearch_GridExporting(object source, GridExportingArgs e) 
        { 
            RadGridSearch.AllowSorting = false
            RadGridSearch.AllowFilteringByColumn = false
        } 

It does not seem to change the export behavior.

I need to be able to do one of 2 things, either have my aggregated data and calculated columns show up on data only exports, or be able to trim out all the extra garbage when using HTML format.

Any suggestions?


Josef Rogovsky
Top achievements
Rank 2
 answered on 04 Apr 2017
1 answer
141 views

 

Hi,

I want to increase the font size of the text "Select a document to upload". How do i change it? Having the size in CSSClass does not work. Any other way?

I also the following in CSS which did not help
 RadUpload .ruBrowse
   {
          font-size:30px !important;
          font-style:italic;
   }
 
.wizInternalLabels
    {
        color:#00008B;
        font-size:x-large;
    }

 

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions="pdf,jpg,jpeg,txt"
                                     MultipleFileSelection="Automatic"  CssClass="wizInternalLabels" dir="rtl"
                                     PostbackTriggers="btnCustomFinish">
                                     <Localization Select=" Select a document to upload "   />
                                 </telerik:RadAsyncUpload>

 

 

Thanks in Advance
Rumen
Telerik team
 answered on 04 Apr 2017
4 answers
464 views

Hi i am using 2015.1.401.40 version.

and i am trying to show product summary chart but the height 100% is not working(please see attached screen shot).

And how do i set Totals/Counts always show on the bottom(if user scrolls then only products section move)

here is my code 

<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="100%" Height="100%"
       Skin="Bootstrap">
       <ChartTitle Text="Product Summary">
       </ChartTitle>
       <PlotArea>
           <Series>
               <telerik:BarSeries Name="Total" DataFieldY="Total">
                   <TooltipsAppearance>
                       <ClientTemplate>
                            #=dataItem.Productname# Total Counts: <b>#=dataItem.Total#</b
                       </ClientTemplate>
                   </TooltipsAppearance>
                   <LabelsAppearance Visible="false">
                   </LabelsAppearance>
               </telerik:BarSeries>
           </Series>
           <XAxis DataLabelsField="productname">
               <MinorGridLines Visible="false"></MinorGridLines>
               <MajorGridLines Visible="false"></MajorGridLines>
           </XAxis>
           <YAxis>
               <LabelsAppearance DataFormatString="{0}" Mirror="true">
               </LabelsAppearance>
               <MinorGridLines Visible="false"></MinorGridLines>
           </YAxis>
       </PlotArea>
       <Legend>
           <Appearance Visible="false">
           </Appearance>
       </Legend>
   </telerik:RadHtmlChart>

Goce
Top achievements
Rank 1
 answered on 04 Apr 2017
18 answers
640 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
346 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
100 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
63 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
204 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
33 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?