Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
89 views
Hi
I wonder if anyone can give us any guidance on (or - better still - examples of) how to use Telerik controls to create a compiled library of copmposite user controls for use across several websites?

We have a series of "selector" user controls which have several Telerik text boxes (to give search paramters) and a final combo to select a company, person, etc. We also have user controls with Telerik grids with right-click menus (Telerik contect menus). We want to put these in a separate project and compile them into a dell that we can use on several websites, to share their functionality and to add properties (eg the ID from the final combo) that can be accessed from our code libraries.

Is there any problem in using Telerik controls in compiled user controls (because they are, themselves, compiled composite user controls)? Can we use a RAD proxy manager in each user control so that it does not make the parent pages postback for each internal event? Or will we need a proxy manager because they need to be self-vontained? Is there going to be a problem using a contect menu inside a compiled user control? If we succeed in crwating the dll with all these controls, and we add a reference to the dll in each website, will we be able to see our control collection in the Visual Studio toolbox, so that we can simply drag them onto our pages? Do we need interfaces to enforce standard properties and methods? Can we add our own event handlers for the composite controls?

Any advice will be welcome and I hope others will also be able to create control libraries from the guidance we collect. If anyone has an existing collection of user controls like this that they are willing to let us examine, it would be even better - we are prepared to offer ours if someone helps us to create it !

Living in hope! Neil
Sebastian
Telerik team
 answered on 24 Mar 2010
23 answers
368 views
Hi,

I am trying to implement the radeditor in MOSS2007 with the following piece of code:

<add tagPrefix="radE" namespace="Telerik.SharePoint.FieldEditor" assembly="RadEditorSharePoint, Version=5.0.0.0, culture=neutral, PublicKeyToken=1f131a624888eeed" />

When I open the page in editing mode, the error 'Please wait while scripts are loaded' stays in the IE status bar.

I hope somebody has a solution for this.

Best regards,
Bas Hammendorp
Stanimir
Telerik team
 answered on 24 Mar 2010
1 answer
51 views
Hi folks.

i have implemented a radgrid and did all the necessary things to enable paging,sorting,filtering etc.

but when i do any of the operation i get.

"Object reference not set to an instance of an object"

Can any one help me out on this....

Thanks
Satya
Nikolay Rusev
Telerik team
 answered on 24 Mar 2010
1 answer
189 views
Ok... all you style guru's out there, help me out. ;)

Here is my scenario... I'm writing a "file browser" type grid that will peruse various file sources. I have an image column and then a name column. This works fine... BUT, I can't get the image (in column 0) to lineup with the text in column 1. They should be flush or close to each other...

So I guess what I need is to remove the padding from cell 0 right and cell 1 left.... is this something reasonable to do? 

Here are my column definitions (bound via client side load):

<Columns> 
                    <telerik:GridImageColumn DataImageUrlFields="Icon" DataImageUrlFormatString="images/{0}" HeaderText="" HeaderStyle-Width="32" Resizable="false" /> 
                    <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false" /> 
                    <telerik:GridBoundColumn DataField="SizeDisplay" UniqueName="SizeDisplay" HeaderText="Size" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" /> 
                    <telerik:GridBoundColumn DataField="Type" UniqueName="Type" HeaderText="Type" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false" /> 
                    <telerik:GridBoundColumn DataField="DateModified" UniqueName="DateModified" HeaderText="Date Modified" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false" /> 
                    <telerik:GridBoundColumn DataField="IsFolder" UniqueName="IsFolder" Visible="false" /> 
                    <telerik:GridBoundColumn DataField="Size" UniqueName="Size" Visible="false" /> 
                    <telerik:GridBoundColumn DataField="FullPath" UniqueName="IsFolder" Visible="false" /> 
                </Columns>  

Something of note... I think a template column would be great (and have an image control next to a label), but since I am loading data on the client, it doesn't seem to work... bleh.

-Brian
Dimo
Telerik team
 answered on 24 Mar 2010
2 answers
251 views
how to get the radgrid control selectedindex at serverside
Liji Jose
Top achievements
Rank 1
 answered on 24 Mar 2010
2 answers
128 views

In an asp.net web application, I have a modal popup built with a Telerik Rad Window. In that popup there is a button which must do some action in its "code-behind" and then redirect the application to another page.

For the redirection I use the javascript command 'top.document.location.href = myPage' (sent to the browser from the code-behind with a ScriptManager.RegisterClientScriptBlock(...)).

This solves my problem but it is not very nice. When the button is pressed, this triggers the post-back. In the browser the popup is covered by a RadLoadingPanel which disappears when the post-back is finished (I use a RadAjaxManager). Then during a few seconds, nothing happens in the application and it is only after some time that the browser loads the new page.

The fact that nothing happens during a few second is not great since a user cannot know what the application is doing.

What can I do ? Is there a better way to do the redirection ? (I'm very new to javascript programming...).


Thierry Baertschiger
Top achievements
Rank 1
 answered on 24 Mar 2010
1 answer
133 views
I am using the following code to try and get the selected item on my slider but for some reason it always gets the first item on the slider not the one that has been selected:

Dim rbl As RadSlider = CType(r.FindControl("rblOptionsMatrix"), RadSlider) 
inputvalue = rbl.SelectedItem.Value 



Tsvetie
Telerik team
 answered on 24 Mar 2010
1 answer
126 views
Hi!

I have a hierarchical GridView populated by data from a database. Currently I have a FormTemplate for modifying (all but one) rows on the Edit command in my grid, and it works great. My problem is that the top row is somewhat different from the others and requires a different form. Is it somehow possible to have two FormTemplates for a GridView?

If not, what do you think is the preferred way of doing this?

Best regards
Henrik
Princy
Top achievements
Rank 2
 answered on 24 Mar 2010
3 answers
220 views
I've got a combobox in a toolbar and I'm trying to change the empty text in JS. The evidence suggests that the change is being applied but the empty message text that is displayed doesn't change.

Here's how the control is set up ...
<telerik:RadToolBar ID="RadToolBar1" runat="server" 
  Skin="Office2007" Style="width: 100%"> 
  <Items> 
    <telerik:RadToolBarButton Value="btnSkills"> 
      <ItemTemplate> 
        <telerik:RadComboBox ID="cboContactSkill" Runat="server" MaxHeight="200px"  
          EmptyMessage="Select skill(s)"  
          OnClientDropDownClosed="SkillsDropDownClosed" 
          Skin="WebBlue"> 
          <ItemTemplate> 
            <div id="div2"> 
              <telerik:RadTreeView ID="tvContactSkill" runat="server" 
                CheckBoxes="true" 
                DataFieldID="SkillId" 
                DataTextField="Name" 
                DataValueField="SkillId" 
                Skin="WebBlue"> 
              </telerik:RadTreeView> 
            </div> 
          </ItemTemplate> 
          <Items> 
            <telerik:RadComboBoxItem Text="" /> 
          </Items> 
        </telerik:RadComboBox> 
      </ItemTemplate> 
    </telerik:RadToolBarButton> 
  </Items> 
</telerik:RadToolBar> 

The JS looks like this ...
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> 
  <script type="text/javascript"> 
    function SkillsDropDownClosed(sender, e) { 
      var cbo = sender; 
      var tv = sender.get_items().getItem(0).findControl("tvContactSkill"); 
      cbo.trackChanges(); 
      var selectedNodes = tv.get_checkedNodes(); 
      if (selectedNodes == null || selectedNodes.length == 0) { 
        cbo.set_emptyMessage("None"); 
      } else if (selectedNodes.length == 1) { 
      cbo.set_emptyMessage(selectedNodes[0].get_text()); 
      } else { 
      cbo.set_emptyMessage("[multiple (" + selectedNodes.length + ")]"); 
      } 
      cbo.commitChanges(); 
      alert(cbo.get_emptyMessage()); 
      cbo.hideDropDown(); 
    } 
  </script> 
</telerik:RadScriptBlock> 

When called the alert message reads as I would expect, but the empty message displayed remains unchanged.

FWIW, I'm using Q3 2009.

--
Stuart


Stuart Hemming
Top achievements
Rank 2
 answered on 24 Mar 2010
1 answer
139 views

Hello,
I have a issue when i put RadSplitter in the page, my site contains a master page and Ajax
The problems is when I added the Radsplitter to my RadGrid height 100% in all browsers.
When I pressed the button and makes the postback  the page show one Scrollbar horizontal and one ScrollBar Vertical.
If I not use the RadSplitter, the problems dissapear, but the RadGrid is not allowed at height 100%.

I send you de Page Code.-
<%

@ Register TagPrefix="sol2008" TagName="ReporteFechas" Src="~/ascx/reporte_fechas.ascx" %>

 

<%

@ Register TagPrefix="sol2008" TagName="MsgBox" Src="~/ascx/msgbox.ascx" %>

 

<%

@ Register TagPrefix="sol2008" TagName="Box" Src="~/ascx/box.ascx" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<%

@ Page Language="C#" Inherits="sol2008.reporte_net_win_2010" CodeFile="~/reporte_net_win_2010.aspx.cs" EnableEventValidation="false" MasterPageFile="~/MasterPagina.master" %>

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="Contenedor" runat="server">

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25" ScrollBars="None">

 

 

<img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;position:absolute;top:20%;left:45%;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">

 

 

<sol2008:BOX id="BoxBegin" title="Reporte Net Win" runat="server" width="100%" action="begin"></sol2008:BOX>

 

 

<input type="hidden" id="HidFecha" name="HidFecha" />

 

 

<table class="generalreporte" id="tblGralReporte" runat="server">

 

 

<tr>

 

 

<td>

 

 

<table id="Table1" class="filtrosreporte" runat="server">

 

 

<tr>

 

 

<td><asp:label id="lblFechaDesde" runat="server" Text="Fecha Desde"></asp:label></td>

 

 

<td><asp:textbox id="TxtFechaDesde" runat="server" maxlength="10" size="12" onkeypress="fnAceptar_Filtrar(event)"></asp:textbox><IMG id="IMG1" style="CURSOR: hand" onclick="window_open('TxtFechaDesde')" src="~/comunes/images/calendario.gif" runat="server">

 

 

</td>

 

 

<td><asp:label id="lblFechaHasta" runat="server" Text="Fecha Hasta"></asp:label></td>

 

 

<td><asp:textbox id="TxtFechaHasta" runat="server" maxlength="10" size="12" onkeypress="fnAceptar_Filtrar(event)"></asp:textbox><IMG id="IMG2" style="CURSOR: hand" onclick="window_open('TxtFechaHasta')" src="~/comunes/images/calendario.gif" runat="server">

 

 

</td>

 

 

<td width="5"></td>

 

 

<td colspan="3">

 

 

<table>

 

 

<tr>

 

 

<td><asp:button ID="BtnFiltrar" runat="server" Text="Filtrar" OnClick="BtnFiltrar_Click"></asp:button></td>

 

 

<td><asp:button ID="BtnExportarExcel" runat="server" OnClick="BtnExportarExcel_Click" CssClass="imgExcel" ></asp:button></td>

 

 

<td><asp:button ID="BtnExportarCsv" runat="server" OnClick="BtnExportarCsv_Click" CssClass="imgCsv" /></td>

 

 

<td><asp:button ID="BtnExportarWord" runat="server" OnClick="BtnExportarWord_Click" CssClass="imgWord" ></asp:button></td>

 

 

<td><img src="comunes/images/impresora.gif" runat="server" onclick="fnImprimir('RadGrid1')" id="btnImprimir" style="cursor:pointer"/></td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

 

</tr>

 

 

<tr>

 

 

<td colspan="9">

 

 

<table cellpadding="0" cellspacing="0" border="0">

 

 

<colgroup>

 

 

<col width="100" />

 

 

<col width="135" />

 

 

<col width="40"/>

 

 

<col />

 

 

<col width="300"/>

 

 

</colgroup>

 

 

<tr>

 

 

<td><asp:label id="lblAgrupado" runat="server" Text="Agrupado por:"></asp:label></td>

 

 

<td><asp:dropdownlist id="CmbAgrupado" runat="server"></asp:dropdownlist></td>

 

 

<td><asp:label id="lblSala" runat="server" Text="Sala:"></asp:label></td>

 

 

<td><asp:dropdownlist id="CmbSalas" runat="server"></asp:dropdownlist></td>

 

 

<td><sol2008:REPORTEFECHAS id="ReporteFechas" runat="server" NAME="ReporteFechas"></sol2008:REPORTEFECHAS></td>

 

 

<td style="padding-top:5px"><asp:Label ID="lblFechaReporte" runat="server" Text="Fecha Reporte:"></asp:Label> <asp:Label ID="lblFechaReporte1" runat="server"></asp:Label></td>

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadSplitter runat="server" Orientation="Horizontal" ResizeWithBrowserWindow="true" ID="splitter" Height="100%"

 

 

FullScreenMode="true"

 

 

VisibleDuringInit="false" Width="100%" style="width:100%" BorderSize="0">

 

 

<telerik:RadPane ID="drillPanel" runat="server" Width="99%" Height="100%">

 

 

<telerik:RadGrid ShowGroupPanel="false" AutoGenerateColumns="false" ID="RadGrid1" AllowFilteringByColumn="False" AllowSorting="true" ShowFooter="true" runat="server" AllowPaging="false" Skin="MyCustomSkin" EnableEmbeddedSkins="false" OnItemDataBound="RadGrid1_ItemDataBound" OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnSortCommand="RadGrid1_SortCommand" Width="100%" Height="75%">

 

 

<ExportSettings OpenInNewWindow="true" ExportOnlyData="true">

 

 

<Excel Format="Html" FileExtension="XLS"/>

 

 

<Pdf PaperSize="Legal" />

 

 

</ExportSettings>

 

 

<ClientSettings>

 

 

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

 

 

</Scrolling>

 

 

<Resizing AllowColumnResize="true"/>

 

 

</ClientSettings>

 

 

<MasterTableView ShowGroupFooter="true" TableLayout="Auto">

 

 

 

<SortExpressions>

 

 

<telerik:GridSortExpression FieldName="ganancia" SortOrder="Descending" />

 

 

</SortExpressions>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="UID" HeaderText="UID" SortExpression="UID" UniqueName="UID" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="60px"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="CUIM" HeaderText="CUIM" SortExpression="CUIM" UniqueName="CUIM" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Modelo" HeaderText="Modelo" SortExpression="Modelo" UniqueName="Modelo" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Fabricante" HeaderText="Fabricante" SortExpression="Fabricante" UniqueName="Fabricante" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Juego" HeaderText="Juego" SortExpression="Juego" UniqueName="Juego" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Denominacion" HeaderText="Denom" SortExpression="Denominacion" UniqueName="Denominacion" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="45px" DataFormatString="{0:###,###0.00}"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="DeltaCin" HeaderText="Delta C.In" DataField="DeltaCin" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00}" HeaderStyle-Width="95"/>

 

 

<telerik:GridBoundColumn UniqueName="DeltaCout" HeaderText="Delta C.Out" DataType="System.Decimal" DataField="DeltaCout" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00}" HeaderStyle-Width="95"/>

 

 

<telerik:GridBoundColumn UniqueName="DeltaJkpt" HeaderText="Delta C.Jkp" DataType="System.Decimal" DataField="DeltaJkp" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00}" HeaderStyle-Width="85"/>

 

 

<telerik:GridBoundColumn DataField="ganancia" HeaderText="Net Win" SortExpression="ganancia" UniqueName="ganancia" DataFormatString="{0:###,###,##0.00}" EmptyDataText="0,00" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" HeaderStyle-Width="90"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="DeltaPartidas" HeaderText="Delta Part." DataType="System.Int32" DataField="DeltaPartidas" Aggregate="Sum" DataFormatString="{0:######0}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" HeaderStyle-Width="80"/>

 

 

<telerik:GridBoundColumn DataField="Dias" HeaderText="Das" SortExpression="Dias" UniqueName="Dias" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30px"></telerik:GridBoundColumn>

 

 

<telerik:GridCalculatedColumn UniqueName="PorcentajeReal" HeaderText="% Real" DataType="System.Decimal" DataFields="DeltaCin,DeltaCout,DeltaJkp" Expression="IIF({0}<>0,({1}+{2})/{0}*100,0.00)" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" Aggregate="Avg" HeaderStyle-Width="50"/>

 

 

<telerik:GridBoundColumn UniqueName="PorcentajeTeorico" HeaderText="% Terico" DataField="Porcentaje" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataType="System.Decimal" Aggregate="Avg" HeaderStyle-Width="45"/>

 

 

<telerik:GridCalculatedColumn UniqueName="PorcentajeDesv" HeaderText="% Desv." DataFields="DeltaCin,DeltaCout,Porcentaje" Expression="IIF({0}<>0,{1}/{0}*100-Porcentaje,0.00)" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataType="System.Decimal" Aggregate="Avg" HeaderStyle-Width="55"/>

 

 

</Columns>

 

 

<DetailTables>

 

 

<telerik:GridTableView>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="FechaHora" HeaderText="Fecha Hora" SortExpression="FechaHora" UniqueName="FechaHora" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="FechaDesde" HeaderText="Fecha Desde" SortExpression="FechaDesde" UniqueName="FechaDesde" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="FechaHasta" HeaderText="Fecha Hasta" SortExpression="FechaHasta" UniqueName="FechaHasta" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Denominacion" HeaderText="Denom" SortExpression="Denominacion" UniqueName="Denominacion" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px" DataFormatString="{0:###,###0.00}"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="DeltaCin" HeaderText="Delta C.In" DataType="System.Decimal" DataField="DeltaCin" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00}"/>

 

 

<telerik:GridBoundColumn UniqueName="DeltaCout" HeaderText="Delta C.Out" DataType="System.Decimal" DataField="DeltaCout" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00}"/>

 

 

<telerik:GridBoundColumn UniqueName="DeltaJkpt" HeaderText="Delta C.Jkp" DataType="System.Decimal" DataField="DeltaJkp" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataFormatString="{0:###,###,##0.00}"/>

 

 

<telerik:GridBoundColumn UniqueName="DeltaPartidas" HeaderText="Delta Part." DataType="System.Int32" DataField="DeltaPartidas" Aggregate="Sum" DataFormatString="{0:#####0}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"/>

 

 

<telerik:GridBoundColumn DataField="ganancia" HeaderText="Net Win" SortExpression="ganancia" UniqueName="ganancia" DataFormatString="{0:###,###,##0.00}" EmptyDataText="0,00" Aggregate="Sum" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right"></telerik:GridBoundColumn>

 

 

<telerik:GridCalculatedColumn UniqueName="PorcentajeReal" HeaderText="% Dev.Real" DataType="System.Decimal" DataFields="DeltaCin,DeltaCout,DeltaJkp" Expression="IIF({0}<>0,({1}+{2})/{0}*100,0.00)" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" Aggregate="Avg"/>

 

 

<telerik:GridBoundColumn UniqueName="PorcentajeTeorico" HeaderText="% Dev.Terico" DataField="Porcentaje" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataType="System.Decimal" Aggregate="Avg"/>

 

 

<telerik:GridCalculatedColumn UniqueName="PorcentajeDesv" HeaderText="% Desviacin" DataFields="DeltaCin,DeltaCout,Porcentaje" Expression="IIF({0}<>0,{1}/{0}*100-Porcentaje,0.00)" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataType="System.Decimal" Aggregate="Avg"/>

 

 

</Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<sol2008:MSGBOX id="MsgError" title="Advertencia" runat="server" visible="false"></sol2008:MSGBOX>

 

 

<sol2008:BOX id="BoxEnd" runat="server" action="end"></sol2008:BOX>

 

</

 

telerik:RadAjaxPanel>

 

</

 

asp:Content>

 

Tsvetie
Telerik team
 answered on 24 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?