Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
173 views
hi,
I am inserting html code in HTML mode of RadEditor  when switch to design mode from HTML mode, Design button displaying as disabled.
This issue exist only in Chrome.Observe attach image.
Any Help?

i am inserting follwoing code in html mode
<html>
<body>
Empty Content
</body>
</html>


Regards
Anwar
Rumen
Telerik team
 answered on 06 Feb 2013
9 answers
444 views
Hi,

I have 2 radnumerictextboxes and on tabbing out of each of them I need to do some javascript calculations and populate a third radtextbox. Onblur of the first 2 fields I am able to call the javascript function and calculate. But the result is not getting populated in 3rd box till I place cursor in 3rd textbox and this is not what I want.

Any pointers in this regard will help.

Regards,
Brindavan
Vasil
Telerik team
 answered on 06 Feb 2013
3 answers
95 views
When i initially load my grid everything works properly. After i change the pagesize or change the page index i can NO longer select any rows. 

<telerik:RadGrid ID="UserGrid" runat="server" AllowSorting="true" AllowPaging="true" AllowCustomPaging="true" AllowMultiRowSelection="true"
        OnItemDataBound="Grid_ItemDataBound"  OnSortCommand="Grid_Sorting" OnPageIndexChanged="Grid_Paging" OnDeleteCommand="Grid_Deleting" OnItemCommand="Grid_ItemCommand" Skin="Windows7"
        meta:resourcekey="UserGrid">
        <MasterTableView AutoGenerateColumns="False" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="false" DataKeyNames="UserID,EmailAddress" NoMasterRecordsText="No records match the search criteria.">
            <Columns>
                      <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" ItemStyle-Width="20px"/>
            </Columns>
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="false">
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="true"></Selecting>
        </ClientSettings>
        <PagerStyle Mode="NumericPages" />
    </telerik:RadGrid>

BTW i cam callind UserGrid.Rebind() on the pageindexchanged event.
Wade
Top achievements
Rank 1
 answered on 06 Feb 2013
1 answer
67 views
Hi,I have radeditor  with editor drop down which is dynamically filled ..on its click i am showing value on radeditor.Its working fine in chrome .however, its not working as expected in internet explorer.please do needful as my further work is getting postponed.


below is my code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmailEditortest.aspx.cs"
    Inherits="RPM.EmailEditortest" %>

<%@ 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></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" Font-Names="Tahoma"
            Font-Size="12px" Height="500px" OnClientLoad="RadEditorLoad" OnClientCommandExecuting="OnClientCommandExecuting">
            <ImageManager ViewPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"
                UploadPaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations"
                DeletePaths="~/Editor/Img/UserDir/Marketing,~/Editor/Img/UserDir/PublicRelations">
            </ImageManager>
        </telerik:RadEditor>
    </div>
    </form>
</body>
<script type="text/javascript">

    function RadEditorLoad(editor, eventArgs) {

        // Set the Editor Default Font to Arial

        editor.get_contentArea().style.fontFamily = 'Tahoma'
        editor.get_contentArea().style.fontSize = 12 + 'px';
    }

    function OnClientCommandExecuting(editor, args) {
        debugger;
        var name = args.get_name();
        var val = args.get_value();

        if (name == "emailFields") {
            editor.pasteHtml(val);
            //Cancel the further execution of the command as such a command does not exist in the editor command list
            args.set_cancel(true);
        }
    }
</script>
</html>

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace RPM
{
    public partial class EmailEditortest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            EditorToolGroup dynamicToolbar = new EditorToolGroup();
            RadEditor1.Tools.Add(dynamicToolbar);

            EditorTool fndReplace = new EditorTool("FindAndReplace");
            EditorSeparator fSp = new EditorSeparator();
            EditorTool undo = new EditorTool("Undo");
            EditorTool redo = new EditorTool("Redo");
            EditorTool cut = new EditorTool("Cut");
            EditorTool copy = new EditorTool("Copy");
            EditorTool paste = new EditorTool("Paste");
            EditorTool bold = new EditorTool("Bold");
            EditorTool italic = new EditorTool("Italic");
            EditorTool underLine = new EditorTool("Underline");
            EditorTool ajxSplCheck = new EditorTool("AjaxSpellCheck");
            EditorSeparator jSp = new EditorSeparator();
            EditorTool justifyLeft = new EditorTool("JustifyLeft");
            EditorTool justifyCenter = new EditorTool("JustifyCenter");
            EditorTool justifyRight = new EditorTool("JustifyRight");
            EditorSeparator clSp = new EditorSeparator();
            EditorTool foreColor = new EditorTool("ForeColor");
            EditorTool backColor = new EditorTool("BackColor");
            EditorTool imageManager = new EditorTool("ImageManager");
            EditorTool documentManager = new EditorTool("DocumentManager");
            EditorTool linkManager = new EditorTool("LinkManager");
            EditorTool fontFamily = new EditorTool("FontName");
            EditorTool fontSize = new EditorTool("RealFontSize");
            EditorTool insertTable = new EditorTool("InsertTable");



            dynamicToolbar.Tools.Add(fndReplace);
            dynamicToolbar.Tools.Add(fSp);//seperator
            dynamicToolbar.Tools.Add(undo);
            dynamicToolbar.Tools.Add(redo);
            dynamicToolbar.Tools.Add(cut);
            dynamicToolbar.Tools.Add(copy);
            dynamicToolbar.Tools.Add(paste);
            dynamicToolbar.Tools.Add(bold);
            dynamicToolbar.Tools.Add(italic);
            dynamicToolbar.Tools.Add(underLine);
            dynamicToolbar.Tools.Add(ajxSplCheck);
            dynamicToolbar.Tools.Add(jSp);//seperator
            dynamicToolbar.Tools.Add(justifyLeft);
            dynamicToolbar.Tools.Add(justifyCenter);
            dynamicToolbar.Tools.Add(justifyRight);
            dynamicToolbar.Tools.Add(clSp);//seperator
            dynamicToolbar.Tools.Add(foreColor);
            dynamicToolbar.Tools.Add(backColor);
            dynamicToolbar.Tools.Add(imageManager);
            dynamicToolbar.Tools.Add(documentManager);
            dynamicToolbar.Tools.Add(linkManager);
            dynamicToolbar.Tools.Add(insertTable);
            dynamicToolbar.Tools.Add(fontFamily);
            dynamicToolbar.Tools.Add(fontSize);





            EditorDropDown ddn = new EditorDropDown("emailFields");
            ddn.Text = "Place Holder";

            ddn.Items.Add("parimal", "<%Parimal%>");
            ddn.Items.Add("sanjay", "<%sanjay%>");
            ddn.Items.Add("imran", "<%imran%>");
            ddn.Items.Add("parimal", "<%Parimal%>");
            dynamicToolbar.Tools.Add(ddn);
            
        }
    }
}

Rumen
Telerik team
 answered on 06 Feb 2013
15 answers
556 views


Sir,

I want to get a preview on asp:image control of the files selected through rad upload.

i tried the below code,but still it is not working

<

script type="text/javascript">

function

myOnClientFileSelect(radUpload, eventArgs)

{

var img = document.getElementById('<%= Image1.ClientID %>');

img.src=eventArgs.FileInputField.value;}

</

script>


<

asp:Image ID="Image1" runat="server" Height="112px" Style="z-index: 103; left: 472px;

position: absolute; top: 208px"

Width="136px" />

<

telerik:RadUpload ID="RadUpload1" runat="server" Style="z-index: 100; left: 112px;

position: absolute; top: 136px"

OnClientFileSelected="myOnClientFileSelect" AllowedFileExtensions=".bmp,.jpeg,.jpg,.gif" ControlObjectsVisibility="All" InitialFileInputsCount="2" MaxFileInputsCount="1000" MaxFileSize="100000000" TargetFolder="~/File" OnFileExists="RadUpload1_FileExists" />

<telerik:RadProgressArea ID="RadProgressArea1" runat="server" Style="z-index: 101;

left: 120px; position: absolute; top: 232px">

</telerik:RadProgressArea>

<telerik:RadProgressManager ID="RadProgressManager1" runat="server" Style="z-index: 102;

left: 104px; position: absolute; top: 184px"

/>


Thank you

Plamen
Telerik team
 answered on 06 Feb 2013
4 answers
139 views
I have my RadFileExplorer working great, but how can I exclude specifics from the list? 

I use RadFileExplorer.Configuration.SearchPatterns to find jpegs and RadFileExplorer.Configuration.ViewPaths to display the correct folder of jpegs (which I then display in RadImageEditor upon a click from the user), but within the correct folder there is an additional folder that I do not want to be shown in the RadFileExplorer. It's a backup folder, and there's no need for the end-user to see it along with the rest of the jpegs, I only want the user to see the jpegs. Is there a way that I can exclude the folder from showing up? Thanks.
Vessy
Telerik team
 answered on 06 Feb 2013
1 answer
106 views
Good Morning,

I just downloaded the ASP.NET AJAX toolkit so I could start testing the AsyncUpload functionality.  Sorry for the long post but I'm trying to determine if the AsyncUpload control will be better than the control we are currently using.

Currently we have an upload control from another vendor that allows us to do the same functionality as the AsyncUpload but their support is lacking in helping us figure out an issue we're having.  I've chosen to evaluate the AsyncUpload controls to see if it will work better in our environment.

Currently our environment is a mixture of Windows XP and Windows 7 (almost all 32-bit). We have a few IE7 browsers out there but most are at least IE8 and silverlight has been pushed out to as many of our workstations as we could.  Our application is written in ASP.Net with VB.Net as the code-behind that we use and our server is running IIS6.

We have a website that allows our staff to upload multiple images at a single time.  Once they've been uploaded a server-side event fires and imports the files into our EDMS for long term storage.  Our problem is that due to the amount of load on our EDMS sometimes the server-side events take a while (up to 6-7 seconds per file) and eventually we run into an issue with the IE setting for ReceiveTimeout.  Once the client goes past the ReceiveTimeout setting our upload process starts getting errors because the client is now disconnected from the server-side.

In an effort to avoide the ReceiveTimeout related errors, we'd like to send an update from the server-side back to the client letting it know that it has finished processing a file.  We expect that because the client receives a response from the server that it would reset the ReceiveTimeout timer and our app would not have the timing issues we currently are having.

Do you know if the AsyncUpload control works within an UpdatePanel control?  Also, is there a way that the server-side Completed event can send an update back to the client-side so it knows it got a response?  If these can be done, and I can prove that it works, we will consider purchasing the ASP.Net AJAX tools just for the AsyncUpload controls.

Again, sorry for the long post, I'm just trying to determine if this control will work to help us resolve our current issue.

Thanks,

Josh
Plamen
Telerik team
 answered on 06 Feb 2013
1 answer
229 views
I have RadNotification working well with a web service providing the content of the Notificaiton using

     notification.update();

     notification.show();

when I want to show the Notification.

I want to clear the Notificaiton content each time the user clicks on the Notification Close button.

I've had a hard time getting it to clear on both the client and the server without side effects.  I have it sort of working now, but the notification flashes on loading the page.

I'm sure there is a simple, clean way to do this, but I haven't been able to figure it out -- after spending a lot of time and searching both the Telerik website and using Google.

Thanks,

Donald

 

 

Marin Bratanov
Telerik team
 answered on 06 Feb 2013
4 answers
268 views
I would like to use the following example but with datatables. I am customizing an existing app and the way they handle the data is only thru datatables.

Long story short, I can't figure out how to get this to work using DT. Any help would be appreciated.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx

Thank you.
Steve
Top achievements
Rank 2
 answered on 06 Feb 2013
6 answers
195 views
Hi Everyone.

VB.net AJAX Q2 2012.

I have a line graph with several data points flowing left to right.  I used the OnCleintSeriesClicked Property and wrote:

function Chart_Line_Count_SeriesClicked(sender,args)

{

if (args.get_seriesName() != "DaysL") $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args.get_category());

}

Then through the RadAjaxManager1 configuration I associated the RadAjaxManager1 with the Chart_Line_Count Object.

Then in the code behind file:

Protected Sub RadAjaxManager1_AjaxRequest(sender As Object, e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest

  

'test to clear datasource and blank out the chart

 Chart_Line_Count.DataSource = ""

 Chart_Line_Count.DataSourceID = ""

 

End Sub

But it doesn't work.  Can anyone tell me why?  I see the AJAX circular spinning refresh thing fire, but nothing happens.  Please let me know if you need any more information. 

Logan Marshall
Top achievements
Rank 2
Iron
 answered on 06 Feb 2013
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?