Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
186 views
Hello,

I am using the Q3 2010 RadControls and I am wondering if it is possible to use the CrystalReportViewer (VS2008, Crystal 10) inside a panel that is 'Ajaxified'. I attempted to use the method prescribed in this code library example but the RequestStart method (when applied to the Ajax Manager) does not fire at all when the ReportViewer buttons are clicked, even though the loading panel appears (the event fires when other controls cause postbacks, however).

The print and export buttons therefore do nothing, and when I attempt to drill down on the report, the page throws a javascript error stating 'Object Expected'. None of these errors occur when the panel containing the viewer is not ajaxified.

Thanks in advance.
Josh
Josh
Top achievements
Rank 1
 answered on 22 Aug 2014
6 answers
228 views
Hi
I have been using radcontrols in my application.
I'm using the raddcoks in my application.
I have two dockzones and adding 3 docks per each zone.
I have requirement where I need  to set the zones height based on resolution(system) at clinetside through javascript.
I tried like Height="100%" but zones not considering the height with %.

<telerik:RadDockLayout runat="server" ID="RadDockLayout1"
                OnSaveDockLayout="RadDockLayout1_SaveDockLayout" EnableViewState="false">
                <div id="mainContainer" style="width: 100%; float:left; height:100%">
                    <div style="width:100%;">
                        <asp:Table ID="Table1" runat="server" Width="100%">
                        <asp:TableRow>
                        <asp:TableCell Width="50%" Height="95%">
                        <telerik:RadDockZone ID="RadDockZone1" runat="server" CssClass="zone" Height="540px" BorderColor="#d7d7d7">
                                    </telerik:RadDockZone>
                        </asp:TableCell>
                        <asp:TableCell  Width="50%" Height="95%">
                        <telerik:RadDockZone ID="RadDockZone2" runat="server" CssClass="zone" Height="540px"  BorderColor="#d7d7d7">
                                    </telerik:RadDockZone>
                        </asp:TableCell>
                        </asp:TableRow>
                        </asp:Table>
                    </div>
                       
                </div>
            </telerik:RadDockLayout>
Please help me as early as possible.
Slav
Telerik team
 answered on 22 Aug 2014
4 answers
299 views
Hi ,
i work on project that we should combine every image uploader with Image editor , so to do this requirement i create a custom application page with a telerik
image editor control and after image added event in image uploader i call this page as a pop up but the probleme there i dont know how can i set the image in the editor  using client side API. for the moment i get it empty.
i try to use setserverurl().

Best regards
Elliot
Top achievements
Rank 1
 answered on 22 Aug 2014
3 answers
408 views
Hi,

i´m using Telerik 2014.1.403.35 and my Datasource is a DataTable (MSSQL)

<telerik:RadGrid EnableLinqExpressions="true" OnItemDataBound="RadGrid_ItemDataBound" OnItemCommand="RadGrid1_ItemCommand" ID="rgAbrechnungen" runat="server" GridLines="None" AutoGenerateColumns="False" Skin="Default" AllowSorting="true" AllowFilteringByColumn="true">

<telerik:GridTemplateColumn  UniqueName="zeichnungssumme" AutoPostBackOnFilter="true"  ShowFilterIcon="false" SortExpression="Zeichnungssumme" DataField="Zeichnungssumme"        HeaderText="Zeichnungssumme"      DataType="System.Decimal"  ItemStyle-HorizontalAlign="right" HeaderStyle-HorizontalAlign="right">
                    <ItemTemplate>
                       <%#Eval("Zeichnungssumme", "{0:#,0.00}")%> EUR
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

When i´m trying to filter for a decimal value (for example: 7143,05) and EnableLinqExpressions is true,
the filtering working correctly.
But if i set the EnableLinqExpressions to false, and enter my decimal value (7143,05) in my filterbox and push return, my page do a postback, but nothing more happens.
It should filter my Values and show me the one existing row with my entered value like with EnableLinqExpressions="true".

I need to set EnableLinqExpressions to false cause if i don´t, a lot of exceptions where thrown.
For example my datetime column:
If i don´t type the correct format (dd.mm.yyyy) my grid throws a exception with "no correct DateTime format".
Further, if i try to filter my System.decimal column and type something like "10.000,05", it throws an "Identifier expected" exception.

Thanks in advance

Marc Beckord
Eyup
Telerik team
 answered on 22 Aug 2014
18 answers
402 views
Hi,

Would you provide a sample for RadGrid Q1 2010 Export and Grouping together?
I tried to build a page with your drag-&-drop column header grouping, then export the grouped grid data to excel.

Thanks

daniel
Daniel
Telerik team
 answered on 22 Aug 2014
1 answer
88 views
Dear friends,

i had a issue of Report Viewer displaying blank page in IE10 and i solved using this code

Response.AppendHeader("X-UA-Compatible", "IE=edge");

in master page.

after using this code, i have issue of datepicker and time picker controls Cssclass have been changed badly.
if i remove this code,  telerik control looks fine. but report viewer showing blank page.

what to do to show telerik control to look good..
Marin Bratanov
Telerik team
 answered on 22 Aug 2014
6 answers
350 views
I'm getting the following error when trying to aggregate an AutoGenerated column: Column 'UnitPrice' does not belong to table. I've created a very simple app to reproduce the problem. I need to know if I'm coding things in the wrong places, or if this is a problem with the grid itself.

ASPX Page

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title></title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="aspScript" runat="server">

 

 

</asp:ScriptManager>

 

 

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

 

 

SelectCommand="SELECT [ProductID], [ProductName], [SupplierID], [CategoryID], [UnitsInStock], [UnitPrice] FROM [Products]">

 

 

</asp:SqlDataSource>

 

 

<telerik:RadGrid ID="grdTemplate" runat="server" DataSourceID="SqlDataSource1"

 

 

AutoGenerateColumns="true" ShowGroupPanel="True" Skin="Office2007" Height="500" Width="100%"

 

 

OnColumnCreated="grdTemplate_ColumnCreated">

 

 

<ClientSettings AllowColumnsReorder="False" AllowDragToGroup="True">

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

</ClientSettings>

 

 

<MasterTableView AutoGenerateColumns="true" TableLayout="Fixed" ShowFooter="true" ShowGroupFooter="true" />

 

 

</telerik:RadGrid>

 

 

</form>

 

</

 

body>

 

</

 

html>

Code Behind

 

using

 

System;

 

 

 

using

 

System.Collections.Generic;

 

 

 

using

 

System.Web;

 

 

 

using

 

System.Web.UI;

 

 

 

using

 

System.Web.UI.WebControls;

 

 

 

using

 

Telerik.Web.UI;

 

 

 

public

 

partial class _Default : System.Web.UI.Page

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

// Add the expression

 

 

 

 

grdTemplate.MasterTableView.GroupByExpressions.Add(

GridGroupByExpression.Parse("SupplierID Group By SupplierID"));

 

}

 

protected void grdTemplate_ColumnCreated(object sender, GridColumnCreatedEventArgs e)

 

{

 

// Determine the column type

 

 

 

 

 

if (e.Column is GridBoundColumn && e.Column.UniqueName == "UnitPrice")

 

{

 

// Set the column aggreagate

 

 

 

 

(e.Column

as GridBoundColumn).Aggregate = GridAggregateFunction.Sum;

 

}

}

}

Kostadin
Telerik team
 answered on 22 Aug 2014
3 answers
110 views
Hi,
I need to create a RadPivotGrid dynamically and export it.
I have an export scheduler that run in background and has to generate an excel of a PivotGrid an send it by email.
I have to do this within a Web Service but I don't know if it is possible.

Any suggestion?

Thanks a lot!
Kostadin
Telerik team
 answered on 22 Aug 2014
2 answers
206 views
Hello guys,

I am using the RadGrid component in order to display my data: ideally I would like to sort the item by the field "EventID" and I've used the following code in order to achieve that:

<SortExpressions>
        <telerik:GridSortExpression FieldName="EventID" SortOrder="Descending" />
 </SortExpressions>

Which works just fine.

In my scenario I am editing one of the grid item in a modal window and, when the item is submitted,  I want to refresh the parent page who contains the grid.  

In order to do that I am using the following code:

RadAjaxManager manager = RadAjaxManager.GetCurrent(this.Page);
manager.ResponseScripts.Add("CloseWindowReload('" + gridReloadCommand + "','" + ((itemID == null) ? "-1" : itemID.ToString()) + "');");

Which does refresh the parent page and the grid correctly, but the latter is not sorted by descending anymore . 

Do you have any advice for me?

Regards
Gavin


Gavin Pollock
Top achievements
Rank 1
 answered on 22 Aug 2014
6 answers
120 views
I am using UI for ASP.NET for AJAX Q2 2014 in a web project.

We are using RadEditor for creating content items for HTML email newsletters.

I am using the code below to set the set the editor filters on the Page_Load event but the editor is still rendering and saving styles instead of attributes.

??
protected void SetEditorFilters()
{
    // DISABLE DEFAULT FILTERS
    txtContentHTML.ContentFilters = Telerik.Web.UI.EditorFilters.None;
 
    // SET DESIRED FILTERS
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.ConvertInlineStylesToAttributes);
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.FixEnclosingP);
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.FixUlBoldItalic);
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.IndentHTMLContent);
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute);
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.OptimizeSpans);
    txtContentHTML.EnableFilter(Telerik.Web.UI.EditorFilters.RemoveScripts);
     
}
Marin Bratanov
Telerik team
 answered on 22 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?