Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
228 views
I've tried a number of examples here from the forum to try and solve my problem of having the rad splitter sit at 100%, but with no luck.

I have a relatively simple web page with a header, content area (where the splitter sits), and a footer.  For some reason, the splitter won't go past about 50% of the screen height.  I've made sure that the elements outside of the splitter are sized to 100%.  In fact, I've added a quick border statement to them to make sure that everything extends to the bottom of the page, and it does (all except the splitter).

I'm attached a screenshot to this thread, and a sample project built with Q2 2009 can be downloaded here.  I've removed the telerik.web.dll references from the bin folder to make the zip file smaller.  

Any help is greatly appreciated!

Thank you,
Alex
Alex Tushinsky
Top achievements
Rank 2
 answered on 08 Oct 2009
0 answers
119 views
I've implemented a client facing web-portal which uses several data-bound composite WebControls from a library and allows our clients to view their data from within our databases. My problem is with the WebControl that creates and adds a RadToolBar to it's Controls collection during the CreateChildControl override. Seems the only way it will work is if I set the RadToolBar.EnableViewState property to false...otherwise I get the following error at each postback,

        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.

I have another WebControl in the same library that adds a RadMenuBar the same way and it works fine...example, this fails at postback unless I uncomment the bolded statement,

    public class MyWebControl : WebControl, INamingContainer
    {
        protected override void CreateChildControls()
        {
            this.Controls.Clear();

            RadToolBar toolBar = new RadToolBar();
            toolBar.ID = "MyToolBar";   
            //toolBar.EnableViewState = false;

            this.Controls.Add( toolBar );

            base.CreateChildControls();
        }
}

...yet this works fine
    public class MyWebControl : WebControl, INamingContainer
    {
        protected override void CreateChildControls()
        {
            this.Controls.Clear();

            RadMenu menu = new RadMenu();
            menu .ID = "MyMenu";   

            this.Controls.Add( menu );

            base.CreateChildControls();
        }
}


Anyone know what the problem is??

 

Mark
Top achievements
Rank 1
 asked on 07 Oct 2009
3 answers
148 views
I am prototyping a data driven data entry form.  I have a UserControl that will vary appearance and validation based on data values provided through an asp:repeater control..  My problem is that the first time a value is entered and the AutoPostBack is triggered, a regular postback occurs not an Ajax callback.  It doesn't matter which Field is entered first and any subsequent AutoPostBacks on the first field or any other of the repeater fields appear to do Ajax call backs properly.  Any help appreciated.


FORM:

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

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

<%@ Register src="UserControls/FieldEntry.ascx" tagname="FieldEntry" tagprefix="uc1" %>

<!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 id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
   </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <asp:Repeater ID="Repeater1" DataSourceID="ldsFields" runat="server">
     <ItemTemplate>
       <uc1:FieldEntry ID="Value1"
        FieldName='<%# Eval("FieldName") %>'
        FieldLabel='<%# Eval("FieldLabel") %>'
        Hint='<%# Eval("Hint") %>'
        InputControlWidth='<%# Eval("InputControlWidth") %>'
        InputMaxLength='<%# Eval("InputMaxLength") %>'
        ValidationType='<%# Eval("ValidationType") %>'
        TapeValue='<%# Eval("TapeValue") %>'
        ShowTapeValue ='<%# Eval("ShowTapeValue") %>'
        PrimarySource='<%# Eval("PrimarySource") %>'
        ShowPrimarySource='<%# Eval("ShowPrimarySource") %>'
        SecondarySource='<%# Eval("SecondarySource") %>'
        ShowSecondarySource='<%# Eval("ShowSecondarySource") %>'
        runat="server" />
      <asp:RequiredFieldValidator ID="rfvValue"
       ControlToValidate="Value1"
       ValidationGroup="Page"
       runat="server"
       ErrorMessage="All Fields are required.">
      </asp:RequiredFieldValidator>
     </ItemTemplate>
    </asp:Repeater>
    <asp:Button ID="Button1" runat="server" ValidationGroup="Page" Text="Submit" />
   
   
   <asp:LinqDataSource ID="ldsFields" runat="server" ContextTypeName="LoanDataContext" TableName="FieldEntryTesting" OrderBy="PrimarySortOrder, FieldLabel">
   </asp:LinqDataSource>
  <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
    </form>
</body>
</html>

UserControl:

 

 

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="FieldEntry.ascx.vb" Inherits="UserControls_FieldEntry" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<table style="table-layout: fixed; border: none; padding: 0px; margin: 0px">
 <colgroup>
  <col width="150px" />
  <col width="0%" />
  <col width="0%" />
  <col width="0%" />
 </colgroup>
 <tr>
  <th style="border: none; padding: 0px; margin: 0px; text-align: left;">
   <asp:Label ID="lName" runat="server"></asp:Label>
   <telerik:RadToolTip ID="rtpSource" TargetControlID="lName" runat="server">
   </telerik:RadToolTip>
  </th>
  <td style="border: none; padding: 0px; margin: 0px">
   <telerik:RadTextBox ID="rtbItem"
    AutoPostBack="true"
    CausesValidation="false"
    EmptyMessage=""
    runat="server">
    <EmptyMessageStyle BorderColor="Red"></EmptyMessageStyle>
   </telerik:RadTextBox>
  </td>
  <td>
   <div id="divTapeValue" runat="server"></div>
  </td>
  <td style="border: none; padding: 0px; margin: 0px">
   <div id="divReason" runat="server" visible="false">
    <telerik:RadTextBox ID="rtbReason"
     EmptyMessage="(reason)"
     Width="100%"
     MaxLength="250"
     runat="server">
     <EmptyMessageStyle BorderColor="Red" />
    </telerik:RadTextBox>
    <telerik:RadToolTip ID="rtpReason"
     TargetControlID="rtbReason"
     runat="server">
    </telerik:RadToolTip>
    <asp:RequiredFieldValidator ID="rfvReason"
     ErrorMessage="Reason is required"
     ControlToValidate="rtbReason"
     Text="*"
     Display="none"
     runat="server">
    </asp:RequiredFieldValidator>
   </div>
  </td>
 </tr>
</table>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>


USER CONTROL CODE:

Imports Telerik.Web.UI
Imports System.Linq
Imports System.Data.Linq
Imports System.ComponentModel

<DefaultProperty("Text"), ControlValueProperty("Text"), ValidationProperty("Text")> Partial Class UserControls_FieldEntry
  Inherits System.Web.UI.UserControl

  Public Property [Text]() As String
    Get
      Return rtbItem.Text
    End Get
    Set(ByVal value As String)
      rtbItem.Text = value
    End Set
  End Property

  Public Property UsesTapeValue() As Boolean
    Get
      If IsNothing(ViewState("UsesTapeValue")) Then
        ViewState("UsesTapeValue") = False
      End If
      Return ViewState("UsesTapeValue")
    End Get
    Set(ByVal value As Boolean)
      ViewState("UsesTapeValue") = value
    End Set
  End Property

  Public Property FieldName() As String
    Get
      Return ViewState("FieldName")
    End Get
    Set(ByVal value As String)
      ViewState("FieldName") = value
    End Set
  End Property

  Public Property FieldLabel() As String
    Get
      Return Me.lName.Text
    End Get
    Set(ByVal value As String)
      Me.lName.Text = value
    End Set
  End Property

  Public Property Hint() As String
    Get
      Return Me.rtbItem.EmptyMessage
    End Get
    Set(ByVal value As String)
      Me.rtbItem.EmptyMessage = value
    End Set
  End Property

  Public Property PrimarySource() As String
    Get
      Return If(ViewState("PrimarySource") Is Nothing, "", ViewState("PrimarySource"))
    End Get
    Set(ByVal value As String)
      ViewState("PrimarySource") = value
    End Set
  End Property

  Public Property SecondarySource() As String
    Get
      Return If(ViewState("Secondary") Is Nothing, "", ViewState("Secondary"))
    End Get
    Set(ByVal value As String)
      ViewState("PrimarySource") = value
    End Set
  End Property

  Public Property TapeValue() As String
    Get
      Return If(ViewState("TapeValue") Is Nothing, "", ViewState("TapeValue"))
    End Get
    Set(ByVal value As String)
      ViewState("TapeValue") = value
      rtpReason.Text = String.Format("Tape Value: {0}", value)
    End Set
  End Property

  Public WriteOnly Property ShowTapeValue() As Boolean
    Set(ByVal value As Boolean)
      If value Then
        divTapeValue.InnerHtml = String.Format("Tape Value: {0}", TapeValue)
      Else
        divTapeValue.InnerHtml = String.Empty
      End If
    End Set
  End Property

  Public Property ShowPrimarySource() As Boolean
    Get
      Return ViewState("ShowPrimarySource")
    End Get
    Set(ByVal value As Boolean)
      ViewState("ShowPrimarySource") = value
    End Set
  End Property

  Public Property ShowSecondarySource() As Boolean
    Get
      Return ViewState("ShowSecondarySource")
    End Get
    Set(ByVal value As Boolean)
      ViewState("ShowSecondarySource") = value
    End Set
  End Property

  Public Property ValidationType() As String
    Get
      Return ViewState("ValidationType")
    End Get
    Set(ByVal value As String)
      ViewState("ValidationType") = value.ToLower
      SetValidationPattern(value.ToLower)
    End Set
  End Property

  Public Property InputControlWidth() As Int16
    Get
      Return ViewState("InputControlWidth")
    End Get
    Set(ByVal value As Int16)
      ViewState("InputControlWidth") = value
      rtbItem.Width = Unit.Pixel(value)
    End Set
  End Property

  Public Property InputMaxLength() As Int16
    Get
      Return rtbItem.MaxLength
    End Get
    Set(ByVal value As Int16)
      rtbItem.MaxLength = value
    End Set
  End Property

  Private Const NAV As String = "((na|NA|Na|nA)([vV]?))" ' NA and NAV

  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Page.IsPostBack Then
    Else
      Dim ram As RadAjaxManager = RadAjaxManager.GetCurrent(Page)

      ram.AjaxSettings.AddAjaxSetting(rtbItem, divReason)
      ram.AjaxSettings.AddAjaxSetting(rtbItem, rtbReason)
    End If
    'Dim vg As String = Me.NamingContainer.ID & "_vg"
    'rtbItem.ValidationGroup = vg
    'rtbReason.ValidationGroup = vg
    'rfvReason.ValidationGroup = vg
  End Sub

  Protected Sub rtbItem_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rtbItem.TextChanged
    If TapeValue = rtbItem.Text Then
      'divReason.Style("display") = "none"
      divReason.Visible = False
      rtbItem.BorderColor = Drawing.Color.Green
      UsesTapeValue = True
    Else
      UsesTapeValue = False
      rtbItem.BorderColor = Drawing.Color.Blue
      rtbReason.Focus()
      'divReason.Style("display") = "inline"
      divReason.Visible = True
    End If
  End Sub

  Private Sub SetSourceTooltip()
    Dim s As New StringBuilder

    If ShowPrimarySource AndAlso PrimarySource.Trim.Length > 0 Then
      s.AppendFormat("<div>{0}", PrimarySource)
      If ShowSecondarySource AndAlso SecondarySource.Trim.Length > 0 Then
        s.AppendFormat("<br />{0}</div>", SecondarySource)
      End If
    ElseIf ShowSecondarySource AndAlso SecondarySource.Trim.Length > 0 Then
      s.AppendFormat("<div>{0}</div>", SecondarySource)
    End If
    If s.Length > 0 Then
      rtpSource.Enabled = True
      lName.ToolTip = s.ToString
    Else
      rtpSource.Visible = False
    End If
  End Sub

  Private Sub SetValidationPattern(ByVal value As String)
    Select Case value
      Case "date"
      Case "length"
    End Select
  End Sub

  Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
    If Page.IsPostBack Then
    Else
      'SetSourceTooltip()
    End If

  End Sub
End Class

 

 

 

Imports Telerik.Web.UI
Imports System.Linq
Imports System.Data.Linq
Imports System.ComponentModel

<DefaultProperty("Text"), ControlValueProperty("Text"), ValidationProperty("Text")> Partial Class UserControls_FieldEntry
  Inherits System.Web.UI.UserControl

  Public Property [Text]() As String
    Get
      Return rtbItem.Text
    End Get
    Set(ByVal value As String)
      rtbItem.Text = value
    End Set
  End Property

  Public Property UsesTapeValue() As Boolean
    Get
      If IsNothing(ViewState("UsesTapeValue")) Then
        ViewState("UsesTapeValue") = False
      End If
      Return ViewState("UsesTapeValue")
    End Get
    Set(ByVal value As Boolean)
      ViewState("UsesTapeValue") = value
    End Set
  End Property

  Public Property FieldName() As String
    Get
      Return ViewState("FieldName")
    End Get
    Set(ByVal value As String)
      ViewState("FieldName") = value
    End Set
  End Property

  Public Property FieldLabel() As String
    Get
      Return Me.lName.Text
    End Get
    Set(ByVal value As String)
      Me.lName.Text = value
    End Set
  End Property

  Public Property Hint() As String
    Get
      Return Me.rtbItem.EmptyMessage
    End Get
    Set(ByVal value As String)
      Me.rtbItem.EmptyMessage = value
    End Set
  End Property

  Public Property PrimarySource() As String
    Get
      Return If(ViewState("PrimarySource") Is Nothing, "", ViewState("PrimarySource"))
    End Get
    Set(ByVal value As String)
      ViewState("PrimarySource") = value
    End Set
  End Property

  Public Property SecondarySource() As String
    Get
      Return If(ViewState("Secondary") Is Nothing, "", ViewState("Secondary"))
    End Get
    Set(ByVal value As String)
      ViewState("PrimarySource") = value
    End Set
  End Property

  Public Property TapeValue() As String
    Get
      Return If(ViewState("TapeValue") Is Nothing, "", ViewState("TapeValue"))
    End Get
    Set(ByVal value As String)
      ViewState("TapeValue") = value
      rtpReason.Text = String.Format("Tape Value: {0}", value)
    End Set
  End Property

  Public WriteOnly Property ShowTapeValue() As Boolean
    Set(ByVal value As Boolean)
      If value Then
        divTapeValue.InnerHtml = String.Format("Tape Value: {0}", TapeValue)
      Else
        divTapeValue.InnerHtml = String.Empty
      End If
    End Set
  End Property

  Public Property ShowPrimarySource() As Boolean
    Get
      Return ViewState("ShowPrimarySource")
    End Get
    Set(ByVal value As Boolean)
      ViewState("ShowPrimarySource") = value
    End Set
  End Property

  Public Property ShowSecondarySource() As Boolean
    Get
      Return ViewState("ShowSecondarySource")
    End Get
    Set(ByVal value As Boolean)
      ViewState("ShowSecondarySource") = value
    End Set
  End Property

  Public Property ValidationType() As String
    Get
      Return ViewState("ValidationType")
    End Get
    Set(ByVal value As String)
      ViewState("ValidationType") = value.ToLower
      SetValidationPattern(value.ToLower)
    End Set
  End Property

  Public Property InputControlWidth() As Int16
    Get
      Return ViewState("InputControlWidth")
    End Get
    Set(ByVal value As Int16)
      ViewState("InputControlWidth") = value
      rtbItem.Width = Unit.Pixel(value)
    End Set
  End Property

  Public Property InputMaxLength() As Int16
    Get
      Return rtbItem.MaxLength
    End Get
    Set(ByVal value As Int16)
      rtbItem.MaxLength = value
    End Set
  End Property

  Private Const NAV As String = "((na|NA|Na|nA)([vV]?))" ' NA and NAV

  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Page.IsPostBack Then
    Else
      Dim ram As RadAjaxManager = RadAjaxManager.GetCurrent(Page)

      ram.AjaxSettings.AddAjaxSetting(rtbItem, divReason)
      ram.AjaxSettings.AddAjaxSetting(rtbItem, rtbReason)
    End If
    'Dim vg As String = Me.NamingContainer.ID & "_vg"
    'rtbItem.ValidationGroup = vg
    'rtbReason.ValidationGroup = vg
    'rfvReason.ValidationGroup = vg
  End Sub

  Protected Sub rtbItem_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rtbItem.TextChanged
    If TapeValue = rtbItem.Text Then
      'divReason.Style("display") = "none"
      divReason.Visible = False
      rtbItem.BorderColor = Drawing.Color.Green
      UsesTapeValue = True
    Else
      UsesTapeValue = False
      rtbItem.BorderColor = Drawing.Color.Blue
      rtbReason.Focus()
      'divReason.Style("display") = "inline"
      divReason.Visible = True
    End If
  End Sub

  Private Sub SetSourceTooltip()
    Dim s As New StringBuilder

    If ShowPrimarySource AndAlso PrimarySource.Trim.Length > 0 Then
      s.AppendFormat("<div>{0}", PrimarySource)
      If ShowSecondarySource AndAlso SecondarySource.Trim.Length > 0 Then
        s.AppendFormat("<br />{0}</div>", SecondarySource)
      End If
    ElseIf ShowSecondarySource AndAlso SecondarySource.Trim.Length > 0 Then
      s.AppendFormat("<div>{0}</div>", SecondarySource)
    End If
    If s.Length > 0 Then
      rtpSource.Enabled = True
      lName.ToolTip = s.ToString
    Else
      rtpSource.Visible = False
    End If
  End Sub

  Private Sub SetValidationPattern(ByVal value As String)
    Select Case value
      Case "date"
      Case "length"
    End Select
  End Sub

  Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
    If Page.IsPostBack Then
    Else
      'SetSourceTooltip()
    End If

  End Sub
End Class

 

 

 

Richard Brown
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
85 views
Hi All,

We need to display some Chinese charactors (in the Title etc.) It Works fine on the development machine (Vista Home Premium, English version, with East Asian Languange file installed in the Regional.. control panel) But, However, it displays empty box from the server (Win Server 2003 English version WITHOUT East Asian Languange file installed in the Regional.. control panel)...


Is it casued by the East Asian Languange file  or any other reason?
 
TIA

Jerry

Schlurk
Top achievements
Rank 2
 answered on 07 Oct 2009
6 answers
164 views
Hi,
I have a scheduler that has 2 rooms as resources.
In day view, slots are rendered with 2-3 pixels width and when I double click on one of them
I get a javascript error as

Line: 15754
Error: Invalid argument.

There is the same problem with other week month etc. views.
Everything is working and rendered perfectly fine in Firefox.
Slot widths are as expected and no javascript error on slot doubleclick.

I was hoping to attach a screenshot but I think there is no attach option.
Thanks.
Dan
Top achievements
Rank 1
 answered on 07 Oct 2009
3 answers
134 views
I have a combobox that is populated by a sqldatasource. I would like for the combobox to show..."Please select an item" or just have it blank, when the page loads. How do i accomplish this?
Schlurk
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
120 views
I am working on cleaning up an application and am running into a problem where there is an instance of a the schedular that displays as if its absolutely positioned in IE7, later browsers display it correctly. I don't think its a stylesheet issue as it uses the telerik skin. I also had this problem with the radgrid on the same page but solved it by removing some attributes that were off.
<%@ Page EnableSessionState="ReadOnly" Language="C#" MasterPageFile="~/MasterPages/DivBase.master" Title="<%$Resources:GlobalResource,iTasker%>" AutoEventWireup="true" Inherits="iTaskerWebApplication.Forms_Home" Codebehind="Home.aspx.cs" %> 
<%@ OutputCache Duration="60" VaryByParam="None" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<asp:Content ID="content" ContentPlaceHolderID="contentPlaceHolder" Runat="Server"> 
 
<script language="javascript" type="text/javascript"> 
    function windowPrintScheduler(siteID, startDate, endDate, selectedView, showFullTime, minPerRow) { 
        window.showModalDialog("Schedule/SchedulerPrintContainer2.aspx?SiteID=" + siteID + "&StartDate=" + startDate + "&EndDate=" + endDate + "&SelectedView=" + selectedView + "&ShowFullTime=" + showFullTime + "&MinPerRow=" + minPerRow, new Array(0), "dialogHeight: 800px; dialogWidth: 1000px; edge: Raised; center: Yes; scroll: Yes; help: No; resizable: No; status: No;"); 
    } 
</script> 
 
<div dir="<%=Resources.GlobalResource.PageDir %>"> 
    <table border="0" cellpadding="3" cellspacing="0" align="center" width="100%"> 
        <!--<tr> 
            <td colspan="2"> 
             <asp:Label ID="lblWelcomeMessage" runat="server"></asp:Label> 
            </td> 
        </tr>--> 
        <tr runat="server" id="trBreakdown" visible="false"> 
            <td colspan="2"> 
                <div id="forFieldset"> 
                        <div class="pageLabel"><%=Resources.GlobalResource.CurrentWeekCost %></div> 
 
                  <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"> 
                                    <asp:LinkButton ID="lbtnSchedule1" runat="server" OnClick="lbtnSchedule_Click"><%=Resources.GlobalResource.GoToSchedule %></asp:LinkButton> 
                                </div> 
                                <telerik:RadGrid AutoGenerateColumns="False" ID="gridBreakdown" AllowSorting="True" ShowFooter="True" runat="server" GridLines="None"  
                                  onneeddatasource="gridBreakdown_NeedDataSource" onitemdatabound="gridBreakdown_ItemDataBound"> 
                                    <PagerStyle Mode="NextPrevAndNumeric" /> 
                                    <MasterTableView ShowGroupFooter="false" BorderWidth="0" CellSpacing="-1"> 
                                        <RowIndicatorColumn> 
                                            <HeaderStyle ></HeaderStyle> 
                                        </RowIndicatorColumn> 
                                        <ExpandCollapseColumn> 
                                            <HeaderStyle ></HeaderStyle> 
                                        </ExpandCollapseColumn> 
                                        <ItemStyle /> 
                                        <AlternatingItemStyle /> 
                                        <Columns> 
                                            <telerik:GridBoundColumn Aggregate="None" DataField="RoleName"  
                                                HeaderText="<%$Resources:GlobalResource,Role%>" 
                                                FooterText="<%$ Resources:GlobalResource, Total %>"  
                                                HeaderStyle-HorizontalAlign="Center" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="CountDistinct" DataField="EmpName"  
                                                HeaderText="<%$Resources:GlobalResource,ResourceName%>" FooterText="<%$Resources:GlobalResource,Resources%>" FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="None" DataField="EffectiveCost" DataFormatString="{0:c}" 
                                                HeaderText="<%$Resources:GlobalResource,EffectiveHourlyRate%>" 
                                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" > 
                                                <HeaderStyle HorizontalAlign="Center" Wrap="True"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day1Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day2Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day3Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day4Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day5Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day6Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="Day7Hours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="TotalHours"  
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn Aggregate="Sum" DataField="TotalCost" FooterText=" " FooterStyle-HorizontalAlign="Center" 
                                                DataType="System.Double" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:c}" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" > 
                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center" Wrap="False"></ItemStyle> 
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                        <GroupByExpressions> 
                                            <telerik:GridGroupByExpression> 
                                                <GroupByFields> 
                                                    <telerik:GridGroupByField FieldName="OverTimeTypeName" /> 
                                                </GroupByFields> 
                                                <SelectFields> 
                                                    <telerik:GridGroupByField FieldName="OverTimeTypeName" HeaderText="<%$ Resources:GlobalResource, Compensation %>" /> 
                                                </SelectFields> 
                                            </telerik:GridGroupByExpression> 
                                        </GroupByExpressions> 
                                    </MasterTableView> 
 
                                </telerik:RadGrid>  
                             
                </div> 
            </td> 
        </tr> 
        <tr> 
            <td rowspan="2" runat="server" id="tdScheduler" visible="false" valign="top"> 
                <div id="forFieldset"> 
                   <div class="pageLabel"><%=Resources.GlobalResource.TodaysSchedule %></div> 
                        <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"> 
                                    <asp:LinkButton ID="lbtnSchedule2" runat="server" OnClick="lbtnSchedule_Click"><%=Resources.GlobalResource.GoToSchedule %></asp:LinkButton> 
                                </div> 
                                                    <telerik:RadScheduler  
                                    ID="schedulerSite"  
                                    EnableEmbeddedBaseStylesheet="true" 
                                    runat="server" 
                                    EnableViewState="true" 
                                    Width="650px" 
                                    Height="450px" 
                                    DayEndTime="19:00:00"  
                                    DayStartTime="07:00:00"  
                                    HoursPanelTimeFormat="htt" 
                                    NumberOfHoveredRows="1"  
                                    ValidationGroup="schedulerSite" 
                                    WorkDayEndTime="19:00:00"  
                                    WorkDayStartTime="07:00:00"  
                                    DataStartField="StartTime" 
                                    DataEndField="Endtime" 
                                    DataKeyField="SiteScheduleID"  
                                    DataSourceID="ObjectDSSchedule"  
                                    DataSubjectField="Subject" 
                                    MinutesPerRow="60" 
                                    TimeLabelRowSpan="1" 
                                    ShowAllDayRow="False" 
                                    ReadOnly="true" 
                                    DisplayDeleteConfirmation="False" 
                                    ShowNavigationPane="False" 
                                    onappointmentdatabound="schedulerSite_AppointmentDataBound"> 
                                    <MonthView UserSelectable="False" /> 
                                    <WeekView UserSelectable="False" /> 
                                    <TimelineView UserSelectable="False" /> 
                                    <DayView DayEndTime="19:00:00" DayStartTime="07:00:00" UserSelectable="false" /> 
                                    <AppointmentTemplate> 
                                        <asp:Label runat="server" ID="lblSubject"><%# Eval("Subject") %></asp:Label> 
                                    </AppointmentTemplate> 
                                </telerik:RadScheduler> 
                                <asp:ObjectDataSource ID="ObjectDSSchedule" runat="server"  
                                    SelectMethod="SiteScheduleLoad" TypeName="iTasker.DAL.ScheduleHandler"> 
                                    <SelectParameters> 
                                         <asp:ProfileParameter Name="connectionstring"  
                                            PropertyName="DatabaseConnectionString" Type="String" /> 
                                            <asp:SessionParameter Name="siteID" SessionField="SiteID" Type="String" /> 
                                        <asp:Parameter Name="startDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                        <asp:Parameter Name="endDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                    </SelectParameters> 
                                </asp:ObjectDataSource> 
                            
                </div> 
            </td> 
            <td runat="server" id="tdMessages" visible="false" valign="top"> 
                <div id="forFieldset"> 
                    <div class="pageLabel"> 
                        <%=Resources.GlobalResource.Messages %> 
                    </div> 
                    <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"> 
                                    <asp:LinkButton ID="lbtnMessages" runat="server" OnClick="lbtnMessages_Click"><%=Resources.GlobalResource.GoToMessages %></asp:LinkButton> 
                                </div> 
                                <telerik:RadGrid ID="gridMessages" runat="server" EnableViewState="false" 
                                    PageSize="10" AllowSorting="True" Height="180px" 
                                    AllowMultiRowSelection="False" AllowPaging="True"  
                                    ShowGroupPanel="False" GridLines="None" 
                                    AutoGenerateColumns="False"  
                                    onneeddatasource="gridMessages_NeedDataSource"> 
                                    <PagerStyle Mode="NextPrevAndNumeric"> 
                                    </PagerStyle> 
                                    <MasterTableView DataKeyNames="MessageID,Flagged,Read" DataMember="Mails" AllowMultiColumnSorting="True" TableLayout="Fixed"> 
                                        <Columns> 
                                            <telerik:GridTemplateColumn UniqueName="Importance" Groupable="False"> 
                                                <HeaderStyle Width="30px"></HeaderStyle> 
                                                <ItemStyle></ItemStyle> 
                                                <ItemTemplate> 
                                                    <asp:Image ID="ImportantImage" BorderWidth="0px"  
                                                        ImageUrl='<%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Important"))? "~/Forms/Messages/img/Important_transparent.gif" : "~/Forms/Messages/img/Important_grey.gif" %>' 
                                                        AlternateText="Importance" Style="float: right;" runat="server"> 
                                                    </asp:Image> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="MailIcon" Groupable="False"> 
                                                <HeaderStyle Width="30px"></HeaderStyle> 
                                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                                <ItemTemplate> 
                                                    <asp:Image ID="MailIcon" BorderWidth="0px"  
                                                        ImageUrl='<%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Read"))? "~/Forms/Messages/img/mailIcon.gif" : "~/Forms/Messages/img/mailIcon.jpg" %>' 
                                                        Style="float: right;" runat="server" AlternateText="MailIcon"> 
                                                    </asp:Image> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="FromUserName" GroupByExpression="From Group By FromUserName" 
                                                SortExpression="FromUserName"> 
                                                <HeaderStyle></HeaderStyle> 
                                                <ItemStyle></ItemStyle> 
                                                <ItemTemplate> 
                                                    <%# DataBinder.Eval(Container.DataItem, "FromUserName") %> 
                                                    <br /> 
                                                    <div class="MailSubject"> 
                                                        <%# DataBinder.Eval(Container.DataItem, "MessageSubject") %> 
                                                    </div> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                    <ClientSettings AllowDragToGroup="False" EnableRowHoverStyle="false"> 
                                        <Selecting AllowRowSelect="false"></Selecting> 
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1"></Scrolling> 
                                    </ClientSettings> 
                                </telerik:RadGrid> 
                                
                </div> 
            </td> 
        </tr> 
        <tr> 
            <td runat="server" id="tdTasks" visible="false" valign="top"> 
                <div id="forFieldset"> 
                    <div class="pageLabel"><%=Resources.GlobalResource.Tasks %></div> 
                    <div align="<%=Resources.GlobalResource.PageOppositeAlign %>"> 
                                    <asp:LinkButton ID="lbtnTasks" runat="server" OnClick="lbtnTasks_Click"><%=Resources.GlobalResource.GoToTasks %></asp:LinkButton> 
                                </div> 
                   
                                <telerik:RadGrid ID="gridTasks" ShowStatusBar="True" AutoGenerateColumns="False" 
                                    GridLines="None" AllowSorting="True" Height="180px" EnableViewState="false" 
                                    runat="server"  
                                    onneeddatasource="gridTasks_NeedDataSource"> 
                                    <MasterTableView DataKeyNames="TaskID" DataMember="Tasks" TableLayout="Fixed"> 
                                        <Columns> 
                                            <telerik:GridTemplateColumn DataField="Task" SortExpression="Task" HeaderText="<%$ Resources:GlobalResource,Tasks %>" 
                                                UniqueName="Task"> 
                                                <ItemTemplate> 
                                                    <asp:Label ID="TaskNameLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Task") %>'></asp:Label> 
                                                </ItemTemplate> 
                                                <HeaderStyle /> 
                                                <ItemStyle /> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn DataField="Duration" SortExpression="Duration" 
                                                UniqueName="Duration"> 
                                                <ItemTemplate> 
                                                    <asp:Label ID="DurationLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Duration") %>'></asp:Label> 
                                                </ItemTemplate> 
                                                <HeaderStyle /> 
                                                <ItemStyle /> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                    <ClientSettings EnableRowHoverStyle="false" AllowDragToGroup="false"> 
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1" /> 
                                        <Selecting AllowRowSelect="False" /> 
                                    </ClientSettings> 
                                </telerik:RadGrid> 
                            
                </div> 
            </td> 
        </tr> 
        <tr runat="server" id="trSchedule" visible="false"> 
            <td> 
                <div id="forFieldset"> 
                    <div class="pageLabel"><%=Resources.GlobalResource.MySchedule %></div> 
         
                                <asp:Button ID="btnPrintScheduler" runat="server" Text="<%$ Resources:GlobalResource, PrintScheduler %>" OnClick="btnPrintScheduler_Click" /> 
                                <telerik:RadScheduler  
                                    ID="schedulerEmployee" EnableEmbeddedBaseStylesheet="true" 
                                    runat="server" 
                                    EnableViewState="true" 
                                    DayEndTime="19:00:00"  
                                    DayStartTime="07:00:00"  
                                    HoursPanelTimeFormat="htt" 
                                    NumberOfHoveredRows="1"  
                                    ValidationGroup="schedulerSite" 
                                    WorkDayEndTime="19:00:00"  
                                    WorkDayStartTime="07:00:00"  
                                    DataStartField="StartTime" 
                                    DataEndField="Endtime" 
                                    DataKeyField="SiteScheduleID"  
                                     DataSourceID="ObjectDSScheduleEmp" 
                                    DataSubjectField="Subject" 
                                    MinutesPerRow="60" 
                                    TimeLabelRowSpan="1" 
                                    ShowAllDayRow="False" 
                                    ReadOnly="true" 
                                    DisplayDeleteConfirmation="False" 
                                    ShowNavigationPane="True" 
                                    onappointmentdatabound="schedulerSite_AppointmentDataBound"> 
                                    <MonthView UserSelectable="False" /> 
                                    <WeekView UserSelectable="True" DayEndTime="19:00:00" DayStartTime="07:00:00" /> 
                                    <TimelineView UserSelectable="False" /> 
                                    <DayView DayEndTime="19:00:00" DayStartTime="07:00:00" UserSelectable="True" /> 
                                    <AppointmentTemplate> 
                                        <asp:Label runat="server" ID="lblSubject" Font-Size="X-Small" ><%# Eval("Subject") %></asp:Label> 
                                    </AppointmentTemplate> 
                                </telerik:RadScheduler> 
                                <asp:ObjectDataSource ID="ObjectDSScheduleEmp" runat="server"  
                                    SelectMethod="SiteScheduleLoad" TypeName="iTasker.DAL.ScheduleHandler"> 
                                    <SelectParameters> 
                                        <asp:ProfileParameter Name="connectionstring"  
                                            PropertyName="DatabaseConnectionString" Type="String" /> 
                                        <asp:SessionParameter Name="siteID" SessionField="SiteID" Type="String" /> 
                                        <asp:Parameter Name="startDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                        <asp:Parameter Name="endDate" Type="String" ConvertEmptyStringToNull="true" /> 
                                    </SelectParameters> 
                                </asp:ObjectDataSource> 
                            <div style="clear: both;"></div> 
                </div> 
            </td> 
        </tr> 
    </table> 
</div> 
</asp:Content> 
 
 

3tx9340
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
82 views
Can i change the "SearchPatterns" in the Fileexplorer window from another aspx-site. I use the File Selector Dialog. I would like use only "SearchPatterns"  jpg, png and gif from the one aspx-site and pdf, ppt ... from the other aspx-site. Can i transfer the right "SearchPatterns" to the Fileexplorer windows?

br
Reiner
Lini
Telerik team
 answered on 07 Oct 2009
1 answer
76 views
I have a simple RadListBox and RadFileExplorer on a page, I would like to click on an item in the listbox and change the ViewPaths, UploadPaths and DeletePaths of the RadFileExplorer based on the listbox selection.

I have configured a RadAjaxManager to update the RadFileExplorer when the Listbox selection is made.

Problem is that this new BindExplorer method available in the latest release is not accessible because it is protected.

Does anyone have any pointers?
Lini
Telerik team
 answered on 07 Oct 2009
1 answer
144 views
Hi,

I am using rotator to show 8 images. Below is a sample code. First time when the page loads, it shows all images proper in the rotator.
But when I press the next or previous buttons, it cuts the image at the start or end.

This issue is also with Telerik's demo. I have attached it's image. Is there any specific property or any logic to show all images proper every time user clicks the next or previous buttons ?

      <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1"
                Width="560px">
                <telerik:RadRotator ID="radRotator1" RotatorType="buttons" runat="server" Width="547px"
                    Height="65px" ScrollDuration="100" ItemHeight="60px" ItemWidth="74px" WrapFrames="true">
                    <Items>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image" ImageUrl='~/1.jpg'
                                    CssClass="rotImage"  Width="60px" Height="60px"
                                    BorderWidth="1px"   />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image1" ImageUrl='~/2.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image2" ImageUrl='~/3.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/4.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/5.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/6.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/7.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="Image3" ImageUrl='~/8.jpg'
                                    BorderWidth="1px"  
                                    CssClass="rotImage"  Width="60px" Height="60px" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                    </Items>
                </telerik:RadRotator>
            </telerik:RadAjaxPanel>
Lini
Telerik team
 answered on 07 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?