Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
I'm trying to add ItemTemplates dynamically by calling RadMenuItem.Controls.Add()

The problem is, the moment I do this, the MenuItem's Image/Icon loses its url/link.

How can I fix this...?
Atanas Korchev
Telerik team
 answered on 30 Mar 2009
1 answer
121 views
Hello there.

I have one radwindow (containing a grid) that opens a second radwindow (containing some detail for the selected item).

I have been looking for a way of closing the topmost window and automatically refreshing the opener, or window containing the grid.

I have found api examples of refreshing the underlying html page, but can't find an example of refreshing a parent radwindow.

If someone could point me in the right direction I would be very grateful.

Regards,

Darren.
Georgi Tunev
Telerik team
 answered on 30 Mar 2009
5 answers
554 views
I have a simple scenario where I have a tab strip on a materpage. Each tab has its NavigateURL set for a specific page. When I click on a tab I would like the tab to show its selected state when the page loads. But this is not happening. Here is my code snippet.

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" AutoPostBack="false" SelectedIndex="0" CssClass="tabStrip"
             <Tabs> 
                 <telerik:RadTab Text="Tools" NavigateUrl="../../pages/tools.aspx"
                 </telerik:RadTab> 
                 <telerik:RadTab Text="Washers" NavigateUrl="../../pages/washers.aspx"
                 </telerik:RadTab> 
             </Tabs> 
    </telerik:RadTabStrip> 
    </div> 
    <div id="ContentContainer"
                <asp:ContentPlaceHolder id="PlaceHolderMain" Visible="true" runat="server" /> 
        <div class="clear"></div> 
    </div> 


Atanas Korchev
Telerik team
 answered on 30 Mar 2009
3 answers
136 views
I would like to draw discontinuous functions using the RadChart control looking something similar like this: example graph During browsing the documentation and the forum, I didn't find any straightforward solution to implement these kind of charts. Is this possible somehow?

My data I would like to display is actually a bunch of segments looking for example like this:

x1       x2       y
0.0     1.3      3.0
1.3     1.7      5.2
1.7     2.1      4.3
2.1     2.9      1.3
....



Dessy
Telerik team
 answered on 30 Mar 2009
3 answers
223 views
Dear all,

I am trying to set several splitters to retrieve a look and feel similar to windows explorer.
I want one thin area at the top.
Underneath, I want an area on the left separated from the right by a Splitter bar.

First Problem: scroll bars

The code below almost work but I get both horizontal and vertical scroll bars while I would expect none.
I am trying to use 100% everywhere as I want to use the entire screen.
Any idea how to get rid of them?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SplitterTests.aspx.cs" Inherits="Test2.SplitterTests" %> 
 
<%@ 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" style="height:100%" > 
<head id="Head1" runat="server"
    <title></title
</head> 
<body style="height:100%;margin:0px" scroll="no"
  <form id="form1" runat="server" style="height:100%;margin:0px"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <script type="text/javascript"
      function ChangeUrl(sender, args) { 
          var pane = $find("<%= RadPane2.ClientID %>"); 
          pane.set_contentUrl(args.get_newValue()); 
      } 
    </script> 
      <telerik:RadSplitter ID="RadSplitter1" Runat="server" Height="100%" Width="100%" Orientation="Horizontal"
        <telerik:RadPane ID="RadPane1" Runat="server" Width="100%" BackColor="Aqua" Height="30px">RadPane1 
        </telerik:RadPane> 
        <telerik:RadPane ID="RadPane2" Runat="server" BackColor="BlueViolet" Height="100%"
            <telerik:RadSplitter ID="RadSplitter2" runat="server" Height="100%"
                <telerik:RadPane ID="RadPane3" runat="server" BackColor="Beige"
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> 
                <telerik:RadPane ID="RadPane4" runat="server"
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
      </telerik:RadSplitter> 
  </form> 
</body> 
</html> 

Second Problem: useless javascript

You may have noticed that the javascript is useless (I inherited it from one of the samples).
But if I remove it, the entire page becomes wonky as if the first splitter had a width of 50% and the second a height of 0.
Does that make sense?


Many thanks




Svetlina Anati
Telerik team
 answered on 30 Mar 2009
3 answers
114 views
I'm moving the data binding for a RadGrid from the server side to the client side using a Web service. One of my columns has a value that is formatted by another value in the same row.  I was doing this on the server side and passing in the value of the column and the format column:

        protected static string FormatMetric(object oValue, object oFormat) { 
            string f = oFormat.ToString(); 
            try { 
                double v = Convert.ToDouble(oValue); 
                return v.ToString(f); 
            } 
            catch { 
                return ""
            } 
        } 


The format was a string like "$#,### mil".  How can I translate that to javascript?  I can't seem to figure out how to format a number using a custom format.
Nikolay Rusev
Telerik team
 answered on 30 Mar 2009
1 answer
100 views
What are teleriks thoughts on new menus like the one found on here: http://www.johnlewis.com/?
Would be nice if RadMEnu could be configured in this way inthe not so distant future?
Thanks

Atanas Korchev
Telerik team
 answered on 30 Mar 2009
1 answer
132 views
Placed in RadToolTip to display when mouseover a button, looks like this:

<telerik:RadToolTip ID="RadToolTip1" runat="server" Width="390px" Height="70px"   
            TargetControlID="Button1" Animation="Fade" Position="TopRight" Skin="Default">  
            <img src="NewFolder1/test.jpg" alt="&nbsp;" /><img src="NewFolder1/PDF.bmp"   
                style="width: 50px; height: 50px" /> 
        </telerik:RadToolTip> 

But it fails to display on mouse over.  What am I missing?
Svetlina Anati
Telerik team
 answered on 30 Mar 2009
1 answer
121 views
Hi,

I'm trying to use the user control as the edit form, this is working fine but now I want to generate the input boxes from code behind on page load as this is a dynamic input form. Unfortunately I'm having problems them to bind with the Container object as this only seems to exist when declaring it in the aspx. Is there anyway to get hold of this object from code behind? maybe from the Page object (which references the container page with the grid on it) or by passing it in as  properties/eventargs on the user control.

Here is my user control code example..

public partial class WebUserControls_EditForm : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        TextBox txt1 = new TextBox();
        
        txt1.Text = DataBinder.Eval(Container, "DataItem.Txt1").ToString();

        this.Controls.Add(txt1);
    }
}
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2009
2 answers
387 views

Hey folks.

For you guys struggling with one of the following errors (or both if you try to render a new ScriptManager)
 
 - Only one instance of a ScriptManager can be added to the page.
 - The control with ID 'xx' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

The solution is to make sure that the ScriptManager is rendered BEFORE the given RAD Control, and that only one ScriptManager exists. The following code snippet should achive this:

protected override void CreateChildControls()
{
     if (ScriptManager.GetCurrent(this.Page) != null)
     {

          this.sm = ScriptManager.GetCurrent(this.Page);
     }
     else
     {
          this.sm = new ScriptManager();
          this.Controls.Add(this.sm);
     }
}

Now make sure the ScriptManager is rendered BEFORE the controls needing it (ie RadEditor)

protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
     this.sm.RenderControl(writer);
     this.radEditor.RenderControl(writer);
}

Hopefully this will be helpful to someone else.

Jimmy
Top achievements
Rank 1
 answered on 30 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?