Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
I am using Telerik.Web.UI.dll version 2008.3.1314.35.

If I add a RadScriptManager and a RadNumericTextbox to a web form as below

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="sm" runat="server" EnableScriptCombine="true" EnablePartialRendering="true"></telerik:RadScriptManager>
<div>
    <telerik:RadNumericTextBox ID="rntUpDown" runat="server" Type="Number" ShowSpinButtons="true" ButtonsPosition="Right">
    <NumberFormat AllowRounding="false" KeepNotRoundedValue="true" DecimalDigits="2" />
</telerik:RadNumericTextBox>
    </div>
    </form>
</body>

I then run the website and type 16.67 into the input area of the RadNumericTextbox.....if I press the up arrow this increments by 1 ie 17.67,18.67. However, if I press the down arrow, once I get below the initially typed in value I get 15.670000000000001
instead of the expected 15.67.

Any ideas?

Daniel
Telerik team
 answered on 30 Mar 2009
1 answer
96 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
123 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
559 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
142 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
229 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
121 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
101 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
135 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
127 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
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?