Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
669 views
I am looking to pass data from the rows of a datagrid into javascript arguments using on the Client Event RowClick.

For example. I am returning a list of names, and addresses into a grid. I want to display these names and addresses in a javascript message box. e.g. Alert ("Name:" + arg1 + "  Address: " + Arg2)

If this is not possible. i would like to open a new RadWindow and specify the query string directly from RowClick client event.

Any help would be much appreciated.
Yavor
Telerik team
 answered on 20 Nov 2009
1 answer
120 views
Hi,

I have 3 fields on a webpage. I need to make sure that at least 2 of the 3 being completed (any combination). So I added a RadInputManager and added the TargetInput Controls for all 3. This require the client to complete all 3. Is there a way to do this that only 2 of the 3 needs to be completed?

Thanx in advance for all help.
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2009
1 answer
74 views
I've been using this code on javascript to perform filtering on key press.
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("Name", sender.get_value(), "Contains");

But can anyone tell me how to do I archive this on code behind via a button?



Princy
Top achievements
Rank 2
 answered on 20 Nov 2009
2 answers
168 views
Hello We try to update RadWindow  1.9.6.0 to Radwindow what are part Telerik.Web.UI.dll file(Ithink it is Q3 2008). I Replaced follwing
I Replaced follwing old assemply <%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %> with new asembly.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

I got  this error:

 The base class includes the field 'RadWindow1', but its type (Telerik.WebControls.RadWindow) is not compatible with the type of control (Telerik.Web.UI.RadWindow).

Can anyone help me !
Fiko
Telerik team
 answered on 20 Nov 2009
7 answers
147 views
New install of Rad Controls 2009.3 .net 3.5 only for Visual studio 2008 v9.0.21022.8 RTM; .net framework 3.5 sp1
Help/about installed packages only inculdes Telerik OpenAccess 2009.3.1104.2 and Telerik Web VSPackage 1.0
When I go to toolbox / choose items, the Telerik tools are all there and checked.

Problem:

None of the rad controls is showing up in the toolbox for any of my projects.
The menu item Telelrik. Radcontrols for asp .net ajax - the whole sub menu is disabled.

I can go into the code and type <telerik:  and the autocomplete is showing the rad controls.
If I put a control in via the code: 
        it will render in the browser
        It will not render in the designer - I get an error that it can't find Telerik.Web.UI even though it's in the project bin folder
Trying to add a refernce, Telerik.web.UI is not in the list - Telerik.OpenAccess and Telerik.Reporting are there.
Svetlina Anati
Telerik team
 answered on 20 Nov 2009
1 answer
184 views
Why wont this work?

 

 

 

 

        protected override void CreateChildControls()  
        {  
            base.CreateChildControls();  
 
            var rttMyAlerts = new RadToolTip  
                                  {  
                                      ID = "rttMyAlerts",  
                                      TargetControlID = rtsHeader.Tabs[0].ClientID,  
                                      IsClientID = true,  
                                      Title = "Tool Tip Test",  
                                      Text = "Hi !",  
                                      ShowDelay = 0,  
                                  };  
 
            Controls.Add(rttMyAlerts);  
        } 

 

 

Svetlina Anati
Telerik team
 answered on 20 Nov 2009
1 answer
111 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
226 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
250 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
362 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?