Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
127 views
Hello,

For some reason, in IE 7 and IE 9's version of IE 7 both cutoff the select button for the file upload.  Does anybody know why, or what I can do to identify the problem?  I've attached a picture.  It is the standard theme ( believe Office 2007).

Thanks.
Becky
Top achievements
Rank 1
 answered on 16 Mar 2012
11 answers
251 views
When my user opts to send Plain Text mail, I want to disable all of the toolbar buttons on the ribbonbar with the exception of the Spell Check and Help buttons.

My Tools file is defined like this ...
<?xml version="1.0" encoding="utf-8" ?>
<root>
    <tools name="Clipboard">
        <tool name="PasteStrip" size="large"/>
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C"/>
    </tools>
    <tools name="Basic Text">
        <tool name="FontName" shortcut="CTRL+SHIFT+F"/>
        <tool name="RealFontSize" shortcut="CTRL+SHIFT+P" width="80px"/>
        <tool name="ConvertToLower" strip="FontDropDowns" />
        <tool name="ConvertToUpper" strip="FontDropDowns" />
        <tool name="Bold" strip="FontBasicTools" shortcut="CTRL+B"/>
        <tool name="Italic" strip="FontBasicTools" shortcut="CTRL+I"/>
        <tool name="Underline" strip="FontBasicTools" shortcut="CTRL+U"/>
        <tool name="ForeColor" strip="FontBasicTools"/>
        <tool name="BackColor" strip="FontBasicTools"/>
        <tool name="Indent" strip="Indention"/>
        <tool name="Outdent" strip="Indention"/>
        <tool name="JustifyLeft" strip="Align"/>
        <tool name="JustifyCenter" strip="Align"/>
        <tool name="JustifyRight" strip="Align"/>
        <tool name="InsertParagraph" shortcut="CTRL+M" strip="other"/>
        <tool name="ToggleTableBorder" strip="other"/>
    </tools>
    <tools name="Include">
        <tool name="LinkManager" shortcut="CTRL+K" strip="EditingTools3"/>
        <tool name="Unlink" shortcut="CTRL+SHIFT+K" strip="EditingTools3"/>
        <tool name="InsertUnorderedList" strip="Lists"/>
        <tool name="InsertOrderedList" strip="Lists"/>
        <tool name="InsertDate" />
        <tool name="InsertTime" />
        <tool name="InsertHorizontalRule" />
        <tool name="InsertTable" />
        <tool name="InsertSymbol"  />
    </tools>
    <tools name="Proofing">
        <tool name="AjaxSpellCheck" size="large" showtext="false"/>
    </tools>
    <tools name="Help">
        <tool name="Help" showtext="false" size="large"/>
    </tools>
</root>

So, I'm doing this ...
foreach (EditorToolGroup toolGroup in Editor.Tools)
{
    if (new List<string> { "Clipboard", "Basic Text", "Include" }.Contains(toolGroup.Tag))
    {
        foreach (EditorToolBase tool in toolGroup.Tools)
        {
            if (tool is EditorTool)
            {
                (tool as EditorTool).Enabled = isHtmlMail;
            }
        }
    }
}
This doesn't work.

Well, none of the tools are disabled except RealFontSize and InsertSymbol and event then, the highligh still appears when you haver over InsertSymbol, it just does nothing when you click on it.

--
Stuart



Rumen
Telerik team
 answered on 16 Mar 2012
1 answer
45 views

we are using hierarchical grid of two level and having one details table and one master table and  master table  have less number of column compare to column of details table grid ..and i have face formatting problem when try to export record from nested grid..you can see screen shot of problem..please help me ????????????????????????????????

Daniel
Telerik team
 answered on 16 Mar 2012
1 answer
52 views
Hey guys,

I'm having some issues with the RadNodeInspector, it's been reported to us that our users can't edit the properties of the node with the keyboard, however using the mouse to click the increase/decrease spinner buttons seems to work, as well as the right click->paste.  I've tried disabling all the styles, still the same issue.  I haven't been able to catch any Javascript exceptions anywhere in any browser, so I don't think it's that either.   I've removed all client command scripts etc, still can't get it to work. 

Was wondering if anyone had seen anything similar, I'm a bit stuck on what to try next.

A video showing exactly what's happening 
http://www.youtube.com/watch?v=BJA_9VYTcr0 

<telerik:RadEditor ID="HTMLEditor"  EditModes="Design,Html"
                            Height="480px" Style="min-height: 480px;
                            min-width: 690px" runat="server" Skin="Office2007" EnableResize="true" ExternalDialogsPath="~/EditorDialogs"
                            ContentFilters="MakeUrlsAbsolute,ConvertToXhtml,IECleanAnchors,ConvertCharactersToEntities,FixEnclosingP,
                            FixUlBoldItalic,IndentHTMLContent,MozEmStrong,RemoveScripts">
                            <contextmenus>
                                <telerik:EditorContextMenu>
                                    <telerik:EditorTool Name="Cut" />
                                    <telerik:EditorTool Name="Copy" />
                                    <telerik:EditorTool Name="Paste" />
                                    <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                                    <telerik:EditorTool Name="PastePlainText" Text="Paste as Plain Text" />
                                    <telerik:EditorTool Name="PasteHtml" Text="Paste HTML" />
                                    <telerik:EditorTool Name="SelectAll" />
                                    <telerik:EditorTool Name="CampaignerInsertImage" Text="Insert Image..." />
                                    <telerik:EditorTool Name="LinkManager" Text="Edit Link..." ShowIcon="true" />
                                </telerik:EditorContextMenu>
                                <telerik:EditorContextMenu TagName="TD">
                                    <telerik:EditorTool Name="InsertRowAbove" />
                                    <telerik:EditorTool Name="InsertRowBelow" />
                                    <telerik:EditorTool Name="DeleteRow" />
                                    <telerik:EditorTool Name="InsertColumnLeft" />
                                    <telerik:EditorTool Name="InsertColumnRight" />
                                    <telerik:EditorTool Name="DeleteColumn" />
                                    <telerik:EditorTool Name="MergeColumns" />
                                    <telerik:EditorTool Name="MergeRows" />
                                    <telerik:EditorTool Name="SplitCell" />
                                    <telerik:EditorTool Name="SplitCellHorizontal" />
                                    <telerik:EditorTool Name="DeleteCell" />
                                    <telerik:EditorTool Name="SetCellProperties" />
                                    <telerik:EditorTool Name="SetTableProperties" />
                                </telerik:EditorContextMenu>
                                <telerik:EditorContextMenu TagName="A" Enabled="true">
                                    <telerik:EditorTool Name="LinkManager" Text="Edit Link..." />
                                    <telerik:EditorTool Name="Unlink" />
                                </telerik:EditorContextMenu>
                                <telerik:EditorContextMenu TagName="IMG" Enabled="true">
                                    <telerik:EditorTool Name="Cut" />
                                    <telerik:EditorTool Name="Copy" />
                                    <telerik:EditorTool Name="CampaignerInsertImage" Text="Replace Image..." />
                                    <telerik:EditorTool Name="CampaignerEditImage" Text="Edit Image..." />
                                    <telerik:EditorTool Name="SetImageProperties" />
                                </telerik:EditorContextMenu>
                            </contextmenus>
                            <modules>
                                <telerik:EditorModule Name="RadEditorStatistics"/>
                                <telerik:EditorModule Name="RadEditorDomInspector"/>
                                <telerik:EditorModule Name="RadEditorNodeInspector" Enabled="true" />
                                 
                            </modules>
                            <tools>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorTool Name="SaveDesign" Text="Save " ShowText="true" />
                                    <telerik:EditorTool Name="SaveAs" Text="Save As My Template" ShowText="false" ShowIcon="true" />
                                    <telerik:EditorTool Name="Print" />
                                    <telerik:EditorTool Name="AjaxSpellCheck" ShowIcon="true" Text="Spellchecker" />
                                    <telerik:EditorTool Name="SelectAll" />
                                    <telerik:EditorTool Name="FindAndReplace" ShowIcon="true" />
                                    <telerik:EditorSeparator Visible="true" />
                                    <telerik:EditorTool Name="Undo" ShowIcon="true" />
                                    <telerik:EditorTool Name="Redo" ShowIcon="true" />
                                    <telerik:EditorSeparator Visible="true" />
                                    <telerik:EditorTool Name="Cut" />
                                    <telerik:EditorTool Name="Copy" />
                                    <telerik:EditorToolStrip Name="CampaignerPasteToolStrip" PopupHeight="150">
                                        <telerik:EditorTool Name="Paste" Text="Paste" />
                                        <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                                        <telerik:EditorTool Name="PastePlainText" Text="Paste as Plain Text" />
                                        <telerik:EditorTool Name="PasteHtml" Text="Paste HTML" />
                                    </telerik:EditorToolStrip>
                                    <telerik:EditorSeparator Visible="true" />
                                    <telerik:EditorTool Name="CampaignerInsertImage" Text="Insert Image" />
                                    <telerik:EditorTool Name="CampaignerEditImage" Text="Edit Image..." Enabled="false" />
                                    <telerik:EditorTool Name="LinkManager" ShowIcon="true" Text="Insert Link" />
                                    <telerik:EditorTool Name="Unlink" ShowIcon="true" />
                                    <telerik:EditorTool Name="InsertHorizontalRule" ShowIcon="true" />
                                    <telerik:EditorTool Name="InsertParagraph" />
                                    <telerik:EditorTool Name="InsertSymbol" />
                                    <telerik:EditorTool Name="InsertTable" />
                                    <telerik:EditorSeparator Visible="true" />
                                    <telerik:EditorTool Name="ToggleScreenMode" Text="Full Screen" />
                                    <telerik:EditorTool Name="ModuleManager" Text="Show" ShowText="true" />
                                </telerik:EditorToolGroup>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorTool Name="FormatBlock" Text="Format Block" ShowIcon="true" />
                                    <telerik:EditorTool Name="FontName" Text="Font" />
                                    <telerik:EditorTool Name="RealFontSize" Text="Size" />
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Italic" Text="Italic" />
                                    <telerik:EditorTool Name="Underline" Text="Underline" ShowIcon="true" />
                                    <telerik:EditorTool Name="ForeColor" ShowIcon="true" />
                                    <telerik:EditorTool Name="BackColor" ShowIcon="true" />
                                    <telerik:EditorSeparator Visible="true" />
                                    <telerik:EditorTool Name="JustifyLeft" Text="Left" />
                                    <telerik:EditorTool Name="JustifyCenter" Text="Center" />
                                    <telerik:EditorTool Name="JustifyRight" Text="Right" />
                                    <telerik:EditorTool Name="JustifyFull" Text="Both" />
                                    <telerik:EditorTool Name="JustifyNone" Text="None" />
                                    <telerik:EditorSeparator Visible="true" />
                                    <telerik:EditorTool Name="InsertOrderedList" />
                                    <telerik:EditorTool Name="InsertUnorderedList" />
                                    <telerik:EditorTool Name="Indent" />
                                    <telerik:EditorTool Name="Outdent" />
                                    <telerik:EditorToolStrip Name="CampaignerClearToolstrip">
                                        <telerik:EditorTool Name="ClearHTML" Text="Clear All" />
                                        <telerik:EditorTool Name="StripAll" Text="Clear All Formatting" />
                                        <telerik:EditorTool Name="StripCss" Text="Clear Css Formatting" />
                                        <telerik:EditorTool Name="StripSpan" Text="Clear Span Elements" />
                                        <telerik:EditorTool Name="StripWord" Text="Clear Word Formatting" />
                                    </telerik:EditorToolStrip>
                                </telerik:EditorToolGroup>
                            </tools>
                            <content></content>
                        </telerik:RadEditor>
Rumen
Telerik team
 answered on 16 Mar 2012
3 answers
98 views
Hi,

           In my sharepoint project page I have a panelbar, a label, a radbutton. In the button click and panelbar item click  i have to postback tha page. In server side, I have written a code for getting the event argument  and set it into the label. In my page I have used RadAjaxManagerProxy for ajax operation. I have placed the radajaxmanager  in MasterPage. In the button click the label is successfully updated. My problem is that  in PanelBar Item click the page is postbacked but the label is not updated.

I have attached the code below
<telerik:RadScriptBlock ID="DemoScriptBlock" runat="server">
        <script type="text/javascript" language="javascript">
 
            function OnClientItemExpand(sender, args) {
 
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(args.get_item().get_value());
 
            }
 
 
            function OnButtonClick(sender, args) {
 
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(sender.get_text());
 
            }
 
        </script>
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManagerProxy ID="PanelbarDemoAjaxmanagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="uxProfileList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="uxProfileList" />
                </UpdatedControls>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="DemoButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoButton" />
                </UpdatedControls>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
     
    <telerik:RadPanelBar ID="uxProfileList" OnClientItemClicked="OnClientItemExpand"
        OnClientItemExpand="OnClientItemExpand" ExpandMode="FullExpandedItem" Width="100%"
        runat="server">
        <Items>
            <telerik:RadPanelItem runat="server" Text="Personal Info" Value="PersonalInfo" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Profile Info" Value="ProfileInfo" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Education" Value="Education" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="WorkExperience" Value="WorkExperience"
                Font-Bold="true">
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
 
    <asp:Label ID="DemoLabel" Text="Demo Label" runat="server"></asp:Label>
 
    
 
    <telerik:RadButton ID="DemoButton" Text="Demo Button" OnClientClicked="OnButtonClick" runat="server">
    </telerik:RadButton>

C#:

protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
                DemoLabel.Text = Request["__EVENTARGUMENT"].ToString();
             
        }

Thanks,
Velkumar.
Maria Ilieva
Telerik team
 answered on 16 Mar 2012
1 answer
106 views
I use RadMenu Control with Images (icons) from a table in the database and works fine. the problem is that every time I load a web page, the menu is reloaded and becomes very slow. 
Please can you help me resolve this issue. thanks 


Public Class Site1
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then

            'enlazo el control de menú al DataTable
            Me.RadMenuPrincipal.DataSource = CargarMenu()
            Me.RadMenuPrincipal.DataFieldID = "ID_MODULO"
            Me.RadMenuPrincipal.DataFieldParentID = "ID_MODULO_PADRE"
            Me.RadMenuPrincipal.DataTextField = "NOMBRE_MODULO"
            Me.RadMenuPrincipal.DataValueField = "ID_MODULO"
            Me.RadMenuPrincipal.DataNavigateUrlField = "LINK_PAGINA"

            Me.RadMenuPrincipal.DataBind()

        End If
    End Sub


    Private Sub RadMenuPrincipal_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadMenuPrincipal.ItemDataBound
        'Set additional properties. ToolTip for example:  
        Dim row As DataRowView = CType(e.Item.DataItem, DataRowView)
        e.Item.ToolTip = row("Tooltip").ToString()
        e.Item.ImageUrl = row("LINK_IMAGEN").ToString()
    End Sub
End Class
Kate
Telerik team
 answered on 16 Mar 2012
1 answer
88 views
Hi.  Has anyone experienced an issue when using Chrome and copying-pasting between RadEditors, the '&nbsp;' and '<br>' characters are inserted and the cursor automatically goes to the next line?

I've done google searches, and it does seem this is an issue with other applications.  But I couldn't find anything mentioning Telerik.

This issue doesn't happen in Firefox or IE; however, in Safari, even more HTML code is added then what appears when using Chrome.

Does anyone have any advice or suggestions on how to handle this?

Thanks!
Rumen
Telerik team
 answered on 16 Mar 2012
5 answers
91 views
Hi,
I'm having trouble finding and binding my ddl control server side - mainly falling at the first hurdle - I can't find the control!

Here's the inlineinserttemplate:

        <InlineInsertTemplate>
            <div id="InlineInsertTemplate" class="rsCustomAppointmentContainer technical">
                <div>
                </div>
                <span class="rsCustomAppointmentContainerInner">
                    <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="90%"
                        TextMode="MultiLine" Height="20px"></asp:TextBox>
                    <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">
                        Insert
                    </asp:LinkButton>
                    <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel">
                        Cancel
                    </asp:LinkButton>

                    <span class="inline-label">Type</span>
                    <asp:DropDownList ID="ddlActivityType" runat="server" DataValueField="activity_type_uniq" DataTextField="activity_type_name">
                    </asp:DropDownList>

                    <asp:LinkButton ID="InsertMoreButton" runat="server" CommandName="More" CssClass="rsAdvancedEditLink">Advanced</asp:LinkButton>
                </span>
            </div>
        </InlineInsertTemplate>

Can anyone help me with where to look and what event to look in?

Cheers!
Plamen
Telerik team
 answered on 16 Mar 2012
1 answer
67 views
Hi,
I have a radgrid, with EditMode as "PopUp". I want the Update and cancel Button to be of PushButton Type. But, when I set the ButtonType Property, It comes with default skin. But I want it to have a radButton skin. How to set it?
Thanks and Regards,
Deepika Karanth
Milena
Telerik team
 answered on 16 Mar 2012
1 answer
132 views
I need to set the toggle state via jQuery when an item is updated somewhere else on the page.
The class of the radbutton is "theRequiredButton" and the button has an attribute of "data-stepinstanceid" (there are multiple instances of this button on the page, and I use the data attribute to find this instance.
I use this to find the element:
var thebutton = $(".theRequiredButton[data-stepinstanceid='" + args + "']"); where args is the stepinstanceid of this particular button.
How do I now change the button's appearance, in effect, toggling it to the selected/unselected state?
I tried "$(thebutton).set_checked('true');, but this throws an error
Kevin
Top achievements
Rank 2
 answered on 16 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?