Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hi
(sorry, the title should probably have been using RAD to edit in page layouts)

I'm using CMS part in MOSS and have deployed the solution and enabled the two features that replaces the built in editor with the RAD editor.

I have a content type (let's call it: "newspage").

It has a site column called "bodytext". The definition of that field in the deployment package is the following:

<

Field Type="HTML" DisplayName="Body Text" RichText="TRUE" RichTextMode="FullHtml" Required="FALSE" Group="My columns" ID="{6bff35d5-a40b-45d2-9fa9-ffc9ce86203d}" StaticName="bodytext" Name="bodytext"></Field>


Pretty basic stuff. I can now put in conent through either the "front end" (simply viewing the site and pressing "Edit" on the page) or "back end" (though the "Manage Content and Structure" and edit the list item directly).

Whenever I edit the list item directly through the "Manage Content and Structure" everything works fine, but whenever I try to edit the content directly in the page (using my page layout) and put more than 255 characters into it, I get the validation error: "This field can have no more than 255 characters".

To sum up:
- My field builds on the "HTML" field
- I've installed the solution and activated the feature
- The stuff works when editing the list item directly
- The stuff DOESN'T work when I edit through the page layout and have more than 255 characters.

So can you tell me if I'm doing something wrong or if your fieldcontrol is buggy?

Cheers
Rasmus
Rasmus
Top achievements
Rank 1
 answered on 15 Jul 2008
1 answer
115 views
Anyone know how  to make a Context menu show on top of a tooltip. Basicly I need to show a sticky tooltip which contains a multiline textbox. Then I would like to right click and show the context menu and choose copy. I can't seem to set the context on top of sticky tooltip. Thanks.
Yana
Telerik team
 answered on 15 Jul 2008
1 answer
137 views
Hi,

i am using radgrid aith ajax.i need to export the grid fields into one excel.

i have used exporttoexcel feature.it works fine.

now my question, is there a way to append the data into an existing excel sheet.

pls tell me how to append the data?


thanks,
Vlad
Telerik team
 answered on 15 Jul 2008
1 answer
177 views
Hi,

Here is the scenario:
The page contains:
- RadGrid
- RadCalendar
- RadScheduler
- RadAjaxManager
- RadToolTipManager

The basic logic / desired result:
- When click on Calendar, it will refresh the RadGrid based on date selected as well as refreshing the RadScheduler.
- When RadScheduler is updated/inserted, the RadCalendar special days is rendered.
- When mouse is over the RadGrid, Tooltip is shown.

Here what I did:
- attached the RadAjaxManager on RadCalendar, RadGrid and RadScheduler.
- Set the RadToolTipManager on RadGrid item created only.

Problem:
- When the page is loaded for the first time and the RadGrid is empty for the current date (todays date). There is no tooltip shown, which is perfect. BUT, when I selected other dates that contains data for the RadGrid, the tooltip is not shown at all.

On the other hand, if the RadGrid is contains data on the first load, the tooltip is working fine all the way down. No problem found. Problem only found when the RadGrid was empty and RadCalendar changes to show the data in the RadGrid where ToolTip does not work anymore.

I have found the problem but unable to solve it.

Here is the main problem found:
To show the tooltip on RadGrid when RadCalendar selected date is changed, I have to turn off the "EnableAjax" property (EnableAjax="False") on the RadAjaxManager.
But, if I turn off the "EnableAjax" property, I wont be able to edit RadScheduler and refresh the other controls.

Any help would be appreciated.

Thanks.

Georgi Tunev
Telerik team
 answered on 15 Jul 2008
13 answers
496 views
Hi,

I use custom paging and custom filtering as it is shown in this demo:
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/CustomPaging/DefaultCS.aspx

But as you can see in the demo the filter is case-sensitive. Is there any way to change that to case-insensitive??

Best regards
Sebastian
Vlad
Telerik team
 answered on 15 Jul 2008
10 answers
241 views
Create a page with a textbox and a button on it. Add an OnClick event to the button.

Run the page.

Type something in the textbox and hit return. The browser reacts as if the button had been pressed and the server event fires.

This is, as I understand it, the way things are supposed to work.

Now, add a FormDecorator to the form. And run the test again.

In Firefox the page continues to work the way you would expect. In IE7 (I'm not able to test IE6) hitting return does nothing (except cause a beep). This happens whether or not the FormDecorator is actually configured to decorate the button control; all that's necessary for the functionality to fail is for the FormDecorator to be on the page.

Once again, I'm getting grief for this. Is there a workaround for this problem (other than removing the FormDecorator control)?

--
Stuart
Georgi Tunev
Telerik team
 answered on 15 Jul 2008
1 answer
136 views
My project use RadControls_Q4_2006_SP2_dev.

I would like to use RadControls_for_ASP.NET_AJAX_2008_1_619 instead into this existing project.
 
I have some problems using RadTreeView. I don't find the method radtreeview.IsCallBack.

The name of the method has change ?

Thanks in advance.
Atanas Korchev
Telerik team
 answered on 15 Jul 2008
1 answer
253 views
Monday morning my project doesnt compile any longer. Does anyone has an idea? The mentioned message is below. Version number mentioned here is exat the same as in web.config

I have already uninstalled the Telerik tools and downloaded latest version and reloaded the controls and recompiled but no succes.

I also reregistered the assembly by copying the /bin35/Telerik.Web.UI.dll to the /WINDOWS/assembly directory.

I am lost.


Error in: http://pc165/login/LoginDialog.aspx
Error Message: Kan bestand of assembly Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4 of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de gevonden assembly komt niet overeen met de assembly-verwijzing. (Uitzondering van HRESULT: 0x80131040)
Stack Trace:
bij System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) bij System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) bij System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) bij System.Type.GetType(String typeName) bij Telerik.Web.UI.WebResource.Exists(String path, String applicationPath) bij Telerik.Web.UI.RadScriptManager.OnPreRender(EventArgs e) bij System.Web.UI.Control.PreRenderRecursiveInternal() bij System.Web.UI.Control.PreRenderRecursiveInternal() bij System.Web.UI.Control.PreRenderRecursiveInternal() bij System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Vlad
Telerik team
 answered on 15 Jul 2008
1 answer
114 views
Hi,

I have a small problem -which may seem like a normal everyday thing for the gurus here at the forum- but I just cannot get over it.

Here is the scenario I am trying to achieve. I have a master page with a login area on the top and a main content. The login area has two states :
1/ displaying the login form
2/ displaying the user name

If the username is invalid (currently set to check if the username is "user") then I display a Tooltip. If it is valid I change the visibility of a Panel to display the userpanel. This part works more or less.

Once the user has logged in the inner content will display two buttons. One should display an alert after it is pressed and its operations are complete (not using onclick since I need to process the data, I just set a boolean to force it to appear).

The second button should display a tooltip after its operations are successful.

The problem is the following:
1/ The alert NEVER appears! I tried using the InjectScript example in one of the previous posts. The code is inserted but is
never displayed. I added the RadWindowManager and everything but to no avail.
2/ The tooltip is displayed but only as a hover effect over the button. After the postback the text is changed as per the code BUT it still gets displayed as a hover. The tooltip should only appear once and not appear after hovering.

Can someone please sort this problem out since it has been causing me alot of headaches. I read somewhere that using masterpages and panels/ajax is not the way to go, but then in these situations how do you solve the standard login architecture (where the user can change his username without reposting the whole site)

I have attached a stripped down demo project with the problems layed out.

Please help me,

Thanks,
Miklos Kalman

Since I couldn't attach the project here are the files one by one:


MainPage.Master:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MainPage.master.cs" Inherits="TestLoginTelerik.MainPage" %> 
 
<%@ 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>Untitled Page</title> 
    <asp:ContentPlaceHolder ID="head" runat="server"> 
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px"> 
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
     
     
     
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"> 
        </telerik:RadToolTipManager> 
         
         
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" skin="Vista"> 
        </telerik:RadWindowManager> 
         
        <asp:Panel ID="LoginPanel" runat="server"> 
         
        <table> 
        <tr> 
        <td>[HEADER]</td> 
        <td> 
            <asp:Label ID="Label1" runat="server" Text="Username"></asp:Label> <telerik:RadTextBox ID="LoginName" runat="server"> 
            </telerik:RadTextBox> 
         
            <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlId="LoginName" 
             Position="MiddleRight" 
             Text="Error text goes here "/> 
         
        <asp:Button ID="LoginBtn" runat="server" Text="Login"  
                onclick="LoginBtn_Click" /> 
        </td> 
        </tr> 
        </table> 
         
        </asp:Panel> 
        <asp:Panel ID="UserPanel" runat="server"> 
            <asp:Label ID="UserMessage" runat="server" Text="Label"></asp:Label> 
        </asp:Panel> 
        <br /> 
        ========================================================= 
        <br /> 
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> 
         
        </asp:ContentPlaceHolder> 
        <br /> 
        ========================================================== 
        <br /> 
        [FOOTER] 
        <br /> 
    </div> 
     
    </form> 
</body> 
</html> 
 


----------------------
MainPage.Master.cs:
using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
 
namespace TestLoginTelerik 
{ 
    public partial class MainPage : System.Web.UI.MasterPage 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
           
            if (Session["logged_in"] != null) 
            { 
                string val = (string)Session["logged_in"]; 
                if (val.Equals("yes")) 
                { 
                    
                    UserPanel.Visible = true; 
                    LoginPanel.Visible = false; 
                    string name = (string)Session["user_name"]; 
                    UserMessage.Text = "Welcome " + name; 
                    return; 
                } 
 
 
            } 
 
            UserPanel.Visible = false; 
            LoginPanel.Visible = true; 
 
            
        } 
 
        protected void LoginBtn_Click(object sender, EventArgs e) 
        { 
             
 
            
             
             
                if (LoginName.Text == "user") 
                { 
                    UserPanel.Visible = true; 
                    LoginPanel.Visible = false; 
                    UserMessage.Text = "Welcome " + LoginName.Text; 
                    Session["logged_in"] = "yes"; 
                    Session["user_name"] = LoginName.Text; 
                    Response.Redirect("~/Default.aspx"); 
                } 
                else 
                { 
                    //display a tooltip over the LoginName field 
                    RadToolTip1.Text = "Error!"; 
                    RadToolTip1.Show(); 
                } 
             
        } 
    } 
} 
 


-----------------------
Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestLoginTelerik._Default" MasterPageFile="~/MainPage.Master"%> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ContentPlaceHolderID="head" runat="server"> 
</asp:Content> 
 
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> 
    </telerik:RadWindowManager> 
 
<br /> 
DEFAULT CONTENT<br /> 
    <asp:Panel ID="ContentPanel" runat="server"> 
        <asp:Button ID="Button1" runat="server" Text="Button Displaying Alert"  
            onclick="Button1_Click" /> 
             
             
        <asp:Button ID="Button2" runat="server" Text="Button Displaying Tooltip"  
            onclick="Button2_Click" /> 
            <telerik:RadToolTip ID="RadToolTip2" runat="server" TargetControlId="Button2" 
             Position="MiddleRight" 
             Text="Error text goes here" 
             VisibleOnPageLoad="false" > 
            </telerik:RadToolTip> 
             
            <asp:Literal ID="InjectScript" runat="server"></asp:Literal> 
    </asp:Panel> 
</asp:Content> 



-----------------------
Default.aspx.cs:
using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
 
namespace TestLoginTelerik 
{ 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (Session["logged_in"] != null) 
            { 
                string val = (string)Session["logged_in"]; 
                if (val.Equals("yes")) 
                { 
                    ContentPanel.Visible = true; 
                }else 
                    ContentPanel.Visible = false; 
            }else 
                ContentPanel.Visible = false; 
 
        } 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            bool operationcomplete = false; //emulation to make sure the alert appears 
 
            //.... process operation and set the operationcomplete variable 
 
            if (!operationcomplete) 
            { 
                string strMsg = "radalert('Operation failed!', 330, 100);"; 
                InjectScript.Text = "<script>" + strMsg + "</" + "script>"; 
            } 
 
        } 
 
        protected void Button2_Click(object sender, EventArgs e) 
        { 
             bool operationcomplete = false; //emulation to make sure the alert appears 
 
            //.... process operation and set the operationcomplete variable 
 
             if (!operationcomplete) 
             { 
                 RadToolTip2.Text = "Button Click"; 
                 RadToolTip2.Show(); 
             } 
        } 
    } 
} 
 




Georgi Tunev
Telerik team
 answered on 15 Jul 2008
5 answers
251 views
hi!

i read about this error in many threads and tried all solutions:

  • add the http handler
  • ajax enable the website
  • copy the handler to the 'system.webserver' section for iis7

none of this works....

i have no forms or other authentication on the site...

especially the 'iis7 troubleshoot' information does not work at all: if i add the handler to both 'system.web' and 'system.webserver' the application won't start at all - if i remove it from 'system.web' i get the error to add it....

pleeeeease could anyone help? i'm getting crazy here!

by the way, using the 'scripmanager' from the .net framework at least brings up a page for me.... what am i missing?

thank you very much!
reinold
max
Top achievements
Rank 1
 answered on 15 Jul 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?