Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hey
     Anyone got idea on how to minimize RadRibbonBar?
thanx
Ryan
Princy
Top achievements
Rank 2
 answered on 19 Jun 2012
3 answers
101 views
Hi,
I have one simple question only: is it possible and sensefull to use RAD Scheduler in SharePoint 2010 visual webparts?
Thank you very much for your effort!
Ulrich
Kalina
Telerik team
 answered on 19 Jun 2012
1 answer
221 views
This is my scenario:

I have a Div = CenterBody, with set height dynamically depending on windows Heigth.
I need create radsplitter programmatically and set height = ccenterBody Heigth.

this is my aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebSearch.UI.Test" %>
<!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 id="Head1" runat="server">
     <telerik:RadCodeBlock ID="CodeBlock" runat="server">
        <script type="text/javascript">

    //here set center body Height
            function pageLoad() {
                var windowHeight;
                if (typeof window.innerWidth != 'undefined') {
                    windowHeight = window.innerHeight;
                }
                // IE6 in standards compliant mode (i.e. with a valid doctype as the first
                // line in the document)
                else if (typeof document.documentElement != 'undefined'
                && typeof document.documentElement.clientWidth != 'undefined'
                && document.documentElement.clientWidth != 0) {
                    windowHeight = document.documentElement.clientHeight;
                }
                // older versions of IE
                else {
                    windowHeight = document.getElementsByTagName('body')[0].clientHeight;
                }
                document.getElementById("centerBody").style.height = (windowHeight - document.getElementById("centerBody").offsetTop) + "px";
              
// here i need set RadSplitter .height = = (windowHeight - document.getElementById("centerBody").offsetTop) + "px"; 
     
            }


             
        </script>
    </telerik:RadCodeBlock>
    </head>
<body>
    <form id="Form2" runat="server">  <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    


   <div id="centerBody" runat="server" style="border-color:Green; border-width:2px; border-style:solid; width:100%">
   </div>
                         
    
    </form>
</body>
</html>


my aspx.cs where I create RadSplitter programmatically

 public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RadSplitter splitter = new RadSplitter();
            splitter.ID = "RadSplitter1";
            splitter.Width = Unit.Percentage(100);
            splitter.Height = Unit.Percentage(100);
            splitter.Orientation = Orientation.Vertical;
            RadPane topPane = new RadPane();
            topPane.ID = "TopPane";
            Label topLabel = new Label();
            topLabel.ID = "TopLabel";
            topLabel.Text = "Top pane";
            topPane.Controls.Add(topLabel);
            splitter.Items.Add(topPane);
            RadSplitBar splitBar1 = new RadSplitBar();
            splitBar1.ID = "SplitBar1";
            splitter.Items.Add(splitBar1);
            RadPane middlePane = new RadPane();
            middlePane.ID = "MiddlePane";
            middlePane.Controls.Add(new LiteralControl("Middle pane"));
            splitter.Items.Add(middlePane);
            RadSplitBar splitBar2 = new RadSplitBar();
            splitBar2.ID = "SplitBar2";
            splitter.Items.Add(splitBar2);
            RadPane bottomPane = new RadPane();
            bottomPane.ID = "BottomPane";
            bottomPane.Controls.Add(new LiteralControl("Bottom pane"));
           
            splitter.Items.Add(bottomPane);
            centerBody.Controls.Add(splitter);
        }
    
    }


the result is captura1.

I need show as captura2

How I can do this???

regards







July
Top achievements
Rank 2
 answered on 19 Jun 2012
1 answer
141 views
Hi everyone,
     I want to close the edit form template in button click from server side. How can I achieve that?
Hopes and thanks
Ryan
Princy
Top achievements
Rank 2
 answered on 19 Jun 2012
2 answers
91 views
Hi there,
    I have paging enabled in my grid. I have encountered this problem while adding new data while in the first page. After adding the data the control is redirected to the last page. Where might I have went wrong. Can anybody help me out with this. Please do come up with something  helpful
thanks
Savyo
Savyo
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
124 views
Hello =)

I'm having the problem stated in the thread's title: Whenever I'm editing with the RadEditor if I click for example the hyperlink manager, I can't see the OK button. The problem that the webpages gives me is most of the time 'Sys' is undefined (but it throws sometimes other stuff too). This doesn't happen with every user, it just happens with users that have tons of roles and therefore the linkmanager URL gets too long.

Is there any solution for this?

Thanks a ton!!!

Damian =)
Dobromir
Telerik team
 answered on 19 Jun 2012
2 answers
343 views
Good Evening All 


I have a small issue here. I have a Div inside a TD that is defined like this 


<td    >
              <div id="divGoogleEarthMap" runat="server" [B]style="display:none" [/B]
                  >
                  <asp:HiddenField ID="HiddenField1" runat="server" />
                  <asp:ImageButton ID="GoogleEarthMap" runat="server" Height="100px"
                      OnClientClick="javascript:showimage('GoogleEarthMap'); return false;"
                      Width="100px" />
              </div>
          </td>


now the display style of this div is hidden. so i have a Javascript that runs when i close my popup. the first thing that javascript does is to populate two textboxes and show this div. It populate the textboxes nicely , but it fails to show or unhide the div. i have tried to set of code example using the normal javascript and also JQuery as depicted below 



 
$('#divGoogleEarthMap').css('display', "block;");
 


and



 
var div = document.getElementById("divGoogleEarthMap");<br>                div.style.display = "block";

 


or 


document.getElementById('divGoogleEarthMap').style.display = 'block';


but still my Element cant be displayed. 

Please note that i have a Sample Project that i can be supplied on request


Thanks 
Vuyiswa
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
731 views
Hi,

After I added DbValue property, the default/initial value "0"  disappears.  
<telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server"
CssClass="AlignRight" Culture="en-US"
Value="0" DataType="System.Decimal"
DbValue ='<%# Bind( "RateValue") %>'
LabelWidth="64px" Width="160px">
<NumberFormat ZeroPattern="n"></NumberFormat>
<DisabledStyle HorizontalAlign="Right" />
</telerik:RadNumericTextBox>

Regards
Kevin
Top achievements
Rank 2
 answered on 19 Jun 2012
5 answers
197 views
This is somewhat obscure, and perhaps the behavior is by design for some reason, but a RadComboBox with CheckBoxes and AutoPostBack enabled in addition to an EmptyMessage posts back to the server when the dropdown menu is closed and no items are checked or unchecked (i.e. the menu is opened and closed with no additional interaction).  

<telerik:RadComboBox ID="rcbItems" runat="server" CheckBoxes="true" AutoPostBack="true"
    Width="175" Height="300" EmptyMessage="Select an Item">
</telerik:RadComboBox>

Removing either the EmptyMessage or the CheckBoxes will eliminate the postback.  Can anyone explain this behavior?
Ivana
Telerik team
 answered on 19 Jun 2012
2 answers
64 views
Hello,

Im currently upgrading the Classic RadGrid with the new Ajax RadGrid. This (obviosly) caused me some problems. I did fix many of them but sadly I have a few left that I just do not know how to solve.

I am currently struggling with the following:

The radgrid pager combobox is not working properly when its inside of a RadWindow, at least not when its on the bottom of the page. Forcing it to open upwards does not help so I can not use this as a temporary fix. This makes me wonder if more people have stumbled upon this problem that can tell me where to search next.

I've created some screenshots to give you a proper view of the situation. (Broken.png + Broken2.png)
I am pretty sure there is not really a need for code right here, since it really isn't very special.
Its just a grid sitting there that is getting filled with data.

Thanks in advance!

Ps: Clicking on the pager combobox (when it doesn't work) causes an extra scrollbar to appear.

Guido S
Top achievements
Rank 1
 answered on 19 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?