Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
I am experiencing the strangest thing. It's odd enough that I must have done something idiotic.

I have a page with a RadScheduler. The page has a MasterPage and applies a very simple ASP.NET theme (just a stylesheet and some images -- no control skins or js.) Runs with v. 2009.1.402.35. With the theme, the page freezes when a user running IE (any version 6-8) clicks on Options in creating an appointment. Runs fine under Firefox or Safari for Windows, or if I remove the Theme declaration in the Page tag.

Like I said, it's a strange issue. Has anyone else experienced this?

Jules E.
Atanas Korchev
Telerik team
 answered on 14 Apr 2009
1 answer
129 views
Using Telerik.Web.UI.dll 2009.1.402.35 I get an exception when the RadComboBox property ShowMoreResultsBox is set to true. If I remove the property I don't get the exception.The exception is not thrown (yellow page), however, I'm using the ELMAH "framework" to catch and log exception (see below).

The test page I've re-created the exception on has no code-behind and looks like this:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Telerik.aspx.vb" Inherits="tests_Telerik" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<!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="sm" runat="server" /> 
    <div> 
      <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" Height="150px" 
        EnableLoadOnDemand="True" ShowMoreResultsBox="true" 
        EnableVirtualScrolling="true"
      </telerik:RadComboBox> 
    </div> 
    </form> 
</body> 
</html> 
 

Exception logged using ELMAH:

exec ELMAH_LogError @ErrorId='4BBB2E05-633A-4A26-A0CD-E765FA21FF5E',@Application=N'a682a387',@Host=N'MYPC',@Type=N'System.Web.HttpException',@Source=N'System.Web',@Message=N'This is an invalid webresource request.',@User=N'Hansi',@AllXml=N'<error host="MYPC" type="System.Web.HttpException" message="This is an invalid webresource request." source="System.Web" detail="System.Web.HttpException: This is an invalid webresource request.&#xD;&#xA;   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)&#xD;&#xA;   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()&#xD;&#xA;   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)" user="Hansi" time="2009-04-13T19:27:32.3906250+02:00" statusCode="404">
  <serverVariables>
    <item name="ALL_HTTP">
      <value string="HTTP_CONNECTION:Keep-Alive&#xD;&#xA;HTTP_ACCEPT:*/*&#xD;&#xA;HTTP_ACCEPT_ENCODING:gzip, deflate&#xD;&#xA;HTTP_ACCEPT_LANGUAGE:da&#xD;&#xA;HTTP_COOKIE:ASP.NET_SessionId=lwfxyr55nbsugo55n2nxfznc; .MyProjectAuthCookie=D076ACBF9FFB3B143476E961C95CEBCD2DEB7C97AB552DDFA2AFE82B01CFD533347AF8A9AE4D0D75AEA7BBEED707C2005E235E463AEB416AA4945F6E12E1E75AD65D3051BC7699288A90D912E5243FD8E4DF2AADA988D902B808FB2833210706&#xD;&#xA;HTTP_HOST:localhost:2566&#xD;&#xA;HTTP_REFERER:http://localhost:2566/MyProject/Adm/LocationMngt.aspx&#xD;&#xA;HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)&#xD;&#xA;" />
    </item>
    <item name="ALL_RAW">
      <value string="Connection: Keep-Alive&#xD;&#xA;Accept: */*&#xD;&#xA;Accept-Encoding: gzip, deflate&#xD;&#xA;Accept-Language: da&#xD;&#xA;Cookie: ASP.NET_SessionId=lwfxyr55nbsugo55n2nxfznc; .MyProjectAuthCookie=D076ACBF9FFB3B143476E961C95CEBCD2DEB7C97AB552DDFA2AFE82B01CFD533347AF8A9AE4D0D75AEA7BBEED707C2005E235E463AEB416AA4945F6E12E1E75AD65D3051BC7699288A90D912E5243FD8E4DF2AADA988D902B808FB2833210706&#xD;&#xA;Host: localhost:2566&#xD;&#xA;Referer: http://localhost:2566/MyProject/Adm/LocationMngt.aspx&#xD;&#xA;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)&#xD;&#xA;" />
    </item>
    <item name="APPL_MD_PATH">
      <value string="" />
    </item>
    <item name="APPL_PHYSICAL_PATH">
      <value string="C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\MyCompany\MyProject\" />
    </item>
    <item name="AUTH_TYPE">
      <value string="Forms" />
    </item>
    <item name="AUTH_USER">
      <value string="Hansi" />
    </item>
    <item name="AUTH_PASSWORD">
      <value string="" />
    </item>
    <item name="LOGON_USER">
      <value string="MYPC\Administrator" />
    </item>
    <item name="REMOTE_USER">
      <value string="Hansi" />
    </item>
    <item name="CERT_COOKIE">
      <value string="" />
    </item>
    <item name="CERT_FLAGS">
      <value string="" />
    </item>
    <item name="CERT_ISSUER">
      <value string="" />
    </item>
    <item name="CERT_KEYSIZE">
      <value string="" />
    </item>
    <item name="CERT_SECRETKEYSIZE">
      <value string="" />
    </item>
    <item name="CERT_SERIALNUMBER">
      <value string="" />
    </item>
    <item name="CERT_SERVER_ISSUER">
      <value string="" />
    </item>
    <item name="CERT_SERVER_SUBJECT">
      <value string="" />
    </item>
    <item name="CERT_SUBJECT">
      <value string="" />
    </item>
    <item name="CONTENT_LENGTH">
      <value string="0" />
    </item>
    <item name="CONTENT_TYPE">
      <value string="" />
    </item>
    <item name="GATEWAY_INTERFACE">
      <value string="" />
    </item>
    <item name="HTTPS">
      <value string="" />
    </item>
    <item name="HTTPS_KEYSIZE">
      <value string="" />
    </item>
    <item name="HTTPS_SECRETKEYSIZE">
      <value string="" />
    </item>
    <item name="HTTPS_SERVER_ISSUER">
      <value string="" />
    </item>
    <item name="HTTPS_SERVER_SUBJECT">
      <value string="" />
    </item>
    <item name="INSTANCE_ID">
      <value string="" />
    </item>
    <item name="INSTANCE_META_PATH">
      <value string="" />
    </item>
    <item name="LOCAL_ADDR">
      <value string="127.0.0.1" />
    </item>
    <item name="PATH_INFO">
      <value string="/MyProject/WebResource.axd" />
    </item>
    <item name="PATH_TRANSLATED">
      <value string="C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\MyCompany\MyProject\WebResource.axd" />
    </item>
    <item name="QUERY_STRING">
      <value string="d=CzV6oPFwYGJnTYFjapWO-gPyp_Mu3OsiF8kogHFDxxvSiGKCNfoFGNf3zj257x-MWEI2Clp4AWWqyCmpxkXggVjusIVIQfx0-jfpRcqCLlk1&amp;t=633746129960000000" />
    </item>
    <item name="REMOTE_ADDR">
      <value string="127.0.0.1" />
    </item>
    <item name="REMOTE_HOST">
      <value string="127.0.0.1" />
    </item>
    <item name="REMOTE_PORT">
      <value string="" />
    </item>
    <item name="REQUEST_METHOD">
      <value string="GET" />
    </item>
    <item name="SCRIPT_NAME">
      <value string="/MyProject/WebResource.axd" />
    </item>
    <item name="SERVER_NAME">
      <value string="localhost" />
    </item>
    <item name="SERVER_PORT">
      <value string="2566" />
    </item>
    <item name="SERVER_PORT_SECURE">
      <value string="0" />
    </item>
    <item name="SERVER_PROTOCOL">
      <value string="HTTP/1.1" />
    </item>
    <item name="SERVER_SOFTWARE">
      <value string="" />
    </item>
    <item name="URL">
      <value string="/MyProject/WebResource.axd" />
    </item>
    <item name="HTTP_CONNECTION">
      <value string="Keep-Alive" />
    </item>
    <item name="HTTP_ACCEPT">
      <value string="*/*" />
    </item>
    <item name="HTTP_ACCEPT_ENCODING">
      <value string="gzip, deflate" />
    </item>
    <item name="HTTP_ACCEPT_LANGUAGE">
      <value string="da" />
    </item>
    <item name="HTTP_COOKIE">
      <value string="ASP.NET_SessionId=lwfxyr55nbsugo55n2nxfznc; .MyProjectAuthCookie=D076ACBF9FFB3B143476E961C95CEBCD2DEB7C97AB552DDFA2AFE82B01CFD533347AF8A9AE4D0D75AEA7BBEED707C2005E235E463AEB416AA4945F6E12E1E75AD65D3051BC7699288A90D912E5243FD8E4DF2AADA988D902B808FB2833210706" />
    </item>
    <item name="HTTP_HOST">
      <value string="localhost:2566" />
    </item>
    <item name="HTTP_REFERER">
      <value string="http://localhost:2566/MyProject/Adm/LocationMngt.aspx" />
    </item>
    <item name="HTTP_USER_AGENT">
      <value string="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)" />
    </item>
  </serverVariables>
  <queryString>
    <item name="d">
      <value string="CzV6oPFwYGJnTYFjapWO-gPyp_Mu3OsiF8kogHFDxxvSiGKCNfoFGNf3zj257x-MWEI2Clp4AWWqyCmpxkXggVjusIVIQfx0-jfpRcqCLlk1" />
    </item>
    <item name="t">
      <value string="633746129960000000" />
    </item>
  </queryString>
  <cookies>
    <item name="ASP.NET_SessionId">
      <value string="lwfxyr55nbsugo55n2nxfznc" />
    </item>
    <item name=".MyProjectAuthCookie">
      <value string="D076ACBF9FFB3B143476E961C95CEBCD2DEB7C97AB552DDFA2AFE82B01CFD533347AF8A9AE4D0D75AEA7BBEED707C2005E235E463AEB416AA4945F6E12E1E75AD65D3051BC7699288A90D912E5243FD8E4DF2AADA988D902B808FB2833210706" />
    </item>
  </cookies>
</error>',@StatusCode=404,@TimeUtc='2009-04-13 17:27:32:390'
Atanas Korchev
Telerik team
 answered on 14 Apr 2009
8 answers
619 views
I've downloaded the latest version of the Telerik controls 2009.01.311.20 and I was trying to use the compression module but I get this error:
Configuration Error  
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.  
 
Parser Error Message: Unrecognized attribute 'EnablePostbackCompression'. Note that attribute names are case-sensitive. 
 
Source Error:  
 
 
Line 25:   </configSections> 
Line 26:   <telerik.web.ui> 
Line 27:     <radCompression EnablePostbackCompression="true" /> 
Line 28:   </telerik.web.ui> 
Line 29:   <connectionStrings> 
  
 

I entered it exactly like it says in the online documentation, I pretty copied and pasted it in, and I receive that error. Did you rename that attribute or something?

Thanks,

Kevin
Grendizer
Top achievements
Rank 1
 answered on 14 Apr 2009
8 answers
277 views
Hi

I am trying to add nodes to rad tree view from java script method.

To get tree view object reference, I tried in three ways as below

case1: var

treeViewInstance = <%=RadTreeView1.ClientID %>;

case2: var

treeViewInstance = window["<%= RadTreeView1.ClientID %>"];

case3: var
treeViewInstance =$find("<%= RadTreeView1.ClientID %>");

In case1, case2 object is loading into treeViewInstance, But it does not having the methodes like get_nodes, trackChanges, commitChanges.

Where as in case3 treeViewInstance becoming null.

Can any one suggest me to solve this problem!!!

Thanks in advance,
Balaji Velasiri
 

Mr
Top achievements
Rank 1
 answered on 14 Apr 2009
1 answer
70 views
I have two panels. One contains a form, the other contains a grid. When I select a row from the grid, it posts back and updates the values in th form. It also contains a combobox, when clicked it also updates the form panel on the left.

I have wrapped both panels with RadAjaxPanel.

In IE7, it handles the ajax fine and updates the form values without a visible postback, refresh of the page, etc.

In Firefox, with the RadAjaxPanel, it allows one click, and then the grid is locked up and the so is the comboxbox and no amount of clicking will update either. As well, the length of the grid is messed up and too long.

In IE7, it works as expected.

If I remove the RadAjaxPanel, IE7 posts back and refreshes visibly as expected. But Firefox now works as though it has an Ajaxpanel loaded in automatically! It works great without the RadAjaxPanel at all.

Has anyone else experienced this? Does Firefox have Ajax built into the panels? This is very strange. I have deleted and added back several times and tested and retested just to confirm what I think I'm seeing.

Any ideas?

I am using Firefox version 3.0.8.

thanks.


Dimo
Telerik team
 answered on 14 Apr 2009
1 answer
123 views
We use RadTabStrip with 4 RadMultiPages but I doesn't get it work. the seon userControl gets loaded but isn't shown in the page.

We change the tabs with a button in the webpage (Button1_Click):


    <telerik:RadTabStrip ID="RadTabStrip1" runat="server"  AutoPostBack="true" OnTabClick="RadTabStrip1_TabClick" MultiPageID="RadMultiPage1">  
        <Tabs> 
            <telerik:RadTab id="Tab01" Value="1" runat="server" Text="Import" Selected="true"/>  
            <telerik:RadTab id="Tab02" Value="2" runat="server" Text="Feldzuordnung" /> 
            <telerik:RadTab id="Tab03" Value="3" runat="server" Text="Filtereinstellungen" /> 
            <telerik:RadTab id="Tab04" Value="4" runat="server" Text="Stammdatenabgleich" /> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <table cellspacing="0" cellpadding="0" width="850px" border="0">  
        <tr> 
            <td class="TabsPanelTopBody">  
            </td> 
        </tr> 
        <tr> 
            <td class="TabsPanelMainBody">  
                <asp:Panel ID="Panel1" runat="server">  
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
                        <telerik:RadPageView ID="RadPageView1" runat="server" /> 
                        <telerik:RadPageView ID="RadPageView2" runat="server" /> 
                        <telerik:RadPageView ID="RadPageView3" runat="server" /> 
                        <telerik:RadPageView ID="RadPageView4" runat="server" /> 
                    </telerik:RadMultiPage> 
                </asp:Panel> 
            </td> 
        </tr> 
    </table> 

code behind:
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
 
        If Me.CurrentControl <> String.Empty And CurrentControl <> "import.ascx" Then 
            'LoadMyUserControl(CurrentControl, Me.RadPageView2)  
            LoadMyUserControl(CurrentControl, RadTabStrip1.SelectedTab.PageView)  
        End If 
 
    End Sub 
 
    Public Property CurrentControl() As String 
        Get 
            Dim obj As Object = Session("CurrentControl")  
            If obj Is Nothing Then Return String.Empty Else Return CStr(obj)  
        End Get 
        Set(ByVal value As String)  
            Session("CurrentControl") = value  
        End Set 
    End Property 
 
 
    Public Sub RadMultiPage1_PageViewCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated  
        If Not created Then 
            If CurrentControl = "" Or CurrentControl = "import.ascx" Then 
                Dim userControlName As String = "import.ascx" 
                LoadMyUserControl(userControlName, e.PageView)  
                created = True 
                Button1.Text = "Datei importieren" 
            End If 
            If CurrentControl = "MappingField.ascx" Then 
                Dim userControlName As String = "MappingField.ascx" 
                LoadMyUserControl(userControlName, Me.RadPageView2)  
                'LoadMyUserControl(userControlName, e.PageView)  
                created = True 
                'Button1.Text = "Datei importieren"  
            End If 
 
        End If 
    End Sub 
 
    Private Sub LoadMyUserControl(ByVal controlName As StringByVal parent As Control)  
        parent.Controls.Clear()  
 
        Dim userControlID As String 
        userControlID = controlName  
        Dim MyControl As Object = LoadControl(controlName)  
        MyControl.ID = userControlID.Replace("/""").Replace("~""").Replace(".""_")  
 
        If controlName = "import.ascx" Then 
            'Dateityp 1=Stammdaten setzen  
            Dim objType As Type = MyControl.GetType 
            Dim p As PropertyInfo = objType.GetProperty("TYPE")  
            p.SetValue(MyControl, 1, Nothing)  
        End If 
 
        parent.Controls.Add(MyControl)  
        Me.CurrentControl = controlName  
    End Sub 
 
 
   Protected Sub Button1_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles Button1.Click  
 
        For index As Integer = 0 To Me.RadPageView1.Controls.Count - 1  
            Dim cc As Control = Me.RadPageView1.Controls(index)  
        Next 
 
        For index As Integer = 0 To Me.RadPageView2.Controls.Count - 1  
            Dim cc As Control = Me.RadPageView2.Controls(index)  
        Next 
 
        Dim actualCurrentControl = CurrentControl  
        If actualCurrentControl = "import.ascx" Then 
 
            Dim result As Boolean = CType(Me.RadPageView1.Controls(0), ISaveFunction).save(sender, e)  
 
            If result Then 
                Button1.Text = "Feldzuordnung speichern" 
                RadTabStrip1.SelectedIndex = RadTabStrip1.SelectedIndex + 1  
                LoadMyUserControl("MappingField.ascx", RadTabStrip1.SelectedTab.PageView)  
                'LoadMyUserControl("MappingField.ascx", Me.RadPageView2)  
            Else 
                'todo: Fehler ausgeben  
            End If 
 
        End If 
 
        If actualCurrentControl = "MappingField.ascx" Then 
 
            Dim c As Control = Me.RadPageView2.Controls(0)  
            Dim result As Boolean = CType(Me.RadPageView2.Controls(0), ISaveFunction).save(sender, e)  
            If result Then 
                Button1.Text = "Filter setzen" 
                RadTabStrip1.SelectedIndex = RadTabStrip1.SelectedIndex + 1  
                LoadMyUserControl("Filter.ascx", RadTabStrip1.SelectedTab.PageView)  
            End If 
        End If 
 
    End Sub 
 
 

Has someone the solution?

Chtistian
Paul
Telerik team
 answered on 14 Apr 2009
3 answers
147 views

I use RadGrid control version 4.6.

 

I want to use NextPrevNumericAndAdvanced Pager for my grid to be able to manipulate the size of the master and detail tables. I can resize the master table. Unfortunately, when I resize the master table, the dimensions of the detail table are also changed. It is not the behavior I need. I need both of the table view to work completely separately.

 

Another problem I have is when I try to change the size of detail table; I’m getting the following exception:

 

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]

   Telerik.WebControls.GridPageSizeChangedEventArgs.ExecuteCommand(Object source) +18 
   Telerik.WebControls.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +38 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.WebControls.GridTableView.set_PageSize(Int32 value) +176 
   Telerik.WebControls.GridPageChangedEventArgs.ExecuteCommand(Object source) +722 
  
[GridException: The specified value cannot be set on PageSize] 
   Telerik.WebControls.GridPageChangedEventArgs.ExecuteCommand(Object source) +822 
   Telerik.WebControls.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +38 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +38 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.WebControls.GridItem.OnBubbleEvent(Object source, EventArgs e) +115 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118 
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135 
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

 

Below you will find the sample code that you can use to reproduce the problems I described above.

 

Thank you very much in advance for all your help!!!

 

 

 

GridPager.aspx:

 

<%@ Page Language="C#" MasterPageFile="~/MasterPage/WWR.Master" AutoEventWireup="true"

         CodeBehind="GridPager.aspx.cs" Inherits="TestingStaff.GridPager" Title="Grid Pager" %>

 

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>

 

<asp:Content ID="Content1" ContentPlaceHolderID="cp1" runat="server">

    <radG:RadGrid ID="rgSchedules" runat="server" Skin="Yellow" Width="100%" AllowPaging="true"

            OnNeedDataSource="rgSchedules_NeedDataSource">

        <MasterTableView Name="Master" DataKeyNames="ScheduleId">

            <Columns>

                <radG:GridBoundColumn DataField="ScheduleId" HeaderText="Schedule ID" UniqueName="ScheduleId" />

                <radG:GridBoundColumn DataField="ScheduleName" HeaderText="Schedule Name" UniqueName="ScheduleName" />

            </Columns>

            <DetailTables>

                <radG:GridTableView runat="server" Name="Detail" Width="100%" GridLines="Both">

                    <ParentTableRelation>

                        <radG:GridRelationFields DetailKeyField="ScheduleId" MasterKeyField="ScheduleId" />

                    </ParentTableRelation>

                    <Columns>

                        <radG:GridBoundColumn DataField="ClientId" HeaderText="Client ID" UniqueName="ClientNumber" />

                        <radG:GridBoundColumn DataField="ClientName" HeaderText="Client Name" UniqueName="ClientName" />

                        <radG:GridBoundColumn DataField="ScheduleId" UniqueName="ScheduleId" Visible="false" />

                    </Columns>

                </radG:GridTableView>

            </DetailTables>

        </MasterTableView>

        <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" />

    </radG:RadGrid>

</asp:Content>

 

 

 

GridPager.aspx.cs:

 

using System;

using System.Web.UI;

using System.Collections.Generic;

using Telerik.WebControls;

 

namespace TestingStaff

{

    public partial class GridPager : Page

    {

        private class Schedule

        {

            private int scheduleID;

            private string scheduleName;

            public int ScheduleID

            {

                get { return scheduleID; }

                set { scheduleID = value; }

            }

            public string ScheduleName

            {

                get { return scheduleName; }

                set { scheduleName = value; }

            }

        }

       

        private class Client

        {

            private int clientID;

            private string clientName;

            private int scheduleID;

            public int ClientID

            {

                get { return clientID; }

                set { clientID = value; }

            }

            public string ClientName

            {

                get { return clientName; }

                set { clientName = value; }

            }

            public int ScheduleID

            {

                get { return scheduleID; }

                set { scheduleID = value; }

            }

        }

       

        protected void rgSchedules_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

        {

            List<Schedule> schedules = new List<Schedule>();

            List<Client> clients = new List<Client>();

            for (int i = 1; i <= 2; i++)

            {

                Schedule schedule = new Schedule();

                schedule.ScheduleID = i;

                schedule.ScheduleName = "Schedule " + i.ToString();

                schedules.Add(schedule);

                for (int j = 1; j <= 10; j++)

                {

                    Client client = new Client();

                    client.ClientID = j;

                    client.ClientName = " Client " + j.ToString() + " of Schedule " + i.ToString();

                    client.ScheduleID = i;

                    clients.Add(client);

                }

            }

            rgSchedules.DataSource = schedules;

            rgSchedules.MasterTableView.DetailTables[0].DataSource = clients;

        }

    }

}

 

 

 

WWR.Master

 

<%@ Master Language="C#" AutoEventWireup="true" Codebehind="WWR.Master.cs" Inherits="TestingStaff.WWR" %>

 

<!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:ContentPlaceHolder ID="cp1" runat="server" />

    </form>

</body>

</html>

 

Sebastian
Telerik team
 answered on 14 Apr 2009
5 answers
232 views

Hi,

I have a Rad Window and a menu on an ASP.NET MVC app.

I was wondering, what is the best way to load completely different content when a button on the toolbar is clicked?

For example, on page load, I have some welcoming text in the Window, but if I click "skills" in the toolstrip, I would like to eradicate the welcoming text and show a rad data grid, slider, etc? Maybe I need seperate RAD windows but wouldn't this harm performance?

Thanks

Georgi Tunev
Telerik team
 answered on 14 Apr 2009
3 answers
171 views
i have a splitbar inside a splitter. because my table has like 40 columns the splitter automatically set scrollbar to both horizontal and vertical. i don't want this to happen. i want the height and width to set to 100%. i don't want to have scrollbar inside scrollbar. how do i disable that function so the only scroll bar i have left is the one on the browser. thanks.
Tsvetie
Telerik team
 answered on 14 Apr 2009
1 answer
95 views

I am getting a scripting error on this line generated by Telerik: a missing "}".

$create(Telerik.Web.UI.RadGrid, {

"ClientID":"RadGrid1","ClientSettings":{"PostBackFunction":"__doPostBack(\u0027{0}\u0027,\u0027{1}\u0027)","AllowExpandCollapse":true,"AllowGroupExpandCollapse":true,"AllowKeyboardNavigation":true,"ColumnsReorderMethod":0,"ShouldCreateRows":true,"Selecting":{"AllowRowSelect":true},"Scrolling":{"SaveScrollPosition":true,"ScrollHeight":"300px"},"Resizing":{"ClipCellContentOnResize":true},"ClientMessages":{"DragToGroupOrReorder":"Drag to group or reorder","DragToResize":"Drag to resize","DropHereToReorder":"Drop here to reorder","PagerTooltipFormatString":"Page: \u003cb\u003e{0}\u003c/b\u003e out of \u003cb\u003e{1}\u003c/b\u003e pages"}},"Skin":"Default","UniqueID":"RadGrid1","_activeRowData":"","_clientKeyValues":{},"_currentPageIndex":0,"_gridTableViewsData":"[{\"ClientID\":\"RadGrid1__ctl0\",\"UniqueID\":\"RadGrid1:_ctl0\",\"PageSize\":22,\"PageCount\":1,\"CurrentPageIndex\":0,\"Name\":\"\",\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"SelectedRow_Default\",\"_renderActiveItemStyle\":\"\",\"_renderActiveItemStyleClass\":\"ActiveRow_Default\",\"_columnsData\":[{\"UniqueName\":\"column\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":false,\"Display\":true},{\"UniqueName\":\"name\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"citystate\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"phone\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true}]}]","_loadingText":"Loading...","_masterClientID":"RadGrid1__ctl0","_popUpIds":"[]","_popUpSettings":{"ScrollBars":0,"Modal":false,"ZIndex":8000,"Height":{"IsEmpty":true,"Type":1,"Value":0},"Width":{"IsEmpty":false,"Type":1,"Value":400},"ViewState":{}},"_readyText":"Ready","_statusLabelID":"","allowMultiRowSelection":false,"clientStateFieldID":"RadGrid1_ClientState"}, {"gridCreated":GridCreated,"masterTableViewCreated":goToResults,"rowCreated":RowCreated}, null, $get("RadGrid1"));

 

});

Daniel
Telerik team
 answered on 14 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?