Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
I have a pie chart (see this thread for how I'm implementing it http://www.telerik.com/community/forums/thread/b311D-bcdmbm.aspx).  Anyway, I want to set the TOTAL size of the image to something like 600x400 but have the pie chart a little smaller because I want to show the legend without having the legend superimpose over the chart.

I have no idea how to accomplish something like this, everytime I try to resize the chart (using RadChart.Width = Unit.Pixel(600); and RadChart.Height = Unit.Pixel(400); it automatically scales the chart with it (as well as all the labels and stuff). 

Can I manually set the chart and label sizes and then introduce my legend so I know what the heck I'm looking at?
Fooberichu
Top achievements
Rank 2
 answered on 26 Feb 2008
1 answer
398 views
RadSpell was only partially ported in RadControls Prometheus and that's why it was not included in the official Q2 release. The samples below demonstrates how to use the "old" RadSpell with RadEditor Prometheus:
 
external button
<div>
<asp:scriptmanager id="ScriptManager1" runat="server" />
<rads:radspell id="RadSpell1" runat="server" controltocheck="RadEditor1" />
<telerik:radeditor runat="server" id="RadEditor1">
 <content>
  There are somee miztakes in this text
 </content>
</telerik:radeditor>
<script type="text/javascript">
var _htmlElementTextSource = HtmlElementTextSource;
var PrometheusTextSource = function(editor)
{
 this._editor = editor;
 this.GetText = function() { return this._editor.get_Html(); };
 this.SetText = function(value) { this._editor.set_Html(value); };
}
HtmlElementTextSource = function(element)
{
 this.source = element.control && element.control.get_Html ? new PrometheusTextSource(element.control) : new _htmlElementTextSource(element);
 this.GetText = function() { return this.source.GetText(); };
 this.SetText = function(value) { return this.source.SetText(value); };
}
</script>
</div>

example with a custom tool
<div>
<asp:scriptmanager id="ScriptManager1" runat="server" />
<rads:radspell id="RadSpell1" runat="server" buttontype="none" />
<telerik:radeditor runat="server" id="RadEditor1">
 <tools>
  <telerik:editortoolgroup>
   <telerik:editortool name="spellcheck" />
  </telerik:editortoolgroup>
 </tools>
 <content>
  There are somee miztakes in this text
 </content>
</telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList.SpellCheck = function(commandName, editor)
{
 var spell = GetRadSpell('<%= RadSpell1.ClientID %>');
 spell.SpellCheck(new PrometheusTextSource(editor));
 return false;
}
var PrometheusTextSource = function(editor)
{
 this._editor = editor;
 this.GetText = function() { return this._editor.get_Html(); };
 this.SetText = function(value) { this._editor.set_Html(value); };
}
</script>
</div>


The inline spellcheck mechanism will not be available in RadEditor "Prometheus" before SP1, which is expected in a couple of weeks.
Rumen
Telerik team
 answered on 26 Feb 2008
2 answers
223 views

I am using a RadTreeView with TreeNodeExpandMode.ServerSideCallBack (an AJAX call fills in the tree entries when the plus is clicked. For each RadTreeNode, you can specifiy an ExpandMode of TreeNodeExpandMode.ServerSideCallBack to make the plus show up. Or leave it so that no plus shows up.

In client Javascript (from the OnClientNodeClicking callback), how do I tell if there are any "possible" children (if the plus is visisble)? The children are not yet filled in -- I call node.expand() to expand the node when clicked.

Thanks

Jay
Top achievements
Rank 1
 answered on 26 Feb 2008
2 answers
190 views
Has anyone encountered any issues with the RadUpload control in Firefox 2.0?  When a user clicks on the Browser's refresh button, the RadUpload UI control disappears and writes html to the page. Thanks.
Quang
Top achievements
Rank 1
 answered on 26 Feb 2008
1 answer
83 views
I have a RadWindow that is working fine ... and another RadWindow that is opened from the edit form of a RadGrid (RadControls RadGrid, not Prometheus RadGrid).  The first RadWindow works great but the RadWindow in the radgrid opens only sporadically; most of the time when I click the opener element I get no javascript errors and no window ... nothing.  But sometimes it does open.  Is this a known issue?  Is Prometheus RadWindow compatible with the RadControls RadGrid?  Do I need to do something specific to make it work?  Both of my RadWindows are both set up to open the window with the "OpenerElementID" property. 
Georgi Tunev
Telerik team
 answered on 26 Feb 2008
7 answers
175 views
Hi,

Since putting on the latest Prometheus, the tlrkComboBoxes doesn't seem to work. It's still int the help file, but when I try to use it it throws up a message saying it's not defined.

Please tell me I'm not being a muppet again. :-(

Regards

Bobby
Veselin Vasilev
Telerik team
 answered on 26 Feb 2008
2 answers
158 views
I have an ASP.Net page with the following few controls:

<asp:ScriptManager ID="Scriptmanager1" runat="server">   
</asp:ScriptManager>  
         
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" > 
</telerik:RadDatePicker> 
         
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
         
<telerik:RadToolTipManager Position="BottomRight" ID="RadToolTipManager1" runat="server">   
 </telerik:RadToolTipManager>  

In my code behind page, if I added a tooltip to the TextBox and the RadDatePicker, then view the page in my browser, the tooltips render just fine.
protected void Page_Load(object sender, EventArgs e) 
{ 
     RadDatePicker1.ToolTip =  "Added through c#"; 
     TextBox1.ToolTip = "Added through c#"; 
} 

If I explicitly add these controls to the tooltip manager, the textbox still renders the tooltip correctly and the RadDatePicker does not render the tool tip correctly.  The tooltip shows up as a stander HTML tooltip.
protected void Page_Load(object sender, EventArgs e) 
{ 
       RadDatePicker1.ToolTip =  "Added through c#"; 
       TextBox1.ToolTip = "Added through c#"; 
       RadToolTipManager1.TargetControls.Add(TextBox1.ID); 
       RadToolTipManager1.TargetControls.Add(RadDatePicker1.ID); 
} 


Do you have a reason why it would work this way?  When a page only has one tool tip manager, should I be explicitly adding the controls to the manager?

Thanks in advance!
Patrick Rivers
Top achievements
Rank 1
 answered on 26 Feb 2008
1 answer
231 views
I am trying to switch from the RadControls for ASP.NET RadWindow to Prometheus RadWindow.  I am having trouble finding an example of opening a RadWindow client-side?

I tried this but I got a javascript error that says "_28 has no properties"

        var oManager = GetRadWindowManager();
        var oWnd = oManager.GetWindowByName("NewDrugDialog");
        oWnd.Show();

Here is my RadWindow code:

        <telerik:RadWindowManager ID="RadWindowManager" runat="server" Width="400" Height="400" DestroyOnClose="true"
            Modal="true">
            <Windows>
                <telerik:RadWindow ID="NewDrugDialog" runat="server" Title="Add New Drug" Height="400px" Width="400px" ReloadOnShow="true" Modal="false" Skin="Vista" DestroyOnClose="false"
                                    ClientCallBackFunction="CallBackFunctionDrug" OnClientClose="OnClientCloseDrug" />
            </Windows>
        </telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 26 Feb 2008
1 answer
245 views
I am trying integrate Telerik Controls on MOSS master page. I have followed the steps provided in MOSS_WhitePaper.

1- I have registered following server tags

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI"

Assembly="Telerik.Web.UI, Version=2007.3.1323.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

<%

@ Register TagPrefix="radTS" Namespace="Telerik.WebControls"

Assembly="RadTabStrip.Net2, Version=3.6.2.0, Culture=neutral, PublicKeyToken=a87324b017ca21ce" %>

2- I have enabled the <SafeControls>

<

SafeControl Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />

<

SafeControl Assembly="RadTabStrip.Net2, Version=3.6.2.0, Culture=neutral, PublicKeyToken=a87324b017ca21ce" Namespace="Telerik.RadTabStripUtils" TypeName="*" Safe="True" />

<

SafeControl Assembly="RadTabStrip.Net2, Version=3.6.2.0, Culture=neutral, PublicKeyToken=a87324b017ca21ce" Namespace="Telerik.RadControlUtils" TypeName="*" Safe="True" />

<

SafeControl Assembly="RadTabStrip.Net2, Version=3.6.2.0, Culture=neutral, PublicKeyToken=a87324b017ca21ce" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />

<

SafeControl Assembly="Telerik.Web.UI, Version=2007.3.1323.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />

<

SafeControl Assembly="RadMenu.Net2, Version=4.4.1.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68" Namespace="Telerik.RadMenuUtils" TypeName="*" Safe="True" />


3- I have enabled <httpHandlers> as below

<

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2007.3.1323.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

<

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2007.3.1323.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

<

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2007.3.1323.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />


When I try to enable <RadScriptManager>, I get following error. But enabling <RadStyleScriptManger> works...Error message below

Parser Error Message: Unknown server tag 'telerik:RadScriptManager'.

Line 53:              functionality, and events that occur on a Web page. -->
Line 54:         <WebPartPages:SPWebPartManager runat="Server" />
Line 55:         <telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Inherit" EnableScriptCombine="true">
Line 56:         </telerik:RadScriptManager>

Can anyone help on this?

Thanks
Erjan Gavalji
Telerik team
 answered on 26 Feb 2008
2 answers
372 views
I looked at one of your samples here and made a minor modification to change what I needed to grab out of the RadGrid.

The project is built around the RowClick event on the client side, but I need to be able to open the RadWindow from a GridButtonColumn or similar using similar javascript. The problem is I don't know how to modify it to make it work so I can use it like I want.

Here is the script I am using currently:

    <script type="text/javascript"> 
  
    function RowClick(sender, eventArgs) 
    {         
        var MasterTableView = eventArgs.get_tableView();         
        var cell = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "item");    
        var cell2 = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "OrdNumb"); 
        var cell3 = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "POS");  
        var cell4 = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "HdrBuyFromBP");           
        var oWnd = radopen("Details.aspx?item=" + cell.innerHTML + "&Order_No=" + cell2.innerHTML + "&POS=" + cell3.innerHTML + "&BP=" + cell4.innerHTML ); 
    } 
    </script> 


And when I run and click the imagebutton I am using in the gridbuttoncolumn I get a jscript error of undefined.

Thanks!
Missing User
 answered on 26 Feb 2008
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?