Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 views
I am running into an issue where the menu is being displayed on the screen as a basic UL List first before it gets the CSS skin applied and becomes a menu. Has anyone run into this issue before? I am generating the menu dynamically from the OnPreRender method of the web page.

Here is a sample movie of what is happening...
Menu Ghosting Example

************ SAMPLE CODE *************
    RadMenu mainMenu = new RadMenu();
        mainMenu.ID = "windowMenu";
        mainMenu.Skin = "Vista";
        mainMenu.CollapseAnimation.Type = AnimationType.None;
        mainMenu.ExpandAnimation.Type = AnimationType.None;
        mainMenu.Style.Add("border-bottom", "solid 1px black");
        mainMenu.Style.Add(HtmlTextWriterStyle.MarginBottom, "9px");
        mainMenu.Style.Add("width","100%");
        mainMenu.Style.Add("display","block");
        mainMenu.Style.Add("float", "none");
        mainMenu.Style.Add("border", "none");
        mainMenu.Style.Add("border-bottom", "solid 3px black");
        mainMenu.ClickToOpen = true;
   
    //***** CODE TO ADD ALL THE MENU ITEMS ******
   
        Page.Controls.AddAt(0,mainMenu);
Charlie Bross
Top achievements
Rank 1
 answered on 13 Aug 2008
9 answers
781 views
hello community,

is there a way so that my nestedviewtemplate is expanded by default?  related question is how can i expand and collapse all nestedview items.

thanks in advance!
-cris
Daniel
Telerik team
 answered on 13 Aug 2008
2 answers
151 views
When going into full screen mode, the sidebar of our template remains visible over the top of the editing dialogue, obscuring some of the text. If I remove the width declaration from the sidebar's CSS rule, the problem goes away. However, the width needs to be there for normal display, so I need to get rid of it only when in full screen mode.

It would be useful if full screen mode added a class to the body element - something like class="rad_fullscreen" - so that I could write a CSS rule to account for this.

One of the reasons for buying the full version of the editor was that we could add custom behaviours using JavaScript. The online manual says the way to do this is by setting the OnClientCommandExecuting property of the control, but with the MOSS control that property doesn't exist. How can I create a client-side event handler that will fix this problem?
Rick Mason
Top achievements
Rank 1
 answered on 13 Aug 2008
2 answers
106 views
I am trying to add an entry into a web.config file that will allow the enabling/disabling of the spell check suggestion dropdown.  When disabled, I would like the misspelled words to be highlighted and that is all.  What property can I set to accomplish this?
Georgi Tunev
Telerik team
 answered on 13 Aug 2008
2 answers
103 views
I am using the RadEditor control and cannot find a way to remove the bottom panel that contains the 'export report pane' checkbox and the 'select doctype' dropdownlist. Can someone please tell me how to hide/remove this panel or these controls?
Richard
Top achievements
Rank 1
 answered on 13 Aug 2008
1 answer
103 views

When I fire off the text change I get a post back but no loading panel.

On the same page when a button click is performed, ajax not shown, I get the loading panel.

<

telerik:AjaxSetting AjaxControlID="txtATCO" >

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="pnlAll" LoadingPanelID="RadAjaxLoadingPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

Jim
Top achievements
Rank 2
 answered on 13 Aug 2008
13 answers
758 views

I am trying to add dynamic RadWindows and Buttons to an UpdatePanel (not sure how to do it with RadAjax or RadAjaxManager). When the buttons have been added I am using their ID for the OpenerID of the RadWindow.

So a simple (text visual layout of this is)

UpdatePanel
--ImageButton(s) that load(s) a RadWindow(s) when clicked

My problem is when I click the button nothing happens, I think it is an AJAX javascript issue. If I load the buttons when the page loads it works great, the problem is I need to add some dynamically and when I do this outside of the page load they do nothing.

I included sample code to show you the problem with comments.

thanks for you help!

.NET 3.5

aspx

    <form id="form1" runat="server">  
    <div> 
    <asp:ScriptManager runat="server" ID="ScriptManager1" EnablePartialRendering="true" /> 
    <table class="style2">  
        <tr> 
            <td> 
                <asp:UpdatePanel ID="pnlSubMenu" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false" > 
                    <Triggers> 
                        <asp:AsyncPostBackTrigger ControlID="btnAJAX_Search" EventName="Click" /> 
                    </Triggers> 
                </asp:UpdatePanel> 
            </td> 
            <td align="right">  
                <%--Will hide this button to initiate call to pnlSubMenu later when it is working--%> 
                <asp:Button ID="btnAJAX_Search" runat="server" OnClick="btnAJAX_Search_Click" Text="AJAX Add Search" /> 
            </td> 
        </tr> 
    </table> 
      
    <script type="text/javascript">  
        function Update_pnlSubMenu()  
        {  
           __doPostBack("<%= btnAJAX_Search.ClientID %>","");  
        }  
    </script> 
 
    <table class="style1">  
        <tr> 
            <td>&nbsp;</td> 
            <td class="centerme">Center Windows Here</td> 
            <td>&nbsp;</td> 
        </tr> 
    </table> 
      
    <telerik:RadWindowManager ID="RadWindowManager1" Skin="Office2007" runat="server"   
            Modal="true" Animation="Resize" VisibleStatusbar="true">  
    </telerik:RadWindowManager> 
 
    </div> 
    </form> 

C#  aspx.cs

using System;  
using System.Collections;  
using System.Configuration;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
 
using Telerik.Web.UI;  
 
namespace TestPage  
{  
    public partial class RadTest : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            //If I uncomment this out and I allow the buttons to be loaded on page load then it works  
            //I want to use ajax to initiate when this, plus since this is dynamic I do not want to use visibleonload  
 
            //BuildSubMenu();   
        }  
 
        protected void BuildSubMenu()  
        {  
            string[] urls = new string[] { "http://www.google.com""http://www.farelogix.com""http://www.telerik.com" };  
 
            pnlSubMenu.ContentTemplateContainer.Controls.Clear();//Clear them and readd for this demo purpose  
            RadWindowManager1.Windows.Clear();//Clear them and readd for this demo purpose  
 
            for (int i = 1; i < 4; i++)  
            {  
                Button Btn = new Button();  
                Btn.ID = "Search" + i;  
                Btn.Text = "Search " + i;  
 
                pnlSubMenu.ContentTemplateContainer.Controls.Add(Btn);  
 
                RadWindow radWin = new RadWindow();  
                radWin.ID = "RadWinID" + i;  
                radWin.OpenerElementID = "Search" + i;  
                radWin.NavigateUrl = urls[i-1];  
 
                RadWindowManager1.Windows.Add(radWin);  
            }  
        }  
 
        protected void btnAJAX_Search_Click(object sender, EventArgs e)  
        {  
            BuildSubMenu();  
        }  
    }  
}  
 

BCTCGS
Top achievements
Rank 1
 answered on 13 Aug 2008
1 answer
64 views
Hello,

I am trying to create a webpart using the ASP.Net Ajax Radeditor control. My requirement is, I want a webpart which will have multiple RTF editors (to mimic a form).

I was not able to get RadEditor control rendered inside a webpart on the sharepoint page.

My question is
1. Is it possible to have this control rendered inside the webpart so that it can be shown in Sharepoint?
2. Are there any specific steps that we need to follow for getting it rendered?

Thanks

Regards,
Amit Bajaj
George
Telerik team
 answered on 13 Aug 2008
6 answers
227 views
Hi,

I'm setting my image path locations dynamically in code.
I create a folder according to the current month and year and set it as my UploadPath. and set the root of the folder i create as the Image and Delete paths.

The problem is that i can upload to the directory specified but i cannot navigate to the directory I set as the Image path. So if my upload path is \images\2008\07 i am only able to navigate to the 2008 folder. The paths are located in another virtual directory in my localhost.
I'm currently using RadEditor Ver 7.0.0.0
Please see code below:

        string[] path = { ConfigurationManager.AppSettings["ImageAssets"] }; 
        string[] dir = { Server.MapPath(path[0]) + "\\" + DateTime.Now.Year.ToString() + "\\" + DateTime.Now.ToString("MM") }; 
        if (!System.IO.Directory.Exists(dir[0])) 
        { 
            System.IO.Directory.CreateDirectory(dir[0]); 
        } 
        FullTextEditor.ImagesPaths = path; 
        FullTextEditor.DeleteImagesPaths = path; 
        path[0] = path[0]+ "\\" + DateTime.Now.Year.ToString() + "\\" + DateTime.Now.ToString("MM"); 
        FullTextEditor.UploadImagesPaths = path; 

George
Telerik team
 answered on 13 Aug 2008
2 answers
240 views
I've checked out some of the other posts and examples to accomplish this, but I'm not sure if I'm on the right track.

Here's what I'm trying to do:

Basic grid with 3 columns and multiple rows (here's the layout I'm trying to create, minus the RSS icon and "voice mail") - http://tmeister.iweb.bsu.edu/bsumessagecenter/

By default, the entire grid should be editable on load (except for the category name).  The user would then check the boxes for the category he/she would like to subscribe to.  On clicking the "update preferences" button, I would (on the server-side) process each box and insert that selection in the database.

How can I use a standard button (asp:Button) to loop through each row and access the items within that row to detemine whether or not the box is checked? 

I tried the <radG:GridClientSelectColumn ItemStyle-Width="40" /> but that didn't exactly meet my needs (couldn't have discrete selections per row).  I've also tried in the event handler for the button looping through each item:

foreach (GridItem Item in rgCategorySubscriptionList.MasterTableView.OwnerGrid.Items)

{

if (Item.Selected)
{
// test to see if the item is selected
Response.Write(
Convert.ToInt32(Item.OwnerTableView.DataKeyValues[Item.ItemIndex]["CategoryID"].ToString()));
}
}

But I'm not sure that I'm getting the info that I need with this...

Any suggestions would be greatly appreciated!

Thank you,
Kyle Parker

Kyle Parker
Top achievements
Rank 1
 answered on 13 Aug 2008
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?