Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
214 views
Hi there,

I'm using rad menu to me website. All menu items are from links table of access database and I create my own menu skin. I set flow vertical but I could not fix the main menu width. It appears the width is adjusted according to the ment text. 

Part of my style code of menu as following:
 

.RadMenu_IntegraTire
{
 padding:10 10px;
 width:100%;
}

.RadMenu_IntegraTire .link
{
 background:#DCDCDB;
 text-decoration:none;
 text-align:left;
 font-family:Lucida,Arial,sans-serif;
 line-height:20px;
 color:#6C6C6C;
 letter-spacing:-0.05em;
 border-bottom:solid 2px #ffffff;
}

I tried give .RadMenu_IntegraTire width 200px but it doesn't work. The website address is http://www.integratire.com.ds498.alentus.com/ for your reference.

Any idea about it? Thanks so much for your response.

Sally

Sally
Top achievements
Rank 1
 answered on 09 Feb 2009
2 answers
116 views
Can't seem to get this functionality to work for ContextMenu.


 

<%@ Page Language="C#" AutoEventWireup="true"  %> 
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI"  %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
             <telerik:RadContextMenu ID="RadMenu1" runat="server" Skin="Outlook" Flow="Horizontal" EnableAutoScroll="true" EnableScreenBoundaryDetection="true" ExpandAnimation-Type="None" ExpandAnimation-Duration="0">  
             <Targets> 
                <telerik:ContextMenuDocumentTarget /> 
             </Targets> 
             <Items> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
                <telerik:RadMenuItem Text = "Menu Item"></telerik:RadMenuItem> 
             </Items> 
            </telerik:RadContextMenu> 
        </div> 
    </form> 
</body> 
</html> 
 

 

 

 

Dave
Top achievements
Rank 1
 answered on 09 Feb 2009
1 answer
169 views


We are using the RadEditor for composing email in one of our applications. While most of the times, it works fine, we are encountering formatting issues when the user tries to copy formatted text from multiple sources (websites, word document, excel spreadsheet) into a single email.

·         A user may copy/paste information from a Web site, then from a Word document, then from Excel, and then from another e-mail all into application to compose their email. Formatting looks great prior to sending, but after sending font can change to a different color (red) and additional line breaks are added.

·         Often times users will copy/paste data from a source (Web site, Word, etc) into notepad to strip html tags or formatting, then paste into the editor. But formatting is still altered after sending mail from the application.

We are not modifying the text that we get from the Editor, yet, the formatting changes.

Does anyone have any ideas around this?

Rumen
Telerik team
 answered on 09 Feb 2009
1 answer
53 views
Hi
I need upload in a different domain.
Lets say that I have a website called A where is the upload control, when the upload is submitted the file should be uploaded in a server B.
Server A and server B they have different IP as well but both managed by me.
 is it possible ? any idea ? some code available (c#) ?
Atanas Korchev
Telerik team
 answered on 09 Feb 2009
1 answer
102 views
Hi,
I implemented your LoadOnDemand demo project in my current project. It works fine for a small set of results. But due to the client side script "OnClientItemsRequesting" the demo fetches ALL results (search string is set empty!) when scrolling down to the next results. You can't see it in the demo, because there are less than 10 similar records searchable.

In my project I use a client side variable to save the last typed text:

<script type="text/javascript"> 
    var typedText = ""; 
     
    function OnClientItemsRequesting(sender, e) { 
        var context = e.get_context(); 
        if (!sender.get_appendItems()) typedText = e.get_text(); 
        context["FilterString"] = typedText; 
    } 
</script> 

Now I want to enable this code for multiple ComboBoxes. Is there an easy way to save the variable typedText with a single ComboBox?

Or more simple: Is there a way to get the last user-typed-text? If I use e.get_text() even if get_appendItems is true, the first marked text is returned and not the user typed search text.
Simon
Telerik team
 answered on 09 Feb 2009
5 answers
159 views
Hello...

No matter what I do, I cannot get the ClearSelection client side method to work.

I keep getting a JScript error.

I have tried every way possible to get this to work including hard coding the full ID.

To make things worse, the combo box is inside of a Radgrid.

Can somebody please give a suggestion..

Matthew..
Veselin Vasilev
Telerik team
 answered on 09 Feb 2009
1 answer
114 views
Hi,

I've got a radgrid linked to a LINQDatasource. I have allowed automoatic update,delete and insert. Taken off autogenerate columns.
Everything was working fine, then my superior wanted the text box longer for one column so i created this column
            <telerik:GridTemplateColumn HeaderText="WebsiteUrl" 
                DataType="System.String" UniqueName="WebsiteUrl" DataField="tblWebsite.WebsiteUrl" > 
                    <EditItemTemplate> 
                        <asp:TextBox ID="TextBoxWebsiteUrl" runat="server"  
                            Text='<%# Eval("WebsiteUrl") %>' Width="275px" 
                             
                            >                             
                            </asp:TextBox> 
                    </EditItemTemplate> 
                     
                    <ItemTemplate> 
                         
                        <asp:Label ID="LabelWebsiteUrl" runat="server" Text= <%#Eval("WebsiteUrl")%>> </asp:Label> 
                         
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>   
Now when i want to do an INSERT i get this error.
Website cannot be inserted. Reason: Cannot insert the value NULL into column 'WebsiteUrl', table 'cknetispservices.dbo.tblWebsite'; column does not allow nulls. INSERT fails. The statement has been terminated.

Please help.
D


Sebastian
Telerik team
 answered on 09 Feb 2009
1 answer
106 views
Hi,

I am using LoadOnDemand and an XML file to load a RadTree. When I expand a particular node only the first two of six children are rendered. 

This is the offending piece of XML ...

<Member Name="Long Service Lve - Cash Equivalent" Value="[FTE Type].[FTE Type].&amp;[LSVCEQ]" Level="4">
            <Member Name="LSL Corp Off LS &gt;150893" Value="[FTE Type].[FTE Type].&amp;[324]" Level="5" />
            <Member Name="LSL Corp Off LS 'B'&lt;Aug78" Value="[FTE Type].[FTE Type].&amp;[322]" Level="5" />
            <Member Name="LSL Corp Off LS'A'&lt;160893" Value="[FTE Type].[FTE Type].&amp;[323]" Level="5" />
            <Member Name="LSL Lump Sum 'A' &lt;160893" Value="[FTE Type].[FTE Type].&amp;[311]" Level="5" />
            <Member Name="LSL Lump Sum 'B' &lt;Aug78" Value="[FTE Type].[FTE Type].&amp;[310]" Level="5" />
            <Member Name="LSL Lump Sum &gt;150893" Value="[FTE Type].[FTE Type].&amp;[312]" Level="5" />
          </Member>

After some fiddling I noticed the problem disapeared when I added a space between '&lt;' and 'Aug78' in the Name attribute value. When I did this to the second child then I got five children rendered. When I also did it to the fifth child then all children were rendered.

So the problem seems to be '&lt;' immediately followed by a letter. If it is followed by a number then there is no problem.

Seems this is all valid XML so maybe it's a problem with the way the tree renders?

Any advice appreciated.

Thanks.

Darryl 
Simon
Telerik team
 answered on 09 Feb 2009
7 answers
407 views
I have a couple of issues using the Image Manager in the current release (Q1 2008).

1. I have implemented a custom ImageContentProvider.  Everything works fine with it except that the Delete button is always disabled in the Image Manager.  This same provider works fine in the older RadControls for ASP.NET.  I have the DeletePaths = "." for the ImageManager (same as was used before).  This is also the same value I have for ViewPaths and UploadPaths both of which work fine.  How can I get the Delete button to be enabled?

2.  Our custom image provider stored the images in a database without any folder structure.  Is there anyway to disable/remove the Create Folder button and the ".." in the images list?  It would certainly be nice as these are of no value in our system.

3. In the current relase, the Image Alt Text box in the Image Manager is half hidden using certains skins.  Just one example of this is the Vista skin.

Any help with these would be appreciated.  Thanks.

Jim
Rumen
Telerik team
 answered on 09 Feb 2009
1 answer
148 views
Hi,

I have a RadSpell button on my form where I want to spell check the contents of a RadEditor (Version=2008.3.1125.20).
I've set the ControlToCheck value as a RadEditor. However, when I click on the spell check button, the Spell checker checks the spelling of the editor itself, rather than the content of the editor.

        <telerik:radeditor runat="server" id="txtMsg" Language="en-GB" ToolsFile="~/XMLData/ToolsFile.xml">
        </telerik:radeditor>
         <telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="txtMsg"  />

I want to have the RadSpell button outside the editor so that I can add a SpellCheckValidator.

How do I check the content, rather than the object itself?

Thanks.

Richard


Rumen
Telerik team
 answered on 09 Feb 2009
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?