Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
179 views

Hello programmers, i hope now you can help me.
I have a grid that each item has its table of detail, yet each detail table is different, because they may have a different number of columns.
I modify the structure from the code, however, when I expand the detail table shows the previous structure and expand a second time, shows the correct structure.
Is there any way to display the existing economic structure right the first time?

Annex code and images.

-- ASPX ========================================================================

<Telerik:RadGrid ID="radGriOrdComDetalles" runat="server" Width="980" AutoGenerateColumns="false"
                             AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
                                <MasterTableView DataKeyNames="Id, prodSkucode" CommandItemDisplay="None"
                                 EditMode="InPlace" NoDetailRecordsText =" " NoMasterRecordsText="">
                                    <Columns>
                                        <Telerik:GridBoundColumn UniqueName="colIdOrdCompra" HeaderText="Id orden de compra" DataField="Id" HeaderStyle-Width="130px"/>
                                        <Telerik:GridBoundColumn UniqueName="colSku" HeaderText="SKU" DataField="prodSkucode" HeaderStyle-Width="160px"/>
                                        <Telerik:GridBoundColumn UniqueName="colDescripcion" HeaderText="Descripcion" DataField="prodDescripcion" HeaderStyle-Width="300px"/>                               
                                        <Telerik:GridBoundColumn UniqueName="colDepartamento" HeaderText="Departamento" DataField="depaDescripcion" HeaderStyle-Width="180px"/>                     
                                    </Columns>
                                    <DetailTables>
                                        <Telerik:GridTableView Name="gridProductoDetalles" DataKeyNames="Id, prodSkucode" EditMode="InPlace" NoDetailRecordsText="" NoMasterRecordsText=""
                                          GridLines="Vertical">
                                        </Telerik:GridTableView>
                                    </DetailTables>
                                </MasterTableView>
                            </Telerik:RadGrid>

-- CODE BEHIND =======================================================================
void radGriOrdComDetalles_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            try
            {
                if (e.DetailTableView.Name == "gridProductoDetalles")
                {
                    Telerik.Web.UI.GridDataItem parentItem = e.DetailTableView.ParentItem;
                    strSkucode = parentItem.Cells[3].Text;
                    strIdOrdCompra = parentItem.Cells[2].Text;
  
                    DataTable datTabDatosDetalle = new DataTable();
                    if (ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] == null)
                        datTabDatosDetalle = CCSMovimientoProductos.BuscarProdDetOrdenCompra_CEDIS(strIdOrdCompra, strSkucode).Tables[0];
                    else
                        datTabDatosDetalle = (DataTable)ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode];
                        //e.DetailTableView.DataSource = datTabDatosDetalle;
  
  
  
                    // SE AGREGAN LAS COLUMNAS CORRESPONDIENTES.
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Clear();
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Rebind();
  
                    Telerik.Web.UI.GridBoundColumn campo;
                    foreach (DataColumn dc in datTabDatosDetalle.Columns)
                    {
                        campo = new Telerik.Web.UI.GridBoundColumn();
                        radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Add(campo);
  
                        campo.UniqueName = "col" + dc.ColumnName;
                        campo.HeaderText = "[ " + dc.ColumnName + " ]";
                        campo.HeaderStyle.Font.Bold = true;
                        campo.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
                        campo.DataField = dc.ColumnName;
  
                        if (dc.ColumnName == "Talla")
                            campo.ReadOnly = true;
                    }
  
                    Telerik.Web.UI.GridEditCommandColumn campoEdit = new Telerik.Web.UI.GridEditCommandColumn();
                    campoEdit.UniqueName = "colEdit";
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Add(campoEdit);
                    campoEdit.UniqueName = "colEdit";
                    campoEdit.ButtonType = Telerik.Web.UI.GridButtonColumnType.LinkButton;
                    campoEdit.EditText = "Editar";
                    campoEdit.UpdateText = "Actualizar";
                    campoEdit.CancelText = "Cancelar";
    
                    // SE AGREGA EN EL VIEWSTATE LA REGLETA CORRESPONDIENTE AL PRODUCTO
                    if (ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] == null)
                        ViewState.Add("OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode, datTabDatosDetalle);
                    else
                        ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] = datTabDatosDetalle;
  
                    // SE AGREGAN LOS DATOS FINALES AL SOURCE DEL GRID.
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].DataSource = datTabDatosDetalle;
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns[0].Visible = false;
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns[1].Visible = false;
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].CommandItemDisplay = Telerik.Web.UI.GridCommandItemDisplay.Top;
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].EditMode = Telerik.Web.UI.GridEditMode.InPlace;
                    radGriOrdComDetalles.Rebind();
                }
            }
            catch (Exception ex)
            {
            }
        }

-- CODE BEHIND =======================================================================
Carlos Rodriguez
Top achievements
Rank 1
 answered on 14 Apr 2011
1 answer
55 views
Hello,

I have a bar chart with one series. PSA image there are 4 Bars with differenr severity level. I want to apply different colors to each severity i.e. each bar need to be of different color. Is it possible to do so ?

Thanks,
Prayag
Evgenia
Telerik team
 answered on 14 Apr 2011
1 answer
122 views
Hello everyone,

I have a site with multiple instances of the RadEditor. All of them display correctly except this one. I have searched for a solution, but found nothing that makes sense to me (it should be pointed out that I am a designer and not a developer, so most of what I have read here doesn't make sense to me). 

I've attached the code and picture of what is happening. Any ideas what is happening?

Thanks in advance for your help.

Josh

<div id="blog_header_editor">
        Header:
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadEditor ID="HeaderEditor1" runat="server" ImageManager-DeletePaths="/UserFiles/Images"
                ImageManager-UploadPaths="/UserFiles/Images" ImageManager-ViewPaths="/UserFiles/Images"
                ImageManager-EnableImageEditor="true" DocumentManager-DeletePaths="/UserFiles/Documents"
                DocumentManager-UploadPaths="/UserFiles/Documents" DocumentManager-ViewPaths="/UserFiles/Documents"
                Skin="Windows7" Width="720" Height="440">
                <Tools>
                    <telerik:EditorToolGroup Tag="MainToolbar">
                        <telerik:EditorTool Name="Print" ShortCut="CTRL+P" />
                        <telerik:EditorTool Name="AjaxSpellCheck" />
                        <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                        <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                        <telerik:EditorTool Name="Cut" />
                        <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                        <telerik:EditorTool Name="PasteStrip" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                        <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup Tag="InsertToolbar">
                        <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+G" />
                        <telerik:EditorTool Name="DocumentManager" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
                        <telerik:EditorTool Name="Unlink" ShortCut="CTRL+SHIFT+K" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="Superscript" />
                        <telerik:EditorTool Name="Subscript" />
                        <telerik:EditorTool Name="InsertParagraph" />
                        <telerik:EditorTool Name="InsertGroupbox" />
                        <telerik:EditorTool Name="InsertHorizontalRule" />
                        <telerik:EditorTool Name="InsertDate" />
                        <telerik:EditorTool Name="InsertTime" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="FormatCodeBlock" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="FormatBlock" />
                        <telerik:EditorTool Name="FontName" ShortCut="CTRL+SHIFT+F" />
                        <telerik:EditorTool Name="RealFontSize" ShortCut="CTRL+SHIFT+P" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="AbsolutePosition" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                        <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                        <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                        <telerik:EditorTool Name="StrikeThrough" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="JustifyLeft" />
                        <telerik:EditorTool Name="JustifyCenter" />
                        <telerik:EditorTool Name="JustifyRight" />
                        <telerik:EditorTool Name="JustifyFull" />
                        <telerik:EditorTool Name="JustifyNone" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Indent" />
                        <telerik:EditorTool Name="Outdent" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="InsertOrderedList" />
                        <telerik:EditorTool Name="InsertUnorderedList" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="ToggleTableBorder" />
                        <telerik:EditorTool Name="XhtmlValidator" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="ForeColor" />
                        <telerik:EditorTool Name="BackColor" />
                        <telerik:EditorTool Name="ApplyClass" />
                        <telerik:EditorTool Name="FormatStripper" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup Tag="DropdownToolbar">
                        <telerik:EditorTool Name="InsertSymbol" />
                        <telerik:EditorTool Name="InsertTable" />
                        <telerik:EditorTool Name="InsertSnippet" />
                        <telerik:EditorTool Name="ImageMapDialog" />
                        <telerik:EditorTool Name="InsertCustomLink" ShortCut="CTRL+ALT+K" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="ConvertToLower" />
                        <telerik:EditorTool Name="ConvertToUpper" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Zoom" />
                        <telerik:EditorTool Name="ModuleManager" />
                        <telerik:EditorTool Name="ToggleScreenMode" ShortCut="F11" />
                        <telerik:EditorTool Name="AboutDialog" />
                    </telerik:EditorToolGroup>
                </Tools>
                <Content>
         
                </Content>
                <ImageManager ViewPaths="/UserFiles/Images" UploadPaths="/UserFiles/Images" DeletePaths="/UserFiles/Images"
                    MaxUploadFileSize="2048000"></ImageManager>
                <DocumentManager ViewPaths="/UserFiles/Documents" UploadPaths="/UserFiles/Documents"
                    DeletePaths="/UserFiles/Documents" MaxUploadFileSize="2048000"></DocumentManager>
            </telerik:RadEditor>
    </div>
    <div class="clear"></div>
    <div id="buttons">
        <div id="cmdSave" class="page_property_button">
            <asp:ImageButton runat="server" ID="ibtnSave" OnClick="cmdSave_Click" src="/LookAndFeel/Images/icon_save.png"
                class="page_property_icon" />
            <div class="page_property_text">
                Save<br />
                This Blog
            </div>
            <div class="clear"></div>
        </div>
Rumen
Telerik team
 answered on 14 Apr 2011
1 answer
71 views
Hi there,

Is that a way I can update the editor's content without changing the scroll bar?

Thanks,
Reza
Rumen
Telerik team
 answered on 14 Apr 2011
4 answers
184 views
Hello,
I have run into a problem where the ItemDataBound event is fired multiple times whenever the "next page" link is clicked and SEO paging is enabled. But the weird thing is that the first time, it's fired for the items on the first page! The sequence goes like this, once the user clicks "next page":

  • page load
  • need data source
  • item data bound for each item on the first page
  • pre render
  • item data bound for each item on the new page

If I turn off SEO paging, it works as expected 
  • page load
  • need data sourec
  • item data bound for each item on the new page
  • pre render

I am not really sure what I am doing wrong. Here's a sample code to demonstrate:
ASPX
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender" PageSize="5" onneeddatasource="RadGrid1_NeedDataSource">
    <MasterTableView DataKeyNames="doc_id">
    </MasterTableView>
    <PagerStyle EnableSEOPaging="true" SEOPagingQueryStringKey="page" />
</telerik:RadGrid>

code behind:
public partial class _Default : System.Web.UI.Page
{
    public class TestData
    {
        public int doc_id{get;set;}
        public string Title{get;set;}
    }
 
    private List<TestData> GetData()
    {
        var data = new List<TestData>();
        for (int i = 1; i < 30; i++) {data.Add(new TestData(){doc_id = i,Title = "Title for " + i});}
        return data;
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        Debug.WriteLine("Pageload");
    }
 
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            Debug.WriteLine("ItemDataBound: " + (e.Item as GridDataItem).GetDataKeyValue("doc_id"));
        }
    }
 
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        Debug.WriteLine("PreRender");
    }
 
    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        Debug.WriteLine("NeedDataSource");
        RadGrid1.DataSource = GetData();
    }
}

Tundey
Top achievements
Rank 1
 answered on 14 Apr 2011
4 answers
257 views
Hi all

I have attached the file containing the error, and i have following web.config file, but still getting this error. If anything missing please advise. Thanks in advance


<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
</appSettings>
<connectionStrings>
<clear/>
</connectionStrings>
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
                cookieless="false" timeout="120" />

<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        -->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages validateRequest="false">
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Linq"/>
<add namespace="System.Xml.Linq"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpRuntime executionTimeout="3600" maxRequestLength="102400" />
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
<authentication mode="Windows"/>
<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
<httpHandlers>
<remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.2.1001.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
      <!-- *******  Register the RadUploadProgressHandler for IIS prior to v.7  ****** -->
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" verb="*" validate="false" />
</httpHandlers>
<httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <!--Newly Added -->
      <!-- *******  Register the RadUploadModule for IIS prior to v.7  ****** -->
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

Ahmet HOSO
Top achievements
Rank 1
 answered on 14 Apr 2011
7 answers
338 views
Hi
Is there a method for stripping out any 'script' tags after the submit button has been pressed?

Thanks
Matt
Rumen
Telerik team
 answered on 14 Apr 2011
1 answer
189 views
Upon client side binding of a radgrid, the button images do not display if the AllowFilteringByColumn property is set to false.  The images do display using the exact same code, if the AllowFilteringByColumn property is set to true.

button images will display on this grid...
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SimpleGrid.ascx.cs" Inherits="UserControls_SimpleGrid" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<script language="javascript" type="text/javascript" src="SimpleGridJs.js">
<!--    //
//--></script>
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="true" AutoGenerateColumns="False">
      <MasterTableView ClientDataKeyNames="makecode, make">
        <Columns>
              <telerik:GridBoundColumn DataField="makeid" HeaderText="makeid">
              </telerik:GridBoundColumn>
              <telerik:GridBoundColumn DataField="makecode" HeaderText="makecode">
              </telerik:GridBoundColumn>
              <telerik:GridBoundColumn  DataField="make" HeaderText="make">
              </telerik:GridBoundColumn>
              <telerik:GridButtonColumn ButtonType="ImageButton"ImageUrl="images/technote1.gif">
              </telerik:GridButtonColumn>
        </Columns>
      </MasterTableView>
      <ClientSettings>
        <DataBinding Location="SimpleService.asmx" SelectMethod="GetDataAndCount" />
      </ClientSettings>
</telerik:RadGrid>

...but if the AllowFilteringByColumn is changed to "false", there are no button images.  There are a couple radgrids in my project that don't need to have the filter functionality, and don't have the space to waste on an unneeded FilterMenu row.  Am I doing something wrong, or is there a work around?
Maria Ilieva
Telerik team
 answered on 14 Apr 2011
1 answer
78 views

Hello,

when i am using  below weekend recurrence rule with repeatingInterval = 1
why it is showing other days events in current day slot.

DTSTART:20110411T043000Z
DTEND:20110411T053000Z
RRULE:FREQ=WEEKLY;COUNT=3;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR

please check the attachment for your knowledge what i am getting exactly.

please help me in this then it will be great for me.

Regards
Shashi

Peter
Telerik team
 answered on 14 Apr 2011
1 answer
116 views
Controls
I have multiple RadGrid controls on a page, each grid with an ItemDatabound event. All columns are set to be sortable except for the gridTemplateColumns

Database
Each grid has their own EntityDataSource, with a single parameter set to point at a hidden control which is set at the page load.

ItemDatabound Event
The grids have GridTemplateColumns with placeholder controls of which get populated with text or images.

Problem
Clicking the header of a column (to sort by that column) will sort the grid, but the other grid loses the data in the template columns. If you click the header of a sortable column in the grid that lost it's data, the grid will return to normal and the prior grid will now lose data in it's GridTemplateColumns. This problem isn't limited to sorting, the second grid on the page has multiple pages of data, switching to another page will also cause this problem as well.

This appears to occur whether using the RadAjaxPanel or not.

Is there supposed to be a way to link the controls together so that they are aware of each other? This is quite a simple setup, the SQL or even the filter being set by the hidden control -- nothing is changing, and yet this odd behavior occurs.
Maria Ilieva
Telerik team
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?