Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hi,

we have radcombobox inside a user control (scheduler AdvancedEdit to be exact from a sample on your site). We are populating the RCB with values easily enough and passing a value to set the selected item as follows

 public int EventTypeId
        {
            get
            {
              
                    return Convert.ToInt32(ResrcbActivityType.SelectedValue);
               
            }

            set
            {
                try
                {
                    RadComboBoxItem itm = new RadComboBoxItem();

                    if (value > 0)
                        itm = ResrcbActivityType.FindItemByValue(Convert.ToString(value));
                    if (itm != null)
                    {
                        itm.Selected = true;
                    }
               
                }
                catch (Exception ex)
                {
                }
                
            }
        }

When debugging the value when we set is non zero which is correct, the itm object is a valid radComboBoxItem object and itm.Selected = true; evaluates without error. However, the first item in the radcomboBox list is always displayed no matter what. I am guessing this is something stupid - please anyone?
Dimitar Terziev
Telerik team
 answered on 09 May 2011
3 answers
62 views
Hello,

I want to maintain the gropheader state even though page has a postback event. I found link. Can you please provide it in VB since I am not able to hook up itemcommand event.
Iana Tsolova
Telerik team
 answered on 09 May 2011
3 answers
183 views

I hope someone can help

We have a problem with inline editing on a radgrid.  Code below.  Whenever we click on the Add Row icon, it looks like a postback is happening but no row gets added to the grid.  We're missing something, just can't tell what it is.

Help!

<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="TimesheetEditor.aspx.cs"<br>    Inherits="Tempus.Employees.TimesheetEditor" %><br><br><br>    <br><%@ Register Src="~/UserControls/ucTopMenu.ascx" TagName="ucTopMenu" TagPrefix="uc1" %><br><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br><html xmlns="http://www.w3.org/1999/xhtml"><br><head id="Head1" runat="server"><br>    <title></title><br><br><br><br><br>    <link rel="Stylesheet" type="text/css" href="../Styles/main.css" /><br>    <script language="javascript" type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script><br></head><br><body><br>    <form id="form1" runat="server"><br>    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"><br>        <Scripts><br>            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /><br>            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /><br>        </Scripts><br>    </telerik:RadScriptManager><br>    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Windows7"><br>    </telerik:RadSkinManager><br>    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"><br>        <script type="text/javascript"><br>            function RowDblClick(sender, eventArgs) {<br>                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());<br>            }<br>        </script><br>    </telerik:RadCodeBlock><br>    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>        <AjaxSettings><br>            <telerik:AjaxSetting AjaxControlID="rgridTimesheetProgramEntries"><br>                <UpdatedControls><br>                    <telerik:AjaxUpdatedControl ControlID="rgridTimesheetProgramEntries" LoadingPanelID="RadAjaxLoadingPanel1" /><br>                    <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" /><br>                </UpdatedControls><br>            </telerik:AjaxSetting><br>        </AjaxSettings><br>    </telerik:RadAjaxManager><br>    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /><br>    <div id="outsideContainer" class="outsideContainer"><br>        <div style="background: #FFFFFF"><br>            <table width="1000px"><br>                <tr><br>                    <td width="25%"><br>                        <img src="../images/timepiece.jpg" width="150px" /><br>                    </td><br>                    <td width="50%" align="center"><br>                        <h1><br>                            Tempus - Time Sheet System</h1><br>                        <br /><br>                        <h2><br>                            Welcome,<br>                            <asp:Literal ID="litUserName" runat="server"></asp:Literal></h2><br>                    </td><br>                    <td width="25%" align="right"><br>                        <img src="../images/TridentLogoFullColor.jpg" width="200px" /><br>                    </td><br>                </tr><br>            </table><br>        </div><br>        <div id="content" class="contentContainer" style="border: 1px,solid,Grey;"><br>            <table border="0" width="1000px" cellspacing="10px" cellpadding="10px"><br>                <tr><br>                    <td valign="top"><br>                        <uc1:ucTopMenu ID="ucLeftMenu1" runat="server"></uc1:ucTopMenu><br>                    </td><br>                </tr><br>                <tr><br>                    <td valign="top"><br>                        <fieldset id="fsetTimesheetDetails" runat="server"><br>                            <legend title="Edit Timesheet"></legend><br>                            <table width="975px" border="0" class="smallBodyText"><br>                                <tr><br>                                    <td width="60%" align="left" class="smallBodyText"><br>                                        <asp:Label ID="lblUserName" runat="server"></asp:Label><br /><br>                                        <b>Timesheet Status:&nbsp;</b><asp:Label ID="lblTimeSheetStatus" runat="server"></asp:Label><br /><br>                                        <b>Timesheet Period:&nbsp;</b><asp:Label ID="lblTimeSheetPeriod" runat="server"></asp:Label><br /><br>                                        <b>Due Date:&nbsp;</b><asp:Label ID="lblTimesheetDueDate" runat="server"></asp:Label><br>                                    </td><br>                                    <td width="40%" align="right"><br>                                        <b>Total Hours:&nbsp;</b><asp:Label ID="lblTotalHours" runat="server"></asp:Label><br /><br>                                        <b>Billable Hours:&nbsp;</b><asp:Label ID="lblBillableHours" runat="server"></asp:Label><br>                                    </td><br>                                </tr><br>                            </table><br>                            <br /><br>                            <br /><br>                            <asp:Label ID="lbl1" runat="server" Text="Program Tasks"></asp:Label><br>                            <telerik:RadGrid ID="rgridTimesheetProgramEntries" GridLines="None" runat="server" <br>                                OnItemUpdated="rgridTimesheetProgramEntries_ItemUpdated" AllowAutomaticDeletes="True"<br>                                AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" AllowPaging="True"<br>                                Width="975px" ShowFooter="true" AutoGenerateColumns="False" DataSourceID="dsTimesheetDetails"><br>                                <PagerStyle Mode="NextPrevAndNumeric" /><br>                                <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="Sequence" EditMode="InPlace" <br>                                    AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"<br>                                    DataSourceID="dsTimesheetDetails" HorizontalAlign="NotSet" AutoGenerateColumns="False"><br>                                    <Columns><br>                                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"><br>                                            <ItemStyle CssClass="MyImageButton" /><br>                                        </telerik:GridEditCommandColumn><br>                                        <telerik:GridDropDownColumn DataField="AssignmentID" DataSourceID="dsEmployeeAssignments"<br>                                            HeaderText="Program/Task" ListTextField="AssignmentTask" ListValueField="AssignmentID"<br>                                            UniqueName="AssignmentID"><br>                                        </telerik:GridDropDownColumn><br>                                        <telerik:GridDropDownColumn DataField="BillingType" DataSourceID="dsBillingTypeLookup"<br>                                            HeaderText="Billing" ListTextField="BillingTypeDesc" ListValueField="BillingType"<br>                                            UniqueName="BillingType" HeaderStyle-Width="90px"><br>                                        </telerik:GridDropDownColumn><br>                                        <telerik:GridNumericColumn DataField="Day1Hours" HeaderText="Day 1 Hours" SortExpression="Day1Hours"<br>                                            UniqueName="Day1Hours" ColumnEditorID="GridNumericColumnEditor1" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridNumericColumn DataField="Day2Hours" HeaderText="Day 2 Hours" SortExpression="Day2Hours"<br>                                            UniqueName="Day2Hours" ColumnEditorID="GridNumericColumnEditor2" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridNumericColumn DataField="Day3Hours" HeaderText="Day 3 Hours" SortExpression="Day3Hours"<br>                                            UniqueName="Day3Hours" ColumnEditorID="GridNumericColumnEditor3" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridNumericColumn DataField="Day4Hours" HeaderText="Day 4 Hours" SortExpression="Day4Hours"<br>                                            UniqueName="Day4Hours" ColumnEditorID="GridNumericColumnEditor4" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridNumericColumn DataField="Day5Hours" HeaderText="Day 5 Hours" SortExpression="Day5Hours"<br>                                            UniqueName="Day5Hours" ColumnEditorID="GridNumericColumnEditor5" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridNumericColumn DataField="Day6Hours" HeaderText="Day 6 Hours" SortExpression="Day6Hours"<br>                                            UniqueName="Day6Hours" ColumnEditorID="GridNumericColumnEditor6" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridNumericColumn DataField="Day7Hours" HeaderText="Day 7 Hours" SortExpression="Day7Hours"<br>                                            UniqueName="Day7Hours" ColumnEditorID="GridNumericColumnEditor7" Aggregate="Sum"<br>                                            FooterText=" "><br>                                        </telerik:GridNumericColumn><br>                                        <telerik:GridCalculatedColumn HeaderText="Total Task<br>Hours" UniqueName="TotalTaskHours"<br>                                            DataType="System.Double" DataFields="Day1Hours, Day2Hours, Day3Hours, Day4Hours, Day5Hours, Day6Hours, Day7Hours"<br>                                            Expression="{0}+{1}+{2}+{3}+{4}+{5}+{6}" FooterText="Total : " Aggregate="Sum" /><br>                                        <telerik:GridButtonColumn ConfirmText="Delete this timesheet entry?" ConfirmDialogType="RadWindow"<br>                                            ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"<br>                                            UniqueName="DeleteColumn"><br>                                            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /><br>                                        </telerik:GridButtonColumn><br>                                    </Columns><br>                                </MasterTableView><br>                                <ClientSettings><br>                                    <ClientEvents OnRowDblClick="RowDblClick" /><br>                                </ClientSettings><br>                            </telerik:RadGrid><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" runat="server" NumericTextBox-Width="40px" /><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor2" runat="server" NumericTextBox-Width="40px" /><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor3" runat="server" NumericTextBox-Width="40px" /><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor4" runat="server" NumericTextBox-Width="40px" /><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor5" runat="server" NumericTextBox-Width="40px" /><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor6" runat="server" NumericTextBox-Width="40px" /><br>                            <telerik:GridNumericColumnEditor ID="GridNumericColumnEditor7" runat="server" NumericTextBox-Width="40px" /><br>                            <br /><br>                            <br /><br>                            <br>                            <telerik:RadButton ID="rbtnSubmit" Text="Submit" OnClick="rbtnSubmit_Click" runat="server"><br>                            </telerik:RadButton><br>                            <br /><br>                            <br /><br>                            <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="true" BorderColor="Aquamarine"></asp:Label><br>                            <telerik:RadWindowManager ID="RadWindowManager1" runat="server"><br>                            </telerik:RadWindowManager><br>                            <asp:SqlDataSource ID="dsTimesheetDetails" runat="server" ConnectionString="<%$ ConnectionStrings:TempusConn %>"<br>                                SelectCommand="dbo.TempusTimeSheetDetails_Select" SelectCommandType="StoredProcedure"<br>                                UpdateCommand="dbo.TempusTimeSheetDetails_Update" UpdateCommandType="StoredProcedure"<br>                                InsertCommand="dbo.TempusTimeSheetDetails_Insert" InsertCommandType="StoredProcedure"<br>                                DeleteCommand="dbo.TempusTimeSheetDetails_Delete" DeleteCommandType="StoredProcedure"><br>                                <SelectParameters><br>                                    <asp:SessionParameter Name="TimeSheetID" Type="Int32" /><br>                                </SelectParameters><br>                                <UpdateParameters><br>                                    <asp:SessionParameter Name="TimeSheetID" Type="Int32" /><br>                                    <asp:Parameter Name="Sequence" Type="Int32" /><br>                                    <asp:Parameter Name="BillingType" Type="String" /><br>                                    <asp:Parameter Name="AssignmentID" Type="Int32" /><br>                                    <asp:Parameter Name="OverrideTaskDescription" Type="String" /><br>                                    <asp:Parameter Name="Day1Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day2Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day3Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day4Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day5Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day6Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day7Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="TotalTaskHours" Type="Decimal" /><br>                                </UpdateParameters><br>                                <InsertParameters><br>                                    <asp:SessionParameter Name="TimeSheetID" Type="Int32" /><br>                                    <asp:Parameter Name="Sequence" Type="Int32" Direction="Output" /><br>                                    <asp:Parameter Name="BillingType" Type="String" /><br>                                    <asp:Parameter Name="AssignmentID" Type="Int32" /><br>                                    <asp:Parameter Name="OverrideTaskDescription" Type="String" /><br>                                    <asp:Parameter Name="Day1Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day2Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day3Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day4Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day5Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day6Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="Day7Hours" Type="Decimal" /><br>                                    <asp:Parameter Name="TotalTaskHours" Type="Decimal" /><br>                                </InsertParameters><br>                                <DeleteParameters><br>                                    <asp:SessionParameter Name="TimeSheetID" Type="Int32" /><br>                                    <asp:Parameter Name="Sequence" Type="Int32" /><br>                                </DeleteParameters><br>                            </asp:SqlDataSource><br><br><br>                            <asp:SqlDataSource ID="dsBillingTypeLookup" runat="server" ConnectionString="<%$ ConnectionStrings:TempusConn %>"<br>                                SelectCommand="dbo.TempusBillingTypes_Select"></asp:SqlDataSource><br>                            <asp:SqlDataSource ID="dsEmployeeAssignments" runat="server" ConnectionString="<%$ ConnectionStrings:TempusConn %>"<br>                                SelectCommand="dbo.Tempus_SelectEmployeeAssignments" SelectCommandType="StoredProcedure"><br>                                <SelectParameters><br>                                    <asp:SessionParameter Name="TempusUserID" Type="Int32" /><br>                                </SelectParameters><br>                            </asp:SqlDataSource><br><br><br><br><br>                        </fieldset><br>                    </td><br>                </tr><br>            </table><br>        </div><br>        <br /><br>        <div class="footer"><br>           <br>        </div><br>    </div><br>    </form><br></body><br></html>


Iana Tsolova
Telerik team
 answered on 09 May 2011
2 answers
139 views
Hello, I have a grid-template-column defined like this( to save time and space i'll only put the column) :
<telerik:GridTemplateColumn HeaderText="Id" Reorderable="true" SortExpression="Id" UniqueName="Id" DataField="Id">
                    <ItemTemplate>
                        <asp:Label ID="lblId" runat="server" Text='<%# Eval("Id") %>' />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadTextBox ID="txbId" Width="50px" runat="server" TextMode="SingleLine"
                            Text='<%# Bind("Id") %>' />
                    </EditItemTemplate>
                    <ItemStyle VerticalAlign="Top" />
             </telerik:GridTemplateColumn>

And I want on the PreRender event, to extract the value of this column

protected void RadGrid1_PreRender(object sender, System.EventArgs e)
    {
        //string selectedItem = ((GridDataItem)RadGrid1.SelectedItems[0])["Id"].Text;
        foreach (GridDataItem item in RadGrid1.Items)
        {
            //not working
            string k = item["Id"].Text;// is empty string
// null pointer
            string key = (item["Id"].TemplateControl.FindControl("txbId") as RadTextBox).Text;
}
The grid is already databinded! 

Any idea how to fix it? PLZ!!!

Thx a lot.

Alin
Top achievements
Rank 1
 answered on 09 May 2011
4 answers
189 views
Hello,

Im having a problem using a ToolTip in a Radgrid that has paging enabled. Everything works fine on the first page, but just fails to work at the other pages. I have tried several things like checking the itemIndex + pagesize and on what i currently am.

I can not supply all the code, but this should do it. Its about the tooltip manager i think. ItemDataBound triggers the FillData.

private void FillData(GridItem repItem)
   {
 
           if (repItem.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem || repItem.ItemType == Telerik.Web.UI.GridItemType.Item)
            {
                NameView nameView= (NameView) repItem.DataItem;
 
   
                pnlImage.ID = nameView.Id.ToString();
 
                    if (this.EnableMouseOver)
                    {
                      tooltipManager.TargetControls.Add(pnlImage.ClientID, nameView.Id.ToString(), true);
                    }
               }
           }  
    }

Im pretty sure its a small thing i am missing.

Ive also used this around it.

if (_itemIndex >= (_currentPage * repItem.OwnerTableView.PageSize))
 {
     if (this.EnableMouseOver)
     {
       tooltipManager.TargetControls.Add(pnlImage.ClientID, nameView.Id.ToString(), true);
     }
}
 _itemIndex++;

The OnAjaxUpdate works fine since it works on the first page of the grid.

<telerikAjax:RadToolTipManager ID="tooltipManager" runat="server" AnimationDuration="300" Animation="Fade" ShowDelay="500"
    EnableShadow="true" HideDelay="1"
    Position="TopRight" ShowCallout="false" RelativeTo="Element" OnAjaxUpdate="OnAjaxUpdate"
    Width="372px" Height="330px" OnClientBeforeShow="clientBeforeShow">
</telerikAjax:RadToolTipManager>

Guido S
Top achievements
Rank 1
 answered on 09 May 2011
1 answer
153 views
Hello,

I am using the latest version of controls. Observed that the text on the chart is blured. These charts are placed in radDock controls.

Is there any compression effect which makes the text blur ?
What could be the reason and how to fix this issue ?

Code used to create the chart at runtime:
Protected Sub loadChart(ByVal dtStartDate As String, ByVal dtEndDate As String)
        Dim objReportEditChart As New Toolkit.Report
        objReportEditChart = getReport("CSMD_Average_Response_Time")
  
        Try
            Dim ds As New DataSet
            Dim da = New SqlDataAdapter(objReportEditChart._Query + "'" + dtStartDate + "', '" + dtEndDate + "')", strDSN)
            da.Fill(ds)
  
            rc_CSMD_Average_Response_Time.RemoveAllSeries()
  
            Dim sr_Days As New ChartSeries("Days", ChartSeriesType.Bar)
            rc_CSMD_Average_Response_Time.Series.Add(sr_Days)
  
            list.Clear()
            list.Add("HH:MM")
            Dim dr As DataRow() = ds.Tables(0).[Select]("severity='Severity 1'")
            If dr.Count > 0 Then
                sr_Days.AddItem(Convert.ToDecimal(dr(0).ItemArray(2).ToString()))
                list.Add(dr(0).ItemArray(0).ToString() + ":" + dr(0).ItemArray(1).ToString())
            Else
                sr_Days.AddItem(0)
                list.Add("0:0")
            End If
  
            dr = ds.Tables(0).Select("severity='Severity 2'")
            If dr.Count > 0 Then
                sr_Days.AddItem(Convert.ToDecimal(dr(0).ItemArray(2).ToString()))
                list.Add(dr(0).ItemArray(0).ToString() + ":" + dr(0).ItemArray(1).ToString())
            Else
                sr_Days.AddItem(0)
                list.Add("0:0")
            End If
  
            dr = ds.Tables(0).Select("severity='Severity 3'")
            If dr.Count > 0 Then
                sr_Days.AddItem(Convert.ToDecimal(dr(0).ItemArray(2).ToString()))
                list.Add(dr(0).ItemArray(0).ToString() + ":" + dr(0).ItemArray(1).ToString())
            Else
                sr_Days.AddItem(0)
                list.Add("0:0")
            End If
  
            dr = ds.Tables(0).Select("severity='Severity 4'")
            If dr.Count > 0 Then
                sr_Days.AddItem(Convert.ToDecimal(dr(0).ItemArray(2).ToString()))
                list.Add(dr(0).ItemArray(0).ToString() + ":" + dr(0).ItemArray(1).ToString())
            Else
                sr_Days.AddItem(0)
                list.Add("0:0")
            End If
  
            'Dim barColors As Color() = New Color() {Color.Yellow, Color.Red, Color.Yellow, Color.Green, Color.SteelBlue}
            Dim barColors As String() = New String() {"#FFFFFF", "#7F0000", "#FFDD59", "#267F00", "#005999"}
            Dim i As Integer = 0
            For Each item As ChartSeriesItem In rc_CSMD_Average_Response_Time.Series(0).Items
                item.Appearance.FillStyle.MainColor = System.Drawing.ColorTranslator.FromHtml(barColors(System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1))) ''barColors(System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1))
                item.Appearance.FillStyle.FillType = Styles.FillType.Solid
            Next
  
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.MajorGridLines.Visible = True
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.MajorGridLines.PenStyle = Drawing2D.DashStyle.Dash
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.MajorGridLines.Color = Color.DarkGray
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.MajorGridLines.Visible = True
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = Drawing2D.DashStyle.Dash
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.MajorGridLines.Color = Color.DarkGray
            rc_CSMD_Average_Response_Time.PlotArea.Appearance.Border.Visible = False
            rc_CSMD_Average_Response_Time.Appearance.Border.Visible = False
            rc_CSMD_Average_Response_Time.Height = System.Web.UI.WebControls.Unit.Pixel(255)
            rc_CSMD_Average_Response_Time.Width = System.Web.UI.WebControls.Unit.Pixel(255)
            rc_CSMD_Average_Response_Time.Appearance.Border.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
            rc_CSMD_Average_Response_Time.SeriesOrientation = ChartSeriesOrientation.Vertical
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
  
            Dim t1 As Telerik.Charting.ChartXAxis = rc_CSMD_Average_Response_Time.PlotArea.XAxis
            t1.Appearance.TextAppearance.TextProperties.Font = New System.Drawing.Font("Verdana", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 1, False)
            t1.AxisLabel.TextBlock.Appearance.TextProperties.Font = New System.Drawing.Font("Verdana", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 1, False)
            t1.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
            Dim t2 As Telerik.Charting.ChartYAxis = rc_CSMD_Average_Response_Time.PlotArea.YAxis
            t2.Appearance.TextAppearance.TextProperties.Font = New System.Drawing.Font("Verdana", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 1, False)
            t2.AxisLabel.TextBlock.Appearance.TextProperties.Font = New System.Drawing.Font("Verdana", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 1, False)
            t2.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
  
            rc_CSMD_Average_Response_Time.Series(0).Appearance.TextAppearance.TextProperties.Font = New System.Drawing.Font("Verdana", 7.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 1, False)
            rc_CSMD_Average_Response_Time.Series(0).Appearance.TextAppearance.TextProperties.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
            rc_CSMD_Average_Response_Time.Series(0).Appearance.Border.Color = System.Drawing.ColorTranslator.FromHtml("#4C4C4C")
            rc_CSMD_Average_Response_Time.Series(0).Appearance.Border.Width = 1
  
            'rc_CSMD_Average_Response_Time.PlotArea.XAxis.AxisLabel.Visible = True
            'rc_CSMD_Average_Response_Time.PlotArea.XAxis.AxisLabel.Appearance.Position.AlignedPosition = Styles.AlignedPositions.BottomRight
            'rc_CSMD_Average_Response_Time.PlotArea.XAxis.AxisLabel.TextBlock.Text = "SEVERITY"
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.AxisLabel.Visible = True
            'rc_CSMD_Average_Response_Time.PlotArea.YAxis.AxisLabel.Appearance.Position.AlignedPosition = Styles.AlignedPositions.TopLeft
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.AxisLabel.TextBlock.Text = "DAYS"
  
            rc_CSMD_Average_Response_Time.AutoLayout = True
            rc_CSMD_Average_Response_Time.IntelligentLabelsEnabled = True
            rc_CSMD_Average_Response_Time.ChartTitle.Visible = False
            rc_CSMD_Average_Response_Time.Legend.Visible = False
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.AutoScale = False
            rc_CSMD_Average_Response_Time.Skin = "Vista"
            rc_CSMD_Average_Response_Time.PlotArea.Appearance.FillStyle.MainColor = Color.White
            rc_CSMD_Average_Response_Time.PlotArea.Appearance.FillStyle.SecondColor = Color.White
            rc_CSMD_Average_Response_Time.PlotArea.Appearance.FillStyle.FillType = Styles.FillType.Gradient
            rc_CSMD_Average_Response_Time.Appearance.FillStyle.MainColor = Color.White
            rc_CSMD_Average_Response_Time.Appearance.FillStyle.SecondColor = Color.White
            rc_CSMD_Average_Response_Time.Appearance.FillStyle.FillType = Styles.FillType.Gradient
            rc_CSMD_Average_Response_Time.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.Clear()
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.AddItem("SEV 1")
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.AddItem("SEV 2")
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.AddItem("SEV 3")
            rc_CSMD_Average_Response_Time.PlotArea.XAxis.AddItem("SEV 4")
  
            arrHeader(0) = "SEV"
            arrHeader(1) = "SEV1"
            arrHeader(2) = "SEV2"
            arrHeader(3) = "SEV3"
            arrHeader(4) = "SEV4"
            arrData(0) = list(0).ToString()
            arrData(1) = list(1).ToString()
            arrData(2) = list(2).ToString()
            arrData(3) = list(3).ToString()
            arrData(4) = list(4).ToString()
  
        Catch ex As SqlException
            Console.WriteLine("SQL exception occurred: " & ex.Message)
        End Try
    End Sub
Tsvetie
Telerik team
 answered on 09 May 2011
1 answer
64 views

Hello,
I wrote this question in another thread, but i did get an answer,
maybe, because it was a different subject:

my grid (8 items) is with paging (PageSize = 5),
but i have two problems:
1) when i do 'for each' on the grid items , the "RadGrid1.Items.Count" equals - 5 and not 8
and then i get a message:
 "index was out of range. must be non negative and less then the size of the collection. parameter name : index"
2) when i add a new record - i dont see it because it's at an other page,
how can i make it go to the last page - where the new item is?

thanks in advance.

Pavlina
Telerik team
 answered on 09 May 2011
6 answers
232 views
If a RadMenu is rendered, the top div has a "float: left" style. Why has Telerik chosen to do so?

I have just started to use the controls. However, when think about scenarios with the RadMenu, I believe that most of the time the RadMenu will be a block in the top of a web page. So "float: left" is more an annoyance than a benefit.

I do know that I can overrule the floating in my own CSS. I just want to understand, why the floating was chosen.

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 09 May 2011
3 answers
231 views
Hey guys

I'm new to telerik and I'm facing a big problem. I'm developping a web application and I need, when I click on a button, to make appears a new window (window B) inside the current window (windows A). So, I followed this demo http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/client-sideapi/fileselectordialog/defaultcs.aspx, but there's still a problem. The window B appears over the window A, but I can drag it "out" of the windows A and a scrollbar appears. So, I tried to put a RestrictionZoneID (using css) that will block the window B at the edge of the window A by using the current resolution of the screen, but I don't know how to find the resolution in css. Can someone help me ? In fact, the best would be that my window have the same behavior that any Microsoft window.
Marin Bratanov
Telerik team
 answered on 09 May 2011
3 answers
110 views
We have integrated our registration web page with rad captcha control. Its working fine in most of the desktops. But in some desktops the page is not all loading it is showing "downloading 1 item". When we remove the audio captcha functionality there, its working fine. Please can anyone help in solving the issue.
Pero
Telerik team
 answered on 09 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?