Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
396 views
i am facing issue, when trying to disable the drag and drop in radEditor. i refered the following Code. but it is not working for any browser. http://www.telerik.com/community/forums/aspnet-ajax/editor/disable-images-drag-and-drop.aspx
BRowsers : IE 9, Firefox 11, and Chrome.

<telerik:RadEditor ID="txtsomeID" runat="server" Width="100%" AutoResizeHeight="false"
Height="300px" TabIndex="1" StripFormattingOnPaste="All" EnableResize="false"
OnClientLoad="OnClientLoad" OnClientSubmit="OnClientSubmit">
<Content></Content>
<ContextMenus>
<telerik:EditorContextMenu Enabled="false" />
<telerik:EditorContextMenu TagName="IMG" Enabled="false" />
<telerik:EditorContextMenu TagName="TABLE" Enabled="false" />
</ContextMenus>
</telerik:RadEditor>

and the Java scrtipt  and even OnClientLoad is not Firing at all
<script type="text/javascript>
function OnClientLoad(editor, args) {
          var element = document.all ? editor.get_document().body : editor.get_document();
          var eventHandler = document.all ? "drop" : "dragstart";
          var selElem = editor.getSelectedElement();
          $telerik.addExternalHandler(element, eventHandler, function(e) { $telerik.cancelRawEvent(e); return false; });
      }
 
      function OnClientSubmit(editor) {
          editor.fire("FormatStripper", { value: "ALL" });
      }
</script>
harshini
Top achievements
Rank 1
 answered on 19 Apr 2017
0 answers
105 views

Hi,

I've been experiencing a problem with RadPivotGrid for a  while now and the problem is when you zoom in (or out) a page that contains radpivotgrid, row alignment is gone and as you see in the attached screenshot, the problem exists even in product demos.

this also happens occasionally without even zooming, specially on slow connections rows are not aligned with their headers properly.

Is there a fix for it? Is there a client side method that can realign rows?

Please help.

Thanks

Ahmad
Top achievements
Rank 1
 asked on 19 Apr 2017
7 answers
846 views
Hi telerik,

I have a file which is having long file name, when i upload file in RadAsyncUpload the file name is looking too strange.

please help me to solve this.

thanks in advance.

Veeresh
hunderson
Top achievements
Rank 1
 answered on 18 Apr 2017
2 answers
53 views
Hi, I'm using the rad grid with scrolling enabled. Page up / Page down scroll the rows of the grid in IE but not in chrome or fire fox.

I can re-create this using the online demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx

Browse to that page in IE, click the grid then press page down on the keyboard.

Now do the same thing in Chrome or FireFox. The whole page scroll down instead of the rows in the grid.

This is the same problem I'm having in my project.

Thanks,
Erik
Cheryl
Top achievements
Rank 1
Iron
 answered on 18 Apr 2017
8 answers
247 views
We are using the Editor and allowing users to open the document manager and select an item and click insert. When they click Insert it will insert a link with the document name as the hyperlink text. Is there a way to make it output the full URL to the document instead of just the name of the document?

Sometimes the text that is entered into the editor is being emailed to people as plain text and they need the full URL to get the document.
Nirosha
Top achievements
Rank 1
 answered on 18 Apr 2017
5 answers
218 views
use version:2011.1.329.35


see picture attached, the header and item cell are not align.
if I remove the setting scrolling, it works fine.

and this issue occurs only in Chrome, not in IE,Firefox, Safari,Opera, ect..


here's my code :

           <telerik:RadGrid ID="RadGrid1"  EnableViewState="false"   EnableLinqExpressions="False"  Skin="Office2007" 
             runat="server"  Height="100%"
             Width="100%"   AutoGenerateColumns="false"   >
          <MasterTableView Caption=""    NoMasterRecordsText=""   >
            </MasterTableView>
            <ClientSettings   >
            <ClientEvents   />
           <Scrolling AllowScroll="true" UseStaticHeaders="true" />
              <Selecting AllowRowSelect="True" />
            </ClientSettings> 
    <ItemStyle Height="18px" />
  
        </telerik:RadGrid>

any one can tell me how to fix? thanks
Erick
Top achievements
Rank 1
 answered on 18 Apr 2017
1 answer
137 views

Hi,
I am using the Tree List control with Auto Generate Columns set to false. I want to use in place editing, but the documentation states that in place editing is only for Auto Generate Columns. I have placed an HTML text box in an item template with an onClick event.

<input id="txtDescription" type="text" value="<%# Eval("Description") %>" onclick="Field_onClick(this, false);" onblur="Field_onBlur(this);" readonly="readonly" />

function Field_onClick(txt, allowBlank) {
    if (_mode == mode.Params) {
        _tlConfig.AllowEdit = true;
        txt.readOnly = '';
        txt.focus();
    }
}

The problem is that I have to click on the text box twice before I can edit it contents. Is there a way around this problem?

 

Thanks, Paul.

Paul
Top achievements
Rank 1
 answered on 18 Apr 2017
4 answers
1.4K+ views
before we start I apologize for my English.

I have:
<telerik:RadAsyncUpload ID="RadAsyncUpload1"  AllowedFileExtensions="JPG,gif,png,jpg,tif,tiff" MaxFileInputsCount="3"  OnClientValidationFailed="OnClientValidationFailed"   OnFileUploaded="RadAsploayncUd1_FileUploaded"  runat="server" ChunkSize="0" Culture="it-IT" PostbackTriggers="pulsante"></telerik:RadAsyncUpload>
<asp:Button  runat="server" ID="pulsante" Text="Aggiorna profilo"  OnClick="Button1_Click" /> 

//and in the code:


protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
        {
            RadAsyncUpload1.TargetFolder = "~/App_CProfili/ImgProfili/";
          
           }


So it works, but if I change the file name tells me that the file 'App_Data\RadUploadTemp\1378131589339001.JPG'.
 was not found". For example, if I load three files are loaded only two and then goes into error


 This is the code that produces the error
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
{           
 e.File.SaveAs(Server.MapPath(Path.Combine(RadAsyncUpload1.TargetFolder, e.File.GetNameWithoutExtension() + User.Identity.Name  + e.File.GetExtension())));
}
           
Nirosha
Top achievements
Rank 1
 answered on 18 Apr 2017
1 answer
54 views
hi, is there any way to prevent prevent “Backspace” button from clearing selected item. because currently when I clear selection than click anywhere in the page, the selected item is not recovered and get lost.

So I need to get it back or at the worst case to prevent backspace from clearing selection     
NNou
Top achievements
Rank 1
 answered on 18 Apr 2017
10 answers
404 views
Hi,

I have a rad grid bound to a linq datasource.
The grind contains a template row with a RadNumericTextBox.

It runs well in the local webdev server but on IIS 6 it fires an error.
Prior the update to Q1 09 it made no problems.

Details:
If I define the thing like this
<telerik:RadNumericTextBox runat="server" ID="neNumValues" MinValue="1" MaxValue="30" DbValue='<%# Bind("NumItems") %>' NumberFormat-DecimalDigits="0" Width="60px" ShowSpinButtons="True" ShowButton="False" DataType="System.Int32">  
                        </telerik:RadNumericTextBox> 
I get the following error
Ausnahmeinformation:  
    Ausnahmetyp: System.Web.HttpParseException  
    Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
 
Information zu interner Ausnahme (Ebene 1):  
    Ausnahmetyp: System.Web.HttpParseException  
    Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
 
Information zu interner Ausnahme (Ebene 2):  
    Ausnahmetyp: System.Web.HttpException  
    Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
 
This means in english something like it can't convert the string System.Int32 to a System.Type

If I remove the RadNumericTextBox everything works fine.
Even a GridNumeric works.
But this is not usefull for me, since (as you see) I need to ensure that the value is an integer between 1 and 30.
Currently I help me with a validator - but I would preffere to further use the RadNumericTextBox.

The strange thing for me is, that it runs at the integrated webserver and makes the problem only at the server (W2k3 IIS6)!

Regards

Manfred
Premcoumar
Top achievements
Rank 1
 answered on 17 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?