Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
Hi, I'm having a problem with RadListView.
In my EditTemplate i have some validation Controls. When i submit data with invalid fields the validation occurs so everything is ok. The problem is when the fields are all validated and the data is submited. I get an error: Invalid JSON Primitive. Any clue?

Some extra info:
  - the ListView is in an UserControl loaded dynamically.
  - It works ok without the validation controls.

thanks in advance.
Fred
Top achievements
Rank 1
 answered on 16 Mar 2012
2 answers
175 views
I am using the RadSpell with an MVC web application. The buttons at the side and bottom are cut off in both IE and Firefox.  How can I change the width and height of the rad spell window?

Jillian
Top achievements
Rank 1
 answered on 16 Mar 2012
3 answers
265 views
Hi,
      I am getting the follwing error while exporting PDF file. I used the following formatted text in grid "Workers Compensation Information[binary]"  in one of the column.I assume the error mainly comes due to using non unicode character. So i would like to know how to avoid the following error and also how to replace the appropriate character symbols with matching text. Since i am using lot of symbol related characters it would be more helpful to me to track error.

My error message is:

Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
Reference to undeclared entity 'W'. Line 2004, position 75.
at line:
Louisiana Workers' Compensation Notice (B&W; English)<i>[binary]</i>

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Telerik.Web.UI.Grid.Export.GridPdfExportException: Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
Reference to undeclared entity 'W'. Line 2004, position 75.
at line:
Louisiana Workers' Compensation Notice (B&W; English)<i>[binary]</i>


-Thanks

Daniel
Telerik team
 answered on 16 Mar 2012
1 answer
207 views

Team

I am using radcombobox in my application.

I am using it to implement search functionality. whenever we type something in combobox the resulting items is getting displayed in the combo list properly

& when result is not there it should display “no result found” & should give a link to a page which is used to add the items in that combobox.This I have added in the list of items .It is working.(attached is the screenshot for this requirement img.)

For this I am using OnItemsRequested event.

I have a requirement to show text of items in bold which I am typing in combobox. (attached is the screenshot for this requirement1 img.)
This feature is working when I set Filter ="Contains" but for displaying “no result found” & should give a link to a page which is used to add the items in that combobox requirement I can’t set this property. If I set this property it won’t show “no result found” & link .

I have tried to set it by <b> tab but it shows <b> tag as it is in item text.

Is there another way to show the combobox typed text part of items in bold?

Ivana
Telerik team
 answered on 16 Mar 2012
6 answers
170 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
298 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
64 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
102 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
120 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
144 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
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?