Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
       <telerik:RadToolTipManager AutoTooltipify="true" Title="Tip"   
            ID="radToolTipManager1" runat="server" /> 
             
        <telerik:RadTabStrip Visible="false" ID="rtsHeader" runat="server" > 
            <Tabs> 
                <telerik:RadTab ToolTip="Text to show for My Messages Tab 1" Text="Tab1" /> 
                <telerik:RadTab ToolTip="Text to show for My Messages Tab 2" Text="Tab2" /> 
 
            </Tabs> 
        </telerik:RadTabStrip> 

How do I have the tool tip title for each tab, vary, and not display "Tip"
Svetlina Anati
Telerik team
 answered on 20 Nov 2009
1 answer
233 views
In a very basic sample I have a RadListView nested inside a FormView.  Data binding occurs at the FormView level which the ListView picks up through the DataSource property.  The problem I have is that a user needs to click twice on any of the command links twice to get them to work.  Not sure what is happening, but I suspect it has to do with the data binding model.  I am researching and thought I would post here in case someone is aware of something while I dig further into the issue:

<telerik:RadScriptManager ID="ScriptManager" runat="server" /> 
<telerik:RadAjaxManager ID="AjaxManager" runat="server" /> 
<asp:FormView ID="Inspection" runat="server" DataSourceID="InspectionDataSource" 
    DefaultMode="Edit"> 
    <EditItemTemplate> 
        <%# Eval("Name") %> 
        <telerik:RadListView ID="Items" runat="server" DataSource='<%# Bind("Items") %>'> 
            <LayoutTemplate> 
                <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> 
            </LayoutTemplate> 
            <EditItemTemplate> 
                Edit mode 
                <asp:LinkButton ID="Update" runat="server" CommandName="Update" Text="Update" ValidationGroup="Item" /> 
                <asp:LinkButton ID="Cancel" runat="server" CausesValidation="false" CommandName="Cancel" 
                    Text="Cancel" /> 
            </EditItemTemplate> 
            <ItemTemplate> 
                Read mode 
                <asp:LinkButton ID="Edit" runat="server" CausesValidation="false" CommandName="Edit" 
                    Text="Edit" /> 
            </ItemTemplate> 
        </telerik:RadListView> 
    </EditItemTemplate> 
</asp:FormView> 
 
<asp:ObjectDataSource ID="InspectionDataSource" runat="server" DataObjectTypeName="Foo.Inspection" 
TypeName="Foo.DataSource" SelectMethod="RetrieveInspection" /> 

Rosen
Telerik team
 answered on 20 Nov 2009
2 answers
271 views
Hi,

I need to draw a chart based on the data fetched from the database runtime.
There are two files attached, "Data" is the result which dataset say "ds1" contains.
And "Chart", what I am getting by binding the chart with "ds1".
The issue is, it does not show the 'x-axis' values properly in chart, 'y-axis' are displayed correctly.

Here is a code, which i am using to display the chart. There is one panel on the form, and i am adding radChart at runtime to it.

    RadChart RadChart1 = new RadChart(); 
 
                 RadChart1.AutoLayout = true; 
                 RadChart1.Skin = "Vista"; 
 
                 RadChart1.Width = Unit.Pixel(720); 
                 RadChart1.Height = Unit.Pixel(450); 
 
                 RadChart1.ChartTitle.TextBlock.Text = "Details of date '" + Convert.ToDateTime(ds1.Tables[0].Rows[0]["TestDate"]).ToShortDateString() + "'"; 
 
                ChartSeries chartSeries = new ChartSeries(); 
                 chartSeries.Appearance.LabelAppearance.Visible = false; 
                 chartSeries.Name = "CPM"; 
                 chartSeries.Type = ChartSeriesType.Line; 
                 chartSeries.Appearance.LineSeriesAppearance.Color = System.Drawing.Color.BlueViolet;              
                 // visually enhance the data points 
                 chartSeries.Appearance.PointMark.Dimensions.Width = 5; 
                 chartSeries.Appearance.PointMark.Dimensions.Height = 5; 
                 chartSeries.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Black; 
                 chartSeries.Appearance.PointMark.Visible = true;            
                 chartSeries.DataYColumn = "CPM"; 
                     
                 RadChart1.Series.Add(chartSeries); 
 
                 RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 30; 
                 RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Right; 
          
                 RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black; 
               
                 RadChart1.PlotArea.XAxis.AxisLabel.Visible = true; 
                 RadChart1.PlotArea.XAxis.AutoScale =false; 
                 RadChart1.PlotArea.XAxis.AddRange(1, 7, 1); 
         
                 RadChart1.PlotArea.XAxis[0].TextBlock.Text = "39"; 
                 RadChart1.PlotArea.XAxis[1].TextBlock.Text = "40"; 
                 RadChart1.PlotArea.XAxis[2].TextBlock.Text = "41"; 
                 RadChart1.PlotArea.XAxis[3].TextBlock.Text = "42"; 
                 RadChart1.PlotArea.XAxis[4].TextBlock.Text = "43"; 
                 RadChart1.PlotArea.XAxis[5].TextBlock.Text = "44"; 
                 RadChart1.PlotArea.XAxis[6].TextBlock.Text = "45"; 
 
                 RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Length"; 
                 RadChart1.PlotArea.XAxis.AxisLabel.Visible = true; 
 
                 RadChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black;          
                 RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "CPM";             
                 RadChart1.PlotArea.YAxis.AxisLabel.Visible = true; 
                 RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended;             
      
                   
                   RadChart1.DataSource = ds1; 
 
                   RadChart1.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(RadChart1_ItemDataBound); 
 
                 
                    RadChart1.DataBind(); 
                    pnlGraph.Controls.Add(RadChart1); 
                    RadToolTipManager1.ToolTipZoneID = "RadChart1"; 

And the Event to display the tooltip.

 protected void RadChart1_ItemDataBound(object sender, Telerik.Charting.ChartItemDataBoundEventArgs e) 
    { 
        e.SeriesItem.ActiveRegion.Tooltip += "Length:" + ((DataRowView)e.DataItem)["Length"].ToString() + " and CPM: " + e.SeriesItem.YValue + " for Club: " + ((DataRowView)e.DataItem)["Club"].ToString(); 
    } 


As, in Chart image, in tooltip, it is showing "Length" (x-axis) as "44", but showing point on "39".

It seems, it assigns Y values to X values in sequence.
Is it possible to display this kind of data in Rad Line Chart ?

What changes should I need to do ?
Mansi
Top achievements
Rank 1
 answered on 20 Nov 2009
1 answer
370 views
Does Telerik have something like the Ajax-Toolkit ModalPopupExtender?.

I have a usercontrol with RadListBox. And placed that usercontrol in AjaxModalPopupExtender. The popup is not shown in the center of screen as earlier. 
Sebastian
Telerik team
 answered on 20 Nov 2009
2 answers
177 views
When I view the following tool tip in IE7 or IE8 Compatibility view,it looks like it the tooltip in the left in the image.but if i move the cursour from the link and then back to it to show the tooltip, it looks like the one on right.  Image attached.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication3._Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>

<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server">
        </asp:ScriptManager>
<%--        <telerik:RadToolTip ID="some" Text="hello" TargetControlID="rr" runat="server" OnClientBeforeShow="clientShow">
        </telerik:RadToolTip>--%>
        <asp:TextBox runat="server" ID="rr"></asp:TextBox>
       
 
        <asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>
        <telerik:RadToolTip ID="RadToolTip1" Text=" <p><b>Average</b></p><br /><br/><i>Good</i><br /><br/><font size='5'>Meets Expectations</font><br /><hr/><h1>Exceeds Expectations</h1><br /><br/><u>Outstanding</u><br /><br /><p>this is line 2</p><br /><p>and another line here 1</p><br /><p>and another line here 2</p><br /><p>and another line here 3</p><br /><p>and another line here 4</p><br /><p>and another line here 5</p><br /><p>and the last one</p><br />" runat="server" TargetControlID="HyperLink1" Width=200 Height=100 OnClientBeforeShow="BeforeShow">
        </telerik:RadToolTip>
    </div>
    </form>
</body>
</html>
Svetlina Anati
Telerik team
 answered on 20 Nov 2009
2 answers
552 views
Hi there,

I have hierarchical radGrid (2 level) and I set the Scrolling AllowScroll=True, UseStaticHeaders = True.
The issue that I have is the Horizontal scrollbar always appear eventhough the total width for the column is 100%.
I'm using percentage instead of the fixed width. I tried to change the total width to less 100%, the result was equally bad.

Since this grid is inside the ajax update panel, when an ajax request was made, suddenly the horizontal re-adjusted and disappeared.
Is there a way to hide the horizontal scrollbar?

 I'm using version 2009 Q2.

Thanks

First
Top achievements
Rank 1
 answered on 20 Nov 2009
1 answer
65 views
I have a grid that all the rows are open in edit mode using inplace updating.
The problem is that when I save a row (let's say this record is the 3rd row of the grid).
When the grid rebinds it will apply the sort expression of the bound sql statement and if the saved value is part of the sort the record will move to a different position in the grid (let's say it bubbled up to the 2nd row because of the sort)
Next the grid will close the edit mode and show the edit pencil but it closes the 3rd row instead of the new position of the edited record at the 2nd row.  It appears to sort before it closes the edit mode?  This makes the user think that the record wasn't saved and really messes with their head...  Any clever ideas on how to fix this one?
Iana Tsolova
Telerik team
 answered on 20 Nov 2009
1 answer
127 views
I am trying to hide the tablecell data for a column if it has the same DataKeyValue as the row
above.  Does anyone know if this is possible?  Thanks in advance.

Column 1        Column 2
xxxxxxxxxx        xxxxxxxxxxx
Blank              xxxxxxxxxxx

Blank Column 1, 2nd row value because both rows have the same datakeyvalue.

Joshua
Princy
Top achievements
Rank 2
 answered on 20 Nov 2009
1 answer
464 views
My tooltip text seems to be centered and I would like it to be left-justified. I'm not sure if this is the result of some other css styles on my page or if it default behavior. How do I explicitly set the content of the tooltip to be left-aligned? I am using the autotooltipify property with some <li> tags. I tried to set the text-align css property of the <li> tags, but this didn't seem to have any effect on the tooltip.
Svetlina Anati
Telerik team
 answered on 20 Nov 2009
1 answer
122 views

I have a UI which needs filtering activated. 

The scrum story reads, "As a user I want to filter grid rows using calendar controls to select a start date and an end date."

There are two columns in the grid:  Job Start, and Job End. I need to apply the following filter logic:
JobStart >= calendarStartDate AND JobEnd < calendarEndDate. 

The routine executes in the event handler of the "apply filter" button.

Can someone please tell me what I am doing wrong?

        protected void UpdateButton_OnClick(object sender, EventArgs args)  
        {  
            //First attempt was to directly edit the filter expression  
            //this._jobReportsSummaryGrid.Grid.MasterTableView.FilterExpression = string.Format("[JobStart] >= '{0}' AND [JobEnd] < '{1}'", _startDateCalendar.SelectedDate, _endDateCalendar.SelectedDate);  
              
 
            //When that didn't work I added this   
            this._jobReportsSummaryGrid.Grid.AllowFilteringByColumn = true;              
            GridColumn JobStartColumn = this._jobReportsSummaryGrid.Grid.MasterTableView.GetColumnSafe("JobStart");  
            JobStartColumn.CurrentFilterFunction = GridKnownFunction.GreaterThanOrEqualTo;  
            JobStartColumn.CurrentFilterValue = _startDateCalendar.SelectedDate.Value.Date.ToString("MM/dd/yyyy");              
 
            GridColumn JobEndColumn = this._jobReportsSummaryGrid.Grid.MasterTableView.GetColumnSafe("JobEnd");  
            JobEndColumn.CurrentFilterFunction = GridKnownFunction.LessThan;  
            JobEndColumn.CurrentFilterValue = _startDateCalendar.SelectedDate.Value.Date.ToString("MM/dd/yyyy");  
              
            //...and when that didn't work, I came here  
        } 
Tsvetoslav
Telerik team
 answered on 20 Nov 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?