Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views

Hi,  

   I am trying to export a NestedViewtemplate Radgrid using the following

 

C#:

protected void rd_ItemCommand(object sender, GridCommandEventArgs e) {

rd.MasterTableView.HierarchyDefaultExpanded = true;

rd.ExportSettings.ExportOnlyData = true;

rd.ExportSettings.IgnorePaging = true;

rd.ExportSettings.HideStructureColumns = true;

rd.ExportSettings.OpenInNewWindow = true;

rd.ExportSettings.UseItemStyles = true;

rd.MasterTableView.ExportToExcel();

 

In Aspx:

<ExportSettings Excel-AutoFitImages="true" Excel-DefaultCellAlignment="Left" FileName="rdChild">     

    <Excel DefaultCellAlignment="Left" />

</ExportSettings>

 

ISSUE:

   I have 54 column in the Parent Radgrid and with 2200 records only

   Child Radgrid : 4 columns , only 1400 parents have child.  Maximum child might have 10 records 

  Data in it is very small no big descriptions or images ....

  But when I export it gives me 7 MB file. 

  Strange : if I copy the same content into a new excel it is only 500kb. So wonder what is the problem and how to address this ??

 

I saw the following : below

(Also it is important to note that the hierarchy and the nested controls have a considerable effect on the performance in this scenario.) ..

Any tips to reduce the Exported file size (already tried exml , csv nothing helped )

 

 

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/overview

Exporting a large amount of data : We strongly recommend not to export large amounts of data since there is a chance to encounter an exception(Timeout or OutOfMemory) if more than one user tries to export the same data simultaneously. RadGrid is not suitable for such scenarios and therefore we suggest that you limit the number of columns and rows. Also it is important to note that the hierarchy and the nested controls have a considerable effect on the performance in this scenario.

Kostadin
Telerik team
 answered on 10 Oct 2016
3 answers
113 views

We are experiencing issues when we try to use a snippet via the rich text editor to allow our authors to create a cutline (photo with caption under it) in their articles via insert snippet telerik toolbar option within Sitecore.  We spoke to Sitecore and they were able to reproduce but said it was deep in the Telerik code so would need to reach back to telerik.  Hoping someone has a solution or recommendation on how to solve this.

 

Steps to reproduce:

1. User create a new article in Sitecore

2. User selects the insert cutline snippet from the rich text editor toolbar as shown in attached image.

3. Result in the cutline text following outside the div as shown in the html code below.

 

Expected html dropped in:

<div class="cutlinecontainer flLeft">  <img alt="" class="cutlineImage" style="width: 300px;" src="-/media/58708ed216f54f73893636c4cb5878d0.ashx" /> <p class="cutlineText">Insert cutline text here</p></div>


Actual html dropped in:

<div class="cutlinecontainer flLeft">  <img alt="" class="cutlineImage" style="width: 300px;" src="-/media/58708ed216f54f73893636c4cb5878d0.ashx" />  </div>
<p class="cutlineText">Insert cutline text here</p>

 

Thanks in advance!
Rumen
Telerik team
 answered on 10 Oct 2016
6 answers
292 views
hi,

We are using rad date picker for date selection in one of our project, as per the requirement the date icon should appear on the left side of the textbox instead if right side, which is the usual scenario. We had look and feel issue while calling RadDatePicker from the left side of the textbox.
The month navigation button directions are not proper.
Am attaching the screen shot here for your reference.
Konstantin Dikov
Telerik team
 answered on 10 Oct 2016
1 answer
734 views

I have a grid in batch edit mode. The user has to click on a few cells and increase the existing values by 1. I need to simplify this edit so the cell value is automatically increased by 1 whenever the cell is clicked while in edit mode. If the user clicks on the wrong cell or the cell value needs to be change by other than 1 then the user will have to enter the proper value. Once all the changes are made the user will click "Save Changes" and the updates will be stored on the server using the server side BatchEditCommand. I can change the values in the cells  client side by using innerHTML but they are not saved once Save Changes button is clicked. How can I do this?

 

Konstantin Dikov
Telerik team
 answered on 10 Oct 2016
2 answers
215 views

I have an aplication which use a RadGrid, i´m trying to use built-in controls, how ever it is not working.

 

CS File

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Data;
using SCAPWEB.ods;
using System.Data;

namespace SCAPWEB.Views
{
    public partial class GridStocks : ContentControl
    {
        ScapWebServ.Service1SoapClient consulta = new ScapWebServ.Service1SoapClient();
 

        protected void Page_Load(object sender, EventArgs e)
        {
        
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "nudgeIE6", "if ($telerik.isIE6) $telerik.$('.itemDetails, .pageNav, .ordersTitle').each( function() { this.style.cssText = this.style.cssText; });", true);
        }

        protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {

            RadGrid grid = (RadGrid)sender;
            grid.DataSource  = consulta.AllExistence("NIS", this.Tipo, this.FechaInicial, this.FechaFinal,this.Flujo).Answer.Select().ToList();
 
        }
      

        protected void Page_PreRender(object sender, EventArgs e)
        {
            RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);

            manager.AjaxSettings.AddAjaxSetting(RadGridEstadistica, RadGridEstadistica,LoadingPanel);          
             
        }

       
       
    }
}

 

ViewFile

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GridStocks.ascx.cs" Inherits="SCAPWEB.Views.GridStocks" %>
<div style="width: 100%; height: 100%; float: left; margin: 10px">

    <telerik:RadGrid ID="RadGridEstadistica" runat="server" Culture="es-ES" Width="100%" Height="500px" AllowSorting="True" UseAllDataFields="True"
        AllowPaging="true" PageSize="18" ClientSettings-Scrolling-AllowScroll="true" OnNeedDataSource="RadGrid1_NeedDataSource" AllowFilteringByColumn="True" FilterType="Combined">

        <MasterTableView CommandItemDisplay="Top" PagerStyle-Mode="NextPrevAndNumeric" TableLayout="Fixed">
            <CommandItemSettings ShowExportToCsvButton="True" ShowExportToExcelButton="True" ShowExportToPdfButton="False" ShowExportToWordButton="False" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
        </MasterTableView>
        <ClientSettings AllowDragToGroup="true" EnableRowHoverStyle="true">
            <Selecting AllowRowSelect="true" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="360px" />
        </ClientSettings>
    </telerik:RadGrid>
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server">
    </telerik:RadAjaxLoadingPanel>
</div>

Konstantin Dikov
Telerik team
 answered on 10 Oct 2016
1 answer
81 views
Hi, 
 Please can you tell my how I can access the appointment clicked date in a RadScheduler. It is not the Selected date, as this seems to be the same no matter what date I click. You would have thought that this was simple, but apparently not.

Posted 11 Dec 2009Link to this post

 Hi, 
 Please can you tell my how I can access the appointment clicked date in a RadScheduler. It is not the Selected date, as this seems to be the same no matter what date I click. You would have thought that this was simple, but apparently not.
Ivan Danchev
Telerik team
 answered on 10 Oct 2016
4 answers
245 views

Hi all,

I have a RadAsyncUpload inside a RadGrid, all of which is inside a RadWizard. These controls are in a user control that is loaded dynamically by the content page in a placeholder.

Whenever I go into Add or Edit mode in my RadGrid, the RadAsyncUpload does not render and I get the following error in my JS console

(see attachment error1.png)

Is there a known issue with using RadAsyncUploads in RadGrids, or a specific way to go about it? 

I've tried mimicking this demo but I get the same error. https://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultvb.aspx?product=asyncupload

Any help is greatly appreciated!

Chris

Anton
Telerik team
 answered on 10 Oct 2016
1 answer
189 views

Hi,

I have six RadDropDrownList Controls on a page. I have a problem with TabKey and arrow keys being used for navigaiton between them and using up down arrow keys for selection. Here is the Issue:

1. I focus first one using mouse and select an item.

2. I use Tab to the second one and select using arrow key.

3. Once selection is done any click any where on the entire page keeps raising the OnClientItemSelecting event of the dropdown in 2 above.

4. Everything works fine if I use only mouse to navigate and select.

Is this a known problem, is there a workaround? I cannot have this in production as OnClientItemSelecting event is suppose to do some work based on what's selected from drop down.

Anton
Telerik team
 answered on 10 Oct 2016
4 answers
239 views

In the RadEditor we have the NewLineMode set to Div...

Me.NewLineMode = EditorNewLineModes.Div

We are also using a ToolsFile xml document to control the tools available in RadEditor.

The problem is the InsertParagraph tool now inserts <div> tags instead of <p> tags.

We want to keep the NewLineMode behavior as DIV while still having a tool that can insert a paragraph (i.e. a <p> tag).

How can we do this?

 

Rumen
Telerik team
 answered on 10 Oct 2016
8 answers
225 views
Hi,

I have a dropdown list set up as such:

<

 

 

telerik:GridDropDownColumn DataField="GroundGear" DataSourceID="getGroundGears" HeaderText="Ground Gear" ListTextField="GroundGearName" ListValueField="GroundGearCode" UniqueName="GroundGear" ColumnEditorID="GroundGear" Reorderable="False" Resizable="False" Visible="false">

 



With the datasource embedded in the the .aspx page as such:

<

 

 

asp:SqlDataSource ID="getGroundGears" runat="server" ConnectionString="<%$ ConnectionStrings:FisheriesConnectionString %>"

 

 

 

ProviderName="System.Data.SqlClient" SelectCommand="SELECT code as [GroundGearCode], name as [GroundGearName] FROM DisGroundGear">

 

 

 

</asp:SqlDataSource>

 



Though I was wondering how I can change the datasource to point to a tableadapter/dataset, rather than having the SQL code in the same page as the grid?

Thanks, Ida
Konstantin Dikov
Telerik team
 answered on 10 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?