Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
Greetings,

I have a grid that has only three entries in it with three columns, with 2 visible and the 3rd hidden.  One of my columns is a template that has a label in the Item Template, and a textbox and validator to validate the textbox in the Edit Template.  I have set the grid up to use validation, and I am only doing editing for this grid.  Here is the code for the grid.

<telerik:RadGrid ID="rgdStatusList" runat="server" AllowPaging="True" AllowSorting="True" 
        AutoGenerateColumns="False" DataSourceID="odsGetStatusList" GridLines="None" 
        OnNeedDataSource="rgdStatusList_NeedDataSource" ShowGroupPanel="false" 
        OnItemCommand="rgdStatusList_ItemCommand" ShowStatusBar="True"   
        AllowMultiRowSelection="true" PageSize="30" OnItemDataBound="rgdStatusList_ItemDataBound" 
        onprerender="rgdStatusList_PreRender" OnInsertCommand="rgdStatusList_InsertCommand" Width="275px" 
        OnPageIndexChanged="rgdStatusList_PageIndexChanged" OnDeleteCommand="rgdStatusList_DeleteCommand">  
        <ValidationSettings EnableValidation="true" /> 
        <MasterTableView DataKeyNames="StatusID" DataSourceID="odsGetStatusList" CommandItemDisplay="Top" 
        EditMode="InPlace">  
        <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" /> 
            <CommandItemTemplate> 
                <telerik:RadToolBar ID="rtbToolBar" OnButtonClick="rtbToolBar_ButtonClick" runat="server" 
                    OnClientButtonClicking="onToolBarClientButtonClicking">  
                    <Items> 
                        <telerik:RadToolBarButton Text="Add Status" SkinID="AddBtn" CommandName="InitInsert" ToolTip="Add Status Code" 
                            Visible='<%# !rgdStatusList.MasterTableView.IsItemInserted %>'>  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Save Status" SkinID="AddBtn" CommandName="PerformInsert" ToolTip="Save Status" 
                            Visible='<%# rgdStatusList.MasterTableView.IsItemInserted %>' ValidationGroup="validate">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Cancel" SkinID="CancelBtn" CommandName="CancelAll" ToolTip="Cancel" 
                            Visible='<%# rgdStatusList.MasterTableView.IsItemInserted %>'>  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Delete Status" SkinID="DeleteBtn" CommandName="DeleteSelected" ToolTip="Delete Status Code" 
                            Visible='<%# !rgdStatusList.MasterTableView.IsItemInserted %>'>  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Set Defaults" SkinID="SetDefaultsBtn" CommandName="SetDefaults" ToolTip="Set Defaults">  
                        </telerik:RadToolBarButton> 
                    </Items> 
                </telerik:RadToolBar> 
            </CommandItemTemplate> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="StatusID" DataType="System.Int32"   
                    HeaderText="Status ID" SortExpression="StatusID" UniqueName="StatusID" ReadOnly="true" 
                    Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn DataField="StatusDescription" HeaderText="Status Name" 
                    SortExpression="StatusDescription" UniqueName="StatusDescription" EditFormColumnIndex="1">  
                    <ItemTemplate> 
                        <asp:Label ID="lblStatusDesc" runat="server" 
                            Text='<%# DataBinder.Eval(Container, "DataItem.StatusDescription")%>'>  
                        </asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <telerik:RadTextBox ID="txtStatusDesc" runat="server" Text="" Width="200" MaxLength="26">  
                        </telerik:RadTextBox> 
                        <br /> 
                        <asp:RequiredFieldValidator ID="rfvStatusDesc" runat="server" ControlToValidate="txtStatusDesc" 
                            ErrorMessage="You cannot have a blank Status Description." SetFocusOnError="true" 
                            ValidationGroup="validate" Display="Dynamic">  
                        </asp:RequiredFieldValidator> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn UniqueName="Active" DataField="Active" SortExpression="Active" 
                    HeaderText="Type" EditFormColumnIndex="1">  
                <ItemTemplate> 
                    <asp:Label ID="lblStatusType" runat="server" Text='<%# TypeStatus(DataBinder.Eval(Container, "DataItem.Active"))%>'>  
                    </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <asp:CheckBox ID="chkActive" runat="server" ToolTip="Click to set this Status to an Active Type" /> 
                </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings ColumnNumber="2">                  
            </EditFormSettings> 
        </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
        <FilterMenu EnableTheming="True">  
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
        <StatusBarSettings ReadyText="Ready" /> 
        <ValidationSettings CommandsToValidate="PerformInsert" /> 
    </telerik:RadGrid> 

Anyways, when I start editing, the validator functions properly.  Then when I try to save what is in the textbox when something is in it, I get this error:

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate
during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type
and position of the controls added during the initial request.

There are no controls being added or taken off, and for the life of me, I can't figure out what it's talking about.  If someone could help me, I'd be very appreciative.  Thanks.

~ Chad
Chad Johnson
Top achievements
Rank 1
 answered on 27 Oct 2008
1 answer
124 views
I have a grid with 2 textboxes.  How can I add a required field validator to the boxes at runtime ?
Daniel
Telerik team
 answered on 27 Oct 2008
1 answer
137 views
Hi!

I am use RadCalendar (version 2008.2.826) with MultiViewColumns="6" MultiViewRows="2". But it is work very slow!
How can accelerate work RadCalendar?

Thanks.
Sebastian
Telerik team
 answered on 27 Oct 2008
4 answers
309 views
I am using a RadPanelBar control to house a hierarchical navigation tree in one of the pages on my site.  The Panel Bar has two or three levels of items, each with an associated ID, parent ID, text attribute, URL and two or three other custom attributes.  I have an OnItemClick event handler to update a section of the page whenever an item is clicked (from a custom attribute named "content").  Thus clicking any item causes a post-back.

My problem is this: although the site runs smoothly on my local server, when I deploy it to a remote server I experience long delays when waiting for the screen to be updated after clicking on an item in the Panel Bar.  Using Firebug to investigate, I have found that a typical page is around 125KB in size, with most of this being taken up by the Panel Bar in terms of HTML tags or ViewState contents.

Is there an optimal way to use the Rad Panel Bar in situations like this when the items are "heavy"?  Can I minimise the amount of ViewState required, or compress it somehow?  Are there any settings that might improve performance?  Or should I be looking at moving a lot of my server-side processing to the client?  Any advice would be helpful, either general or specific.

Thanks,

Ed Graham

Ed
Top achievements
Rank 1
 answered on 27 Oct 2008
1 answer
253 views
Hi,

I have been stuck on an issue for a long time now and in need of some assistance.

I am currently working on a DotNetNuke module with the Telerik DLL which is being referenced. I have Telerik file version: 2008.02.0826.20.

I am trying to make a custom skin for the RadPanel Bar and followed the instructions outlined the Telerik "Basics of Telerik RAD Controls Skinning" and it doesn't seem to work.

The following is the code I am using which is nice and simple.

ASCX:

<

 

telerik:RadPanelBar runat="server" Width="200px" Height="450px" ID="MyMenu"

 

 

Skin="WindowsXP" ExpandMode="FullExpandedItem"

 

 

PersistStateInCookie="False" EnableEmbeddedSkins="false" >

 

 

<CollapseAnimation Type="InBounce" Duration="100"></CollapseAnimation>

 

 

 

<ExpandAnimation Type="None" Duration="100"></ExpandAnimation>

 

</

 

telerik:RadPanelBar>



The structure for the Folders is as follows:

root
|__RadControls
        |__PanelBar
                |__Skins
                        |__PRMS
                                |__img
                                |        |__arrow-collapse.png
                                |        |__arrow-expand.png
                                |        |__panel_bar_bg_selected.png
                                |        |__panel_bar_bg_unselected.png
                                |__Style.css     



 

.RadPanelBar_PRMS

 

 

 

{

 

background: #FFFFFF;

 

 

color: #000000;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup

 

 

 

 

{

 

border: 1px solid #000000;

 

 

border-bottom-color: #000000;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpItem

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/panel_bar_bg_selected.png') repeat-x top left;

 

 

background: #FFFFFF;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpLink

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/panel_bar_bg_selected.png') no-repeat top left;

 

 

height: 30px;

 

 

line-height: 30px;

 

 

border-bottom: 1px solid #000000;

 

 

overflow: hidden;

 

}

 

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpLink:hover .rpText

 

 

 

 

{

 

color: #000;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpLink:hover .rpText

 

 

 

 

{

 

color: #000;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpText

 

 

 

 

{

 

margin-left: 10px;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpRootGroup .rpText

 

 

 

 

{

 

margin-right: 10px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpItem,

 

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpLink

 

 

 

 

{

 

height: auto;

 

 

border: 0;

 

 

background: none;

 

}

 

 

.RadPanelBar_PRMS

 

.rpText

 

 

 

 

{

 

margin-right: 7px;

 

 

overflow-x: hidden;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpText

 

 

 

 

{

 

margin-right: 0;

 

 

margin-right: 7px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpExpandable .rpText

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/arrow-expand.png') no-repeat right 7px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpExpanded .rpText

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/arrow-collapse.png') no-repeat right 7px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpExpanded .rpText

 

 

 

 

{

 

background-position: right 5px;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpExpandable .rpText

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/arrow-expand.png') no-repeat left 7px;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpExpanded .rpText

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/arrow-collapse.png') no-repeat left 7px;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpGroup .rpExpanded .rpText

 

 

 

 

{

 

background-position: left 5px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpText

 

 

 

 

{

 

font: normal 12px Verdana, Arial, sans-serif;

 

 

line-height: 30px;

 

 

color: #000000;

 

 

padding: 0 0 0 0;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpRootGroup .rpText

 

 

 

 

{

 

padding: 0 0 0 0;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpText

 

 

 

 

{

 

font-size: 11px;

 

 

padding: 0 0 0 0;

 

 

color: #000;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpRootGroup .rpText

 

 

 

 

{

 

padding: 0 0 0 0;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpLink

 

 

 

 

{

 

margin-right: 2px;

 

 

display: block;

 

 

width: auto;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpGroup .rpLink

 

 

 

 

{

 

text-indent: 3px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpLevel1 .rpLink

 

 

 

 

{

 

margin-left: 0;

 

}

 

 

.RadPanelBar_PRMS

 

.rpLevel2 .rpLink

 

 

 

 

{

 

margin-left: 10px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpLevel3 .rpLink

 

 

 

 

{

 

margin-left: 20px;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpLevel1 .rpLink

 

 

 

 

{

 

margin-right: 0;

 

 

margin-left: 0;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpLevel2 .rpLink

 

 

 

 

{

 

margin-right: 10px;

 

 

margin-left: 0;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpLevel3 .rpLink

 

 

 

 

{

 

margin-right: 20px;

 

 

margin-left: 0;

 

}

 

 

.RadPanelBar_PRMS_rtl

 

.rpGroup .rpLink

 

 

 

 

{

 

margin-left: 2px;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpText

 

 

 

 

{

 

margin-right: 0;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpLink:hover

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/subitem-hover.png') no-repeat 2px top;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpExpandable:hover

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/subitem-expandable-hover.png') no-repeat 2px top;

 

}

 

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpExpanded:hover

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/subitem-expanded-hover.png') no-repeat 2px top;

 

}

 

 

 

.RadPanelBar_PRMS_rtl

 

.rpGroup .rpExpandable:hover

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/subitem-expandable-hover-rtl.png') no-repeat 12px top;

 

}

 

 

 

.RadPanelBar_PRMS_rtl

 

.rpGroup .rpExpanded:hover

 

 

 

 

{

 

background: transparent url('http://localhost/prms/RadControls/PanelBar/Skins/PRMS/img/subitem-expanded-hover-rtl.png') no-repeat 12px top;

 

}

 

 

 

 

/* these should be checked */

 

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpSelected .rpText

 

 

 

 

{

 

font-weight: bold;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpSelected .rpText

 

 

 

 

{

 

font-weight: normal;

 

 

text-decoration: underline;

 

}

 

 

.RadPanelBar_PRMS

 

.rpDisabled .rpText

 

 

 

 

{

 

cursor: default;

 

 

color: #bbb;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpDisabled:hover

 

 

 

 

{

 

cursor: default;

 

 

text-decoration: none;

 

}

 

 

.RadPanelBar_PRMS

 

.rpRootGroup .rpDisabled:hover .rpText

 

 

 

 

{

 

color: #bbb;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpDisabled:hover

 

 

 

 

{

 

border-bottom: 0;

 

 

cursor: default;

 

 

text-decoration: none;

 

 

background: none;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpDisabled:hover .rpText

 

 

 

 

{

 

background: none;

 

}

 

 

.RadPanelBar_PRMS

 

.rpGroup .rpLast

 

 

 

 

{

 

zoom: 1;

 

}

 

Alex Gyoshev
Telerik team
 answered on 27 Oct 2008
2 answers
113 views
take my test website and try help me.plis

http://xaf.cmsplanet.ru/delight/mymulticombo.zip

it website doen't contain telerik's *.dll
Valera
Top achievements
Rank 1
 answered on 27 Oct 2008
1 answer
86 views

Hi,
I am using radcontrols with .net1.1 in VS2003. I want to display mastergrid and on clicking a plus sign, a child grid.I have written a simple code for this. But I cannot see the chidgrid on compiling and running the project.I cannot see even the header names of the childgrid. when I click on the '+' sign,it just refreshes the page but show even the headers.
And also I an needdatasource and detaildatabind handlers in the initialize method. But when I use breakpoint to check the flow, the events are not happening. Its just executing FillGridData and nothing else.

Can any one tel me whats happennig?

Following is my code in aspx and cs

<%@ Register TagPrefix="rada" Namespace="Telerik.WebControls" Assembly="RadAjax" %>
<%@ Register TagPrefix="radM" Assembly="RadMenu" Namespace="Telerik.WebControls" %>
<%@ Register TagPrefix="radcb" Namespace="Telerik.WebControls" Assembly="RadComboBox" %>
<%@ Register TagPrefix="ignav1" Namespace="Infragistics.WebUI.UltraWebNavigator" Assembly="Infragistics.WebUI.UltraWebNavigator.v3.2, Version=3.2.20042.26, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
<%@ Register TagPrefix="radW" Namespace="Telerik.WebControls" Assembly="RadWindow" %>
<%@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid" %>
<%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="Vortex.Log.WebForm2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
  <title>WebForm2</title>
  <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  <meta name="CODE_LANGUAGE" Content="C#">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  </HEAD>
 <body MS_POSITIONING="GridLayout">
  <form id="Form1" method="post" runat="server">
   <radG:RadGrid id="RadGrid1" runat="server" autogeneratecolumns="false" EnableAJAX="True">
    <mastertableview datakeynames="USERACTIVITYID">
    <ExpandCollapseColumn Resizable="False">

                                        <HeaderStyle Width="20px"></HeaderStyle>

                                    </ExpandCollapseColumn>

     <Columns>
      <radg:GridBoundColumn Uniquename="USERACTIVITYID" DataField="USERACTIVITYID" visible="false"></radg:GridBoundColumn>
      <radg:GridBoundColumn Uniquename="FNAME" HeaderText="First Name" DataField="FNAME"></radg:GridBoundColumn>
      <radg:GridBoundColumn Uniquename="LNAME" HeaderText="Last Name" DataField="LNAME"></radg:GridBoundColumn>
      <radg:GridBoundColumn Uniquename="LOGINTIME" HeaderText="Login Time" DataField="LOGINTIME"></radg:GridBoundColumn>
      <radg:GridBoundColumn Uniquename="LOGOUTTIME" HeaderText="Logout Time" DataField="LOGOUTTIME"></radg:GridBoundColumn>
      <radg:GridBoundColumn Uniquename="IPADDRESS" HeaderText="Client IP" DataField="IPADDRESS"></radg:GridBoundColumn>
      <radg:GridBoundColumn Uniquename="MARKET" HeaderText="Market" DataField="MARKET"></radg:GridBoundColumn>
     </Columns>
     
     <DetailTables>
     <radg:GridTableView  datakeynames="USERACTIVITYID">
       <Columns>
       <radg:GridBoundColumn Uniquename="USERACTIVITYID" DataField="USERACTIVITYID" visible="false"></radg:GridBoundColumn>
        <radg:GridBoundColumn Uniquename="FNAME" HeaderText="TYPE" DataField="FNAME"></radg:GridBoundColumn>
        <radg:GridBoundColumn Uniquename="LOGINTIME" HeaderText="LOGINTIME" DataField="LOGINTIME"></radg:GridBoundColumn>
        <radg:GridBoundColumn Uniquename="LOGOUTTIME" HeaderText="Action Time" DataField="LOGOUTTIME"></radg:GridBoundColumn>
       </Columns>
      </radg:GridTableView>
     </DetailTables>
    </mastertableview>
               
   </radG:RadGrid>
  </form>
 </body>
</HTML>

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Vortex.Log
{
 /// <summary>
 /// Summary description for WebForm2.
 /// </summary>
 public class WebForm2 : System.Web.UI.Page
 {
  protected Telerik.WebControls.RadGrid RadGrid1;
  private AllLogsData1 ald = new AllLogsData1();
 
  private void Page_Load(object sender, System.EventArgs e)
  {
   // Put user code to initialize the page here
   if(! IsPostBack)
   {
    if(ald.getAllData(Session["userid"].ToString(), Session["usertypeid"].ToString(),Session["userid"].ToString()))
     FillGridData();
    
   }
  }

  private void FillGridData()
  {
   RadGrid1.DataSource=ald.dataSource.Tables["session"].DefaultView;
   RadGrid1.DataBind();
  
   
  }

  #region Web Form Designer generated code
  override protected void OnInit(EventArgs e)
  {
   //
   // CODEGEN: This call is required by the ASP.NET Web Form Designer.
   //
   InitializeComponent();
   base.OnInit(e);
  }
  
  /// <summary>
  /// Required method for Designer support - do not modify
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {   
   this.Load += new System.EventHandler(this.Page_Load);
   this.RadGrid1.NeedDataSource+= new Telerik.WebControls.GridNeedDataSourceEventHandler(this.RadGrid1_NeedDataSource);
   this.RadGrid1.DetailTableDataBind+=new Telerik.WebControls.GridDetailTableDataBindEventHandler(this.RadGrid1_DetailTableDataBind);

  }
  
  protected void RadGrid1_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)
  {
   RadGrid1.DataSource=ald.dataSource.Tables["session"];
   
  }
  
  

  protected void RadGrid1_DetailTableDataBind(object source, Telerik.WebControls.GridDetailTableDataBindEventArgs e)
  {
   RadGrid1.DataSource=ald.dataSource.Tables["session"];
  }

  #endregion
 }
}

Iana Tsolova
Telerik team
 answered on 27 Oct 2008
1 answer
131 views
My user request me to turn off the paging function of the grid, but it turns out the time for the grid to initialize is quite unacceptable(over a minutes). I have read a page about this problem and it suggested to turn off all client side event of the grid, but it is not possible for me as at least the sorting function and row double click event should be kept. So do you have any other method to better the performance? (My target is to show a few hundred record in the grid with no paging)

And I am curious about something. After I use the paging function, and then I change the page side by the "footer bar" of the grid, and it turns out the performance is okay. So why? Thank you.
Iana Tsolova
Telerik team
 answered on 27 Oct 2008
8 answers
95 views

 I use RadProgressManager and RadProgressArea  with the rad upload control. it works fine in all browsers except safari 3 and above. This happend especially when i try to upload .flp and .cwk  files.

If i upload a .doc or .txt file it works fine.

Please share some light on this.

----------------- Sample Code --------

<body>
<form id="form1" runat="server">
<div>
<label for="RadUploadMainFile0"><asp:Literal ID="ltlMainFile" runat="server" Text="file to upload: <span class='formalert'>*</span>" meta:resourcekey="lblMainFileResource1"></asp:Literal>
<asp:CustomValidator ID="MainFile" runat="server" ErrorMessage="You must select a main file."
ClientValidationFunction="Check" OnServerValidate="MainFile_ServerValidate" Display="Dynamic" CssClass="ErrorMessage" ForeColor="" ></asp:CustomValidator>
</label>
<radU:RadUpload ID="RadUpload" runat="server" ControlObjectsVisibility="None" OnClientFileSelected="SelectedFile" LocalizationPath="~/RadControls/Upload/Localization" ></radU:RadUpload>
<div ><asp:Literal ID="ltrFileName" runat="server" Text="Filename: " ><asp:Label id="lblFileName" runat="server" asp:Label></div>

<radU:RadProgressManager ID="Radprogressmanager1" runat="server" meta:resourcekey="Radprogressmanager1Resource1" />
<radU:RadProgressArea ID="progressArea1" runat="server" ProgressIndicators="TotalProgress, TotalProgressPercent, RequestSize, CurrentFileName" DisplayCancelButton="True" SkinsPath="Non-existingPath" meta:resourcekey="progressArea1Resource1" Language="" LocalizationPath="h:\RadControls\Upload//Localization" >
</radU:RadProgressArea>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" Visible="true" OnClick="Button1_Click" /></div>
</form>
</body>

 

Veselin Vasilev
Telerik team
 answered on 27 Oct 2008
3 answers
147 views
Does telerik have a gradient, rounded corner panel control, such as this:

http://www.soft-group.it/net/index.php?c=3a&id=30

thanks.
Vlad
Telerik team
 answered on 27 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?