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

I'm having a problem with grouping in the grid.
The data source is a List, the list itens contains another List, I want to group by the first item in this list (TestList[0].DescTest).
Putting the TestList[0].DescTest as DataField, the field is normally displayed, and can also be sorted, but when grouping the following error occurs:
Field definition is not valid. FieldName contains invalid characters: TestList[0].DescTest

I tried several other ways, but could not solve my problem.

public class TestInfo
{
    public int IDTest { get; set; }
     public string DescTest { get; set; }
     public List<TestInfo> TestList { get; set; }
}

<telerik:RadGrid ID="rgd_grid" runat="server" ShowGroupPanel="true" EnableHeaderContextMenu="True" EnableAJAX="True"
  OnNeedDataSource="rgd_grid_NeedDataSource">
    <ClientSettings ReorderColumnsOnClient="true" AllowGroupExpandCollapse="true" AllowDragToGroup="true" AllowColumnsReorder="true" AllowAutoScrollOnDragDrop="false" AllowExpandCollapse="false">
        <Selecting AllowRowSelect="false"/>
    </ClientSettings>
    <GroupingSettings ShowUnGroupButton="True" />
    <MasterTableView Summary="RadGrid table" Width="100%" DataKeyNames="IDTest" Name="Test">
        <Columns>
            <telerik:GridBoundColumn UniqueName="IDTest" DataField="IDTest" HeaderText="IDTest" Groupable="True">
                </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="DescTest" DataField="DescTest" HeaderText="DescTest" Groupable="True">
                </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="GroupTest" DataField="TestList[0].DescTest" HeaderText="GroupTest" Groupable="True">
                </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

private List<TestInfo> CreateDataSource()
{
    List<TestInfo> list = new List<TestInfo>();
 
    list.Add(new TestInfo());
    list[0].IDTest = 1;
    list[0].DescTest = "Test 1";
    list[0].TestList = new List<TestInfo>();
    list[0].TestList.Add(new TestInfo());
    list[0].TestList[0].DescTest = "Group 1";
 
    list.Add(new TestInfo());
    list[1].IDTest = 2;
    list[1].DescTest = "Test 2";
    list[1].TestList = new List<TestInfo>();
    list[1].TestList.Add(new TestInfo());
    list[1].TestList[0].DescTest = "Group 2";
 
    list.Add(new TestInfo());
    list[2].IDTest = 3;
    list[2].DescTest = "Test 3";
    list[2].TestList = new List<TestInfo>();
    list[2].TestList.Add(new TestInfo());
    list[2].TestList[0].DescTest = "Group 3";
 
    return list;
}
 
protected void rgd_grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    rgd_grid.DataSource = CreateDataSource();
}

Vasil
Telerik team
 answered on 19 Oct 2012
1 answer
78 views
January                                                                                                                    
S   M   T   W   T   F   S   S   M   T   W   T   F   S   S   M   T   W   T   F   S   S   M   T   W   T   F   S   S   M   T
1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31
                                                                                                                         
                                                                                                                         
                                                                                                                         
                                                                                                                         
                                                                                                                         
                                                                                                                         
                                                                                                                       
Hi i am trying to make multi view calender but i am not getting the correct format.
in this month is not coming in correct.
Here is my code :
<telerik:RadCalendar ID="rd1" runat="server" Orientation="RenderInRows"
        SingleViewRows="1" MultiViewRows="4" MultiViewColumns="3" FocusedDate="1/1/2012 12:00:00 AM"
        SingleViewColumns="30" SingleViewHeight="50" Height="500px">
    </telerik:RadCalendar>
Below is image.
Thanks
Angel Petrov
Telerik team
 answered on 19 Oct 2012
1 answer
44 views
We have developed an individual mobile version for a CRM system, but after integrated into the web version of CRM (a detection statement will detect and redirect to the mobile version if the request is from a mobile device), all the telerik controls didn't work. And funny things is, if we change telerik control to normal asp, it worked. Also, if we get rid of detection part, and access the mobile version directly, it still doesn't work. But if we accessed the web version first, then access the mobile version, all telerik controls work. Did anyone encounter the same problem? And does anyone know the solution for this? Thanks.
Marin
Telerik team
 answered on 19 Oct 2012
3 answers
69 views
I was wondering if there is some "easy" workaround to obtain this... let me explain.
At the moment you place the "final" controls in docks and place docks in the zones in the page and save.
This way you have to work on the actual page and you should be able to save each control setting in each dock as well, let's say for example if you want to dispaly 4 or 8 or 16 news items in a news control.
I was wondering if it's possible to have a "fake" page (a sort of edit page and not the final rendered one) where you move docks placeholders of the real controls for the real page, and in each placeholder for the particular control you can edit that control settings. Then save everything so that when the real page is loaded all the docks, with controls and settings are loaded.
Written that way may seem complex but is exactly what you do with wordpress widgets. You drag and drop the kind of widget that you want (news, weather, whatever) inside zones (usually center or column) and then each widget that you dragged has settings for that particular control inside it. Then when you save you have the real page configured with widgets (docks) and controls.
Slav
Telerik team
 answered on 19 Oct 2012
4 answers
74 views
Hi all,
I have an issue on the RadGrid on an iPad and Android when I use the control for Master-Details table view. My repro step is as below
I am greatly appreciated if anyone could help me on the issue, thanks! 

Repro Step:
1. Use the latest one 2012.2.607.40 or the older telerik verion v2010.1.415.40.
2. Use Telerik assemblies (e.g. Telerik.Web.UI.dll) from the Bin35
3. Default.aspx, Default.aspx.cs and web.config are posted in the below
4. In the web.config file, NorthwindConnectionString needs to be pointed to your local Northwind.mdf
5. Build the project and run it on an IIS
6. Brose the Default.aspx from iPad and Android default browser.
7. Click a row from Master view (e.g. Customer table) and check if its detailed contents are loaded in the detail view (e.g. Orders table).
 
Result: 
On the iPad and Android default browser, no update happans when I click the row at the first time. Detailed content will be loaded when clicking at the second time.

Note: The issue is not repro on the PC (IE browser).

Web.config:
<?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>
  <connectionStrings>
    <add name="NorthwindConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Company\Northwind.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <appSettings>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  </appSettings>
  <system.web>
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Core, 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"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
        <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>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <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" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="ScriptModule"/>
      <remove name="RadUploadModule"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
      <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"/>
      <remove name="ChartImage_axd"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
      <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" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </handlers>
    <directoryBrowse enabled="false"/>
  </system.webServer>
  <system.codedom>
      <compilers>
        <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
          <providerOption name="CompilerVersion" value="v3.5"/>
          <providerOption name="WarnAsError" value="false"/>
      </compiler>
    </compilers>
  </system.codedom>
  <runtime>
    <assemblyBinding appliesTo="v2.0.50727" 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>

Default.aspx.cs:
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void Page_PreRender(object sender, EventArgs e)
    {
 
    }
    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument != null)
        {
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadAjaxManager1, RadGrid2, RadAjaxLoadingPanel1);
            RadGrid2.Rebind();
        }
 
    }
 
}

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="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">
 
<head runat="server">
    <title></title>
    
 
</head>
 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function RowInteraction(sender, args) {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                if (sender == $find("<%=RadGrid1.ClientID%>")) {
                    var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();
                    var CustomerID = masterTable.getCellByColumnUniqueName(masterTable.get_selectedItems()[0], "CustomerID").innerHTML;
                    ajaxManager.ajaxRequestWithTarget('<%= RadAjaxManager1.UniqueID %>', CustomerID);
                }
 
            }
 
            function RowInteraction1(sender, args) {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                if (sender == $find("<%=RadGrid2.ClientID%>")) {
                    var masterTable = $find("<%=RadGrid2.ClientID%>").get_masterTableView();
                    var OrderID = masterTable.getCellByColumnUniqueName(masterTable.get_selectedItems()[0], "OrderID").innerHTML;
                    ajaxManager.ajaxRequestWithTarget('<%= RadAjaxManager1.UniqueID  %>', OrderID);
                }
 
            }
        </script>
 </telerik:RadCodeBlock>
<body>
    <form id="form1" runat="server" method="post">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" >
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  RegisterWithScriptManager="true" Enabled="true" Skin="Windows7"
        Height="22px" Width="16px">
    </telerik:RadAjaxLoadingPanel>
 
<strong>Customers:</strong>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  OnAjaxRequest="RadAjaxManager1_AjaxRequest" EnableAJAX="true" EnableEmbeddedScripts="true" EnablePageHeadUpdate="true" EnableViewState="true" UpdatePanelsRenderMode="Block">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadGrid1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
      </UpdatedControls>
    </telerik:AjaxSetting>
    <telerik:AjaxSetting AjaxControlID="RadGrid2">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
      </UpdatedControls>
    </telerik:AjaxSetting>
    <telerik:AjaxSetting AjaxControlID="RadGrid3">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid3" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" AllowPaging="True"
  PageSize="5" DataSourceID="SqlDataSource1" GridLines="None"
        Width="95%" style="margin-top: 0px">
  <ClientSettings >
   <ClientEvents OnRowClick="RowInteraction"></ClientEvents>
    <Selecting AllowRowSelect="true" />
  </ClientSettings>
  <MasterTableView DataKeyNames="CustomerID" AutoGenerateColumns="False" >
      <Columns>
          <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID"
              ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName"
              SortExpression="CompanyName" UniqueName="CompanyName">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName"
              SortExpression="ContactName" UniqueName="ContactName">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="ContactTitle" HeaderText="ContactTitle"
              SortExpression="ContactTitle" UniqueName="ContactTitle">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="Address" HeaderText="Address"
              SortExpression="Address" UniqueName="Address">
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="PostalCode" HeaderText="PostalCode"
              SortExpression="PostalCode" UniqueName="PostalCode">
          </telerik:GridBoundColumn>
      </Columns>
    </MasterTableView>
  <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
<br />
<br />
<strong>Orders:</strong>
<telerik:RadGrid ID="RadGrid2" ShowStatusBar="True" runat="server" AllowSorting="True"
  AllowPaging="True" PageSize="5" DataSourceID="SqlDataSource2" GridLines="None"
   Width="95%">
  <MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="OrderID"
    DataSourceID="SqlDataSource2">
    <Columns>
      <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"
        ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate"
        SortExpression="OrderDate" UniqueName="OrderDate">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" SortExpression="CustomerID"
        UniqueName="CustomerID">
      </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry"
            SortExpression="ShipCountry" UniqueName="ShipCountry">
        </telerik:GridBoundColumn>
    </Columns>
  </MasterTableView>
  <ClientSettings >
    <Selecting AllowRowSelect="true" />
    <ClientEvents OnRowClick="RowInteraction1"></ClientEvents>
  </ClientSettings>
  <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
<br />
<br />
<strong>Orders details:</strong>
<telerik:RadGrid ID="RadGrid3" ShowStatusBar="True" runat="server" AllowSorting="True"
  AllowPaging="True" PageSize="5" DataSourceID="SqlDataSource3" GridLines="None"
  Width="95%">
  <MasterTableView Width="100%" AutoGenerateColumns="False"
    DataSourceID="SqlDataSource3">
    <Columns>
      <telerik:GridBoundColumn DataField="OrderID" HeaderText="OrderID" SortExpression="OrderID"
        UniqueName="OrderID" DataType="System.Int32">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" SortExpression="UnitPrice"
        UniqueName="UnitPrice" DataType="System.Decimal">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity" SortExpression="Quantity"
        UniqueName="Quantity" DataType="System.Int16">
      </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Discount" DataType="System.Single"
            HeaderText="Discount" SortExpression="Discount" UniqueName="Discount">
        </telerik:GridBoundColumn>
    </Columns>
  </MasterTableView>
  <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1"
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [PostalCode] FROM [Customers]"
  runat="server"></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2"
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT [OrderID], [OrderDate], [CustomerID], [ShipCountry] FROM [Orders] WHERE ([CustomerID] = @CustomerID)"
  runat="server">
  <SelectParameters>
    <asp:ControlParameter ControlID="RadGrid1" DefaultValue="ALFKI" Name="CustomerID"
      PropertyName="SelectedValue" Type="String" />
  </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource3"
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT [OrderID], [UnitPrice], [Quantity], [Discount] FROM [Order Details] WHERE ([OrderID] = @OrderID)"
  runat="server">
  <SelectParameters>
    <asp:ControlParameter ControlID="RadGrid2" Name="OrderID" DefaultValue="10643" PropertyName="SelectedValues['OrderID']"
      Type="Int32" />
  </SelectParameters>
</asp:SqlDataSource>
      
    </form>
</body>
</html>
Pavlina
Telerik team
 answered on 19 Oct 2012
1 answer
126 views

I have a Sitefinity Widget on a page with a template that is a custom master page.  The updated control is buried insite a MultiView.  The Ajax request seems to work fine, but my loading panel does not appear.  I've tried attaching ResponseEnd and RequestStart events, but they don't fire either.  I've read a large number for forum posts on people having trouble getting RadAjaxLoadingPanels to appear, but none of these solutions have worked for me.  Is there anything else I can try?

Thanks.

In page.master for the custom template:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>

<telerik:RadAjaxManager ID="RadAjaxManager1"   runat="server">
</telerik:RadAjaxManager>

In Sitefinity Widget .aspx:
   <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> 
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="HomeFilterPanel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadListViewHomesPanel" LoadingPanelID="MyLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <telerik:RadAjaxLoadingPanel ID="MyLoadingPanel"  ClientIDMode="Static" runat="server" MinDisplayTime="2000"  Skin="Default"  Visible="true">
    <asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label>

 <%-- <asp:Image ID="Image1" runat="server" Width="224px" Height="48px" ImageUrl="~/Loading.gif" />--%>
</telerik:RadAjaxLoadingPanel>

        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
            <script type="text/javascript">
                function RequestStart(sender, args) {
                    alert('RequestStart');
                }

                function ResponseEnd() {
                    alert('ResponseEnd');
                }
            </script>
        </telerik:RadScriptBlock>

 

In Sitefinity Widget .cs:
        protected void Page_Load(object sender, EventArgs e)
        {
            RadAjaxManager manager = RadAjaxManager.GetCurrent(this.Page);
            if (manager != null)
            {
                manager.ClientEvents.OnRequestStart = "RequestStart";
               manager.ClientEvents.OnResponseEnd = "ResponseEnd";         
            }

            RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadAjaxManager.GetCurrent(Page), RadListViewHomesPanel, this.MyLoadingPanel);

        }

Maria Ilieva
Telerik team
 answered on 19 Oct 2012
1 answer
249 views
Hello

just joined, so first time on here and I am not a programmer, so please forgive me for any 'numptyness'!

We are using Telerik in our new application and are using the rad editor to create html documents using free text and inserting fields from the database

We need to insert 2 fields next to each other on the sameline (first name and last name), but when testing the document it will only display the first name and the other name appears as the database field name. If fields are inserted on different line, then this works fine

I have attached some screenshots to illustrate problem

Thanks in advance for any assistance

Regards

Dan



Rumen
Telerik team
 answered on 19 Oct 2012
5 answers
821 views
When using the RadAutoCompleteBox, is there a way to clear the text of a previous selection in the text input area?  I have used the clear() method in both the RadAutoCompleteBox object and the AutoCompleteBoxEntryCollection object, which does indeed remove all the entries from the collection.  But there seems to be no way to get to the displayed selection in the text area and clear it also.  Thank you for any insight into this issue.
Bill
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
63 views
just trying the HtmlChart from Version 2012.2.724.35 using a List DataSource and the sample code from the HtmlChart List demo.  While running the control in IE9, discovered this javascript error 

The Java Debug returns an error

Expected ']' at line



[-]  this._dataSource "[[{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45}]{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45},{\"MarketShare2010\":0.19,\"MarketShare2011\":0.45}]" 

It appears to be malformed. Any suggestions are appreciated
Cheers

Marin Bratanov
Telerik team
 answered on 19 Oct 2012
4 answers
115 views
I'm relatively new to Telerik, under a year, and everything has been going great so far, up until I installed Q3 yesterday - that's when the blank hit the fan!

My VS2010 did not crash like others reported, however, the minute I launched my website I had crash after crash dealing with my Master page - not 10 minutes before, under Q2, it worked perfectly!

I opened a ticket, sent the error info and other info to get to the bottom of it.

Then I decided to go back to Q2 so I uninstalled all Teleriks, got Q2 and installed it and thank heavens, when I launch my website, it does not crash and that's good.

But then I found this odd ball problem, if you look at the before and after attached jpgs you'll see when I call RadAlert() all of the RadTextboxes lose their style! After clicking OK on the RadAlert, you have to hover the mouse over each textbox to revert it back to the before jpg.

I need help with this problem (and this is while running Q2!). All of the other updates went really well too!

Thanks in advance!
Derek
Top achievements
Rank 1
 answered on 19 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?