Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
216 views
Hello Telerik.

I have a question RadCoboBox's "SelectText" function.

It can select part of text through selected length.

I tried use this function but it doesn't work.

So i have tried many test, finally getting result.

If i want to use SeelectText function , i should to set some properpties.

EnableTextSelection="true" EnableLoadOnDemand="true".

that properies are set true, selectText was worked.

Is it bug or planned scenario?

I attached sample code please check this.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<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.
 
            function RadComboBox1_Focus(sender, args) {
                sender.selectText(0, 2);
            };
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <div>
 
            <telerik:RadTextBox runat="server" ID="TextBox1" TabIndex="1">
            </telerik:RadTextBox>
            <div style="height:30px;"></div>
            <telerik:RadComboBox ID="RadComboBoxLookupFirm" runat="server" Width="350" EnableTextSelection="false" TabIndex="2" OnClientFocus="RadComboBox1_Focus">
                <Items>
                    <telerik:RadComboBoxItem Text="1111111" Selected="true" />
                    <telerik:RadComboBoxItem Text="2222222" />
                    <telerik:RadComboBoxItem Text="3333333" />
                    <telerik:RadComboBoxItem Text="4444444" />
                </Items>
            </telerik:RadComboBox>
            <div style="height:30px;"></div>
            <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="350" EnableTextSelection="true" EnableLoadOnDemand="true"  TabIndex="3" OnClientFocus="RadComboBox1_Focus">
                <Items>
                    <telerik:RadComboBoxItem Text="1111111" Selected="true" />
                    <telerik:RadComboBoxItem Text="2222222" />
                    <telerik:RadComboBoxItem Text="3333333" />
                    <telerik:RadComboBoxItem Text="4444444" />
                </Items>
            </telerik:RadComboBox>
        </div>
    </form>
</body>
</html>

Hristo Valyavicharski
Telerik team
 answered on 06 Feb 2013
1 answer
83 views
Hello,

I am Facing couple of Problem with the Chrome browser, and not overcome on trying so many different things:

Problem # 1 :
I have entered HTML Code under HTML Tab, and then I move to Design Tab, and what i am facing is, HTML tab is still active, and Design Tab is disabled... Instead of Design should be Active, Please help me out...

Problem # 2:
When I click on Time / Date control from Editor, Its not showing in the content editor but it thorws Script error.This happens only on Chrome.


Please helpme ASAP on this two problem.

Regards
Samir
Rumen
Telerik team
 answered on 06 Feb 2013
3 answers
163 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
438 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
92 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
64 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
550 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
135 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
99 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
225 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?