Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
196 views
All the other controls have EmptyMessage but I cannot find one in RadEditor...
Rumen
Telerik team
 answered on 14 Nov 2012
4 answers
467 views

Hi Team,

I am getting the following error while I open the page to edit the previously created contents.
Error while executing filter ConvertFontToSpanFilter - [object Error].
I tried the below code but still gets the same error.

 

ContentFilters

= "ConvertToXhtml, RemoveScripts,FixUlBoldItalic, IECleanAnchors, FixEnclosingP, MozEmStrong,ConvertFontToSpan, IndentHTMLContent, OptimizeSpans"

Regards,
Christy

Rumen
Telerik team
 answered on 14 Nov 2012
1 answer
102 views

I want to make the radfilter only update the radgrid when the apply buttom is press. not during the buliding of an expressions. I try to put radfilter under the RadAjaxmanager with the EventName="ApplyExpressions". Please see the code below

<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadFilter1" EventName="ApplyExpressions" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadFilter1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadFilter1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
         
 
                        <telerik:RadFilter ID="RadFilter1" runat="server" FilterContainerID="grid"
                            ExpressionPreviewPosition="Bottom"
                            onapplyexpressions="RadFilter1_ApplyExpressions" AllowFilterOnBlur="False" >
                        </telerik:RadFilter>
  
                    
              
                        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    
      </div>
    </form>
</body>
</html>

But it still update the radgrid when i build the expressions.

Angel Petrov
Telerik team
 answered on 14 Nov 2012
5 answers
390 views
Hi there! The RadEditor is amazing, just want to get that out of the way :) Was wondering if there is a way to get the Format Code Block Preview syntax highlight features enabled for the Source Code window in the editor. We want to make it so when you view the code you can view the syntax highlight and have it format the code properly? is that possible?

thanks
Rumen
Telerik team
 answered on 14 Nov 2012
3 answers
338 views
Hi,
I want to show the selected image as the preview, i have used below code but it is not working and tools.
i am using Visual Studio 2010 Premium,

<telerik:RadUpload ID="RadUpload1" runat="server" OnClientFileSelected="OnClientFileSelected" AllowedFileExtensions=".bmp,.jpeg,.jpg,.gif"  MaxFileSize="100000000"/>

<asp:Image id = "imgTheme"   runat="server" ClientIdMode = "Static"/>

<script type = "test/javascript">
function OnClientFileSelected(sender, args){
var image = document.getElementById("imgTheme");
image.src = args.get_fileInputField().value;
}
</script>

in java script i am able to get the image, i have shaw the image control in the alert. But when i saw image source in the alert it show the path "C:\\fakePath\imagefileName", and i am not uploading the image from the c drive.

Thanks
Plamen
Telerik team
 answered on 14 Nov 2012
4 answers
149 views
I have a RadGrid with a DetailTable in it.  When I expand a row in the MasterView to show the Detail, I want to change the detail row's Edit link text based on the data in the detail row.

For example if the row has col1="Blah", then I want the edit text to be "Edit Blah" instead of "Edit".

What's the easiest way to do this?
TechSavvySam
Top achievements
Rank 1
 answered on 14 Nov 2012
3 answers
127 views
Does asp.net ajax has something similar to silverlight RadTimeBar?

I need to display time and finished percentage task. ie, at what time, finished what percentage.

What is the right control for me to use in asp.net ajax?

Thanks
Plamen
Telerik team
 answered on 14 Nov 2012
3 answers
107 views
Hi,
I have a TreeView and RadGrid width drag and drop functionality (drag from TreeView  and drop to RadGird). To Detect which node is dropped on RadGrid, I have added a nodeDrop handler to TreeView. So When i drop a node on RadGrid, nodeDrop handler fires, but SourceDragNode and DraggedNodes of RadTreeNodeDragDropEventArgs  parameter are null. This happens just when I move TreeView and RadGrid to an UserControl.
What things may cause this issue?

I have checked my post data at client side, an it seems OK (dropped node index has correct value ).

any idea is appreciated.
Boyan Dimitrov
Telerik team
 answered on 14 Nov 2012
11 answers
439 views
Hi,

Using the RadFormDecorator (Q1 2008.1.619.20), setting the focus on any control on IE7 does not work but works as expected in Firefox.  Remove RadFormDecorator and IE7 works correctly.

<body> 
    <form id="form1" runat="server"
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons" 
        Skin="Sunset" /> 
    <AjaxToolKit:ToolkitScriptManager EnablePartialRendering="true" ID="ScriptManager1" 
        runat="server" CombineScripts="true" /> 
    <div> 
        <br /> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" MarkFirstMatch="true"
            <Items> 
                <telerik:RadComboBoxItem Value="" Text="" /> 
                <telerik:RadComboBoxItem Value="1" Text="1" /> 
                <telerik:RadComboBoxItem Value="2" Text="2" /> 
            </Items> 
        </telerik:RadComboBox> 
        <br /> 
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
        <asp:Button ID="button1" runat="server" Text="submit" CssClass="testx" /> 
    </div> 
    </form> 
</body> 

Protected Sub Page_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.PreRender 
        ScriptManager.GetCurrent(Page).SetFocus(RadComboBox1) 
    End Sub 

Is there any work around for this?
Thanks,
Khanh

Danail Vasilev
Telerik team
 answered on 14 Nov 2012
1 answer
98 views
All thumbnails are saved in .png format. How can I keep the original image's format on thumbnails? If I edit on a .jpg image, I want the thumbnail also to be a .jpg image.
This is what I have tried with no success:
protected void RadImageEditor1_ImageSaving(object sender, ImageEditorSavingEventArgs args)
{
    var thumbImage = args.Image.Clone();
    var pathToThumbs = "~/Filarkiv/thumb/";
    thumbImage.Resize(96, 96);
 
    var ms = new MemoryStream();
    thumbImage.Image.Save(ms, args.Image.RawFormat);
    File.WriteAllBytes(String.Format("{0}{1}.{2}", MapPath(pathToThumbs), args.FileName, args.Image.Format), byte[])ms.ToArray());
}


Roy
Roy Halvorsen
Top achievements
Rank 1
 answered on 14 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?