Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
Hi

I have an editor with custom toolbar buttons which I am able to enable / disable via javascript using the following code:
                function OnClientSelectionChange(editor, args) {  
                    var enableButton = (editor.getSelection().getText().length > 0) ? 0 : -1;  
                    editor.getToolByName("tbiEntity").setState(enableButton);  
                        //more buttons are being disbled (not showing for brevity)...  
                } 

The custom buttons that I am showing in my toolbar are also a custom contextMenu as in:
        <contextMenu forElement="*">  
            <tool name="tbiEntity" Text="Entity (Ctrl+Shift+E)" /> 
<!-- more here --> 
        </contextMenu>       

The toolbar buttons now only show when the user has selected some text (works great), however, I need to disable / enable the context menus when I am enabllng / disabling my toolbar buttons. 

How do I get a ref to the conextmenu via javascript, and do the contextmenus have a setState property?
Dobromir
Telerik team
 answered on 12 Apr 2010
1 answer
101 views
The SkinManager works great for all the Telerik components, with a great set of built-in skins. It doesn't appear to skin the other standard HTML ot ASP.NET elements. What would be the best approach to apply the Telerik skins to the entire page?
 
Do I have to create my own ASP.NET theme for each Telerik skin and manage them seperately? This seems like a lot of work.
Sebastian
Telerik team
 answered on 12 Apr 2010
1 answer
151 views
Hello,
          I have a ASP.NET AJAX tree control whose data need to be downloaded to a file from server. I have a splitter control which has the tree control and a button. OnClick of that button, I save the file to disk on the server and redirect to a different page and call Response.TransmitFile(name) to send the file to client;. It works fine on local server. But on remote server, IE security blocks the file from downloading. But I clicked on the information bar in IE and clicked Download File, the page is refreshed but the file is not downloaded. All data in tree control is lost.

Any suggestions or clues..

Thanks,
Bharani
Bharani Mani
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
144 views
Is it possible to change the 'filter by' values. For example, on this demo http://demos.telerik.com/aspnet-ajax/filter/examples/firstlook/defaultcs.aspx you can filter by 'ShipVia' or 'ShipName', is it possible to change the text in the menu to 'Ship Via' or 'Ship Name' or even remove some of the options which a user can filter by?

Thank you.
Nikolay Rusev
Telerik team
 answered on 12 Apr 2010
2 answers
174 views
Hi,
Here is the scenario:
- I have RAdWindowManager and some windows defined in an aspx page. I dont want to display any titlebar, statusbar and any borders(i.e. skins). Titlebar and status bar are easy, however for no skin, i find that the only way to do it is either put "EnableEmbeddedSkins=false" or "skin=""  in RadWindowManager declaration. Notice if I do that in individual window declaration, it doesn't work (i.e. skin shows up).

- In my code, I also create new RadWindows through client side javascript, however for these new windows, I need to display the close button i.e. .set_behaviors(Telerik.Web.UI.WindowBehaviors.Close ); however this new window also comes up as skinless and as a result, no close button. IF I remove the "EnableEmbeddedSkins" attribute, then everything works.

So this is the question: how can i have some windows "skinless" and some with skin?
Raheel Ashraf
Top achievements
Rank 1
 answered on 12 Apr 2010
9 answers
400 views
Dear All,

I want to have en external .js file for all my functions scattered all over the page, so I created a .js file and paster everything over there.
I went to my masterpage and add the script tag as follows: 
<script type="text/javascript" language="javascript" src="GlobelFuncs.js"></script>
but it doesn't work ...

How can I accomplish that ?

Best regards
Waleed
Tariq
Top achievements
Rank 2
 answered on 12 Apr 2010
1 answer
84 views
I have create a dockZone in a scrolling panel.

This works fine on my development machine (vista) and when hosted on an XP machine.

However, when I host the page on Windows Server 2003 the dockZone does not scroll with the panel.

<asp:Panel ID="plBottom" runat="server" Height="500" ScrollBars="vertical" > 
   <br /> 
    <telerik:RadDockZone ID="zone1" runat="server">  
        <telerik:RadDock ID="dock1" runat="server" Title="doc" DockMode="docked" EnableDrag="false" /> 
        </telerik:RadDockZone> 
        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
        <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 
        end   
</asp:Panel> 

Any suggestions?
Damien McCarron
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
121 views
I have the control setup as following, however, the "go" button is not generating using SEO paging. Any thing I am missing?

  <telerik:RadDataPager ID="RadDataPagerTop" runat="server" Style="border: none;" SkinID="ListViewSkin" 
                            AllowSEOPaging="true" SEOPagingQueryPageKey="Page"
                            <Fields> 
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                <telerik:RadDataPagerGoToPageField CurrentPageText="Page " TotalPageText="/" SubmitButtonText="Go" 
                                    TextBoxWidth="25" /> 
                            </Fields> 
                        </telerik:RadDataPager> 

Pavel
Telerik team
 answered on 12 Apr 2010
4 answers
124 views
Hi,

I am using rad file explorer in my project, and the problem is that when the uploading window of file explorer appears, it does not appear properly. It goes to right bottom corner of the page and when I click to drag the uploading window it disappears and height and width of page get bigger and bigger. What's the problem with it? Can I adjust its position to appear on the page properly?
Help will be greatly appriciated.

Regards
Muhammad Farjad
Muhammad Farjad
Top achievements
Rank 1
 answered on 12 Apr 2010
2 answers
92 views
Hello,
I'm trying to add nodes to the tree view as given in the example below on a button click.
http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/addremovedisable/defaultvb.aspx

But I am not able to get the value of RadTreeView1.SelectedNode.
It always returns me NULL

My .aspx page is as below
[code]

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ 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">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
     <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="AddButton">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
     <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Title="Available actions" Orientation="Vertical" Expanded="true">
            <ul >
                <li>
                    <asp:Button  ID="AddButton" runat="server" OnClick="AddButton_Click"></asp:Button>
                </li>
            </ul>
        </qsf:ConfiguratorPanel>

        <telerik:RadTreeView ID="RadTreeView1" runat="server" Height="280px" Width="300px"  />

    </form>
</body>
</html>


and my .cs code
**************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Telerik.Web.UI;


public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadTreeView1.LoadContentFile("~/XMLTreeViewStructure/SuiteTemplate.xml");
    }
    protected void AddButton_Click(object sender, EventArgs e)
    {
        IRadTreeNodeContainer target = RadTreeView1;
        if (RadTreeView1.SelectedNode != null)                    // Problem :- condition is not getting satisfied even when I select a tree node
        {
            RadTreeView1.SelectedNode.Expanded = true;
            target = RadTreeView1.SelectedNode;
        }
        RadTreeNode addedNode = new RadTreeNode("Course");
        addedNode.Selected = true;
        target.Nodes.Add(addedNode)
 }
     
}


[/code]

Please advise me !

Thanks !
Nitin



Nitin Nitin
Top achievements
Rank 1
 answered on 12 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?