Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
110 views
Since upgrading to the latest build we are having a problem with content pasted in.  Spaces seem to be randomly removed.

The problem can be duplicated in your demos.  

Chrome V18.0.1025.168 m USING Telerik.Web.UI_2012_1_411

If I copy paste the the following text (which was copy/pasted from a word doc):

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec elementum vehicula condimentum. Vivamus sed neque arcu. Proin mattis tristique ante, ac tincidunt sem vulputate sed. Vestibulum et elit ac lorem sagittis blandit a vitae dui. Sed aliquet fermentum pulvinar. Nunc erat ante, euismod sit amet blandit pulvinar, semper sed orci. Pellentesque egestas tempus magna, vitae interdum dui feugiat a. Duis a vestibulum arcu. Nam arcu turpis, fringilla in consectetur pulvinar, hendrerit sed sem. Phasellus id sem odio. Nam quis ante lectus. In non sapien vitae turpis pulvinar congue. Ut porta auctor nisl non hendrerit. Proin eget odio at nibh faucibus laoreet.


If I paste it into my editor (or the demo @ http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx) it randomly removes spaces, notably in my example between the words "Donec elementum vehicula" near the beginning.  It turns to "Donec elementumvehicula"

The editor on your demo asks me if I want to "clean word formatting".  If I say yes, the spacing problem exists.  If I say cancel, it pastes it preserving the spaces. If I copy/paste from the forum, or from another website it works fine.  Its just when copy/pasting from Outlook/Word.  

I noticed the problem doesn't seem to happen in the forum editor.  I couldn't duplicate it here, but could in the demo.  In our app, if we revert to the last build, the problem goes away. 

Marin Bratanov
Telerik team
 answered on 11 Oct 2013
1 answer
129 views
I use Telerik RadEditor version 2012.1.411.40. When I copy content from MSWord and paste to RadEditor, I have problem, that it auto remove spaces in words (Plz see attach file). In source code, I used property StripFormattingOptions  with value 
EditorStripFormattingOptions.ConvertWordLists & EditorStripFormattingOptions.MSWordRemoveAll

I try all value of EditorStripFormattingOptions, but not solve problem.

Plz help me.



Marin Bratanov
Telerik team
 answered on 11 Oct 2013
9 answers
263 views
Hi,
How I can Hide Overwrite if file exists? Checkbox from all upload popups in RadEditor. or stop overwriting attachment file in folder.
Ianko
Telerik team
 answered on 11 Oct 2013
1 answer
117 views
Hi guys

How can I remove the selected date of the date picker from server side? I was using the raddatepicker.DateInput.Clear() which is not working after updating to the latest version.

Any suggestions please?
Anu
Shinu
Top achievements
Rank 2
 answered on 11 Oct 2013
3 answers
164 views
hello guys,

My website has always worked. yesterday after starting the computer, launch the web page and I get this error message:

Telerik.Web.UI.RadFormDecorator with ID='QsfFromDecorator' was unable to find an embedded skin with the name 'Sunset'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.


but the dll of the skin is located in the bin folder, I do not understand why this error.

Please help me
Shinu
Top achievements
Rank 2
 answered on 11 Oct 2013
6 answers
109 views
Please have a look at the attached image.

As you can see the dropdown is misplaced. It only appears o be the case on this grid edit form template; wherever else I use comboboxes they're OK.

The form template code is reproduced below ...
                <FormTemplate> 
                    <telerik:RadTextBox runat="server" ID="txtInternalId" Text='<%# DataBinder.Eval(Container, "DataItem.InternalId") %>' Style="display: none;"></telerik:RadTextBox> 
                    <table> 
                        <tr> 
                            <td> 
                                Surname: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="txtSurname" runat="server" MaxLength="50" Text='<%# DataBinder.Eval(Container, "DataItem.Surname") %>' 
                                    Enabled='<%# DataBinder.Eval(Container, "DataItem.IsExternal") %>' 
                                    SkinID="rad_textbox" 
                                    Width="200px" > 
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Forename: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="txtForename" runat="server" MaxLength="50" Text='<%# DataBinder.Eval(Container, "DataItem.Forename") %>' 
                                    Enabled='<%# DataBinder.Eval(Container, "DataItem.IsExternal") %>' 
                                    SkinID="rad_textbox" 
                                    Width="200px"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Email: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="txtEmail" runat="server" MaxLength="200" Text='<%# DataBinder.Eval(Container, "DataItem.Email") %>' 
                                    Enabled='<%# DataBinder.Eval(Container, "DataItem.IsExternal") %>' 
                                    SkinID="rad_textbox" 
                                    Width="300px"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Phone: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="txtPhone" runat="server" MaxLength="20" Text='<%# DataBinder.Eval(Container, "DataItem.Phone") %>' 
                                    Enabled='<%# DataBinder.Eval(Container, "DataItem.IsExternal") %>' 
                                    SkinID="rad_textbox" 
                                    Width="150px"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Organisation: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="txtOrganisation" runat="server" MaxLength="50" Text='<%# DataBinder.Eval(Container, "DataItem.Organisation") %>' 
                                    Enabled='<%# DataBinder.Eval(Container, "DataItem.IsExternal") %>' 
                                    SkinID="rad_textbox" 
                                    Width="300px"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="vertical-align: top;"
                                Special Notes: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="txtSpecialNotes" runat="server" Rows="5" Text='<%# Bind("SpecialNotes") %>' 
                                    SkinID="rad_textbox" 
                                    TextMode="MultiLine" Width="300px"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="vertical-align: top;"
                                Status: 
                            </td> 
                            <td> 
                                <telerik:RadComboBox ID="cboState" runat="server" SelectedValue='<%# DataBinder.Eval(Container, "DataItem.State") %>' SkinID="rad_combo"
                                    <Items> 
                                        <telerik:RadComboBoxItem Text="Not Confirmed" Value="AwaitingUserAcceptance" /> 
                                        <telerik:RadComboBoxItem Text="Attending" Value="Attending" /> 
                                        <telerik:RadComboBoxItem Text="Not Attending" Value="NotAttending" /> 
                                    </Items> 
                                </telerik:RadComboBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="text-align: right; padding-right: 5px"
                                <asp:Button runat="server" ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' /> 
                                <asp:Button runat="server" ID="btnCancel" Text="Cancel" CommandName="Cancel" CausesValidation="false" /> 
                            </td> 
                        </tr> 
                    </table> 
                </FormTemplate> 
 
Anyone any ideas?

--
Stuart

Kate
Telerik team
 answered on 11 Oct 2013
7 answers
203 views
I'm getting an error when I try to perform radconfirm from a page that is already a popup attached is a sample of what I'm trying to do and the error will occur once you run the program.

How to replicate below:

Step 1. A page that has an ajaxpanel with a radwindowmanager outside of the ajaxpanel and a button
Step 2.In the button click event call javascript that is within a radcodeblock that calls the javascript below

function launchModalWindow(args, height, title) {

var oWnd = $find("<%= popupEditContactWindow.ClientID %>");

oWnd.set_behaviors('None');

oWnd.set_height(height);

oWnd.set_title(title);

oWnd.setUrl(args);

oWnd.show();

return false;
 
Step4. In Step 3 button click event I call the javascript below :

 

function launchModalWindow(message, callback, title) {

radconfirm(message, callback, 330, 100, null, title);

return false;

 

 

 

 

}

 

 

 

}


Marin Bratanov
Telerik team
 answered on 11 Oct 2013
8 answers
219 views
I'm nearly positive that when I updated last week to the latest hotfix (v 2012.1.403.30), that build broke part of my application. Previously I was running the Q1 2012 release ( v.2012.1.215.40) with no serous problems other than a minor issue which is why I upgraded to the hotfix. The hotfix did correct my minor issue with RadScheduler, but it apparently has caused a more serious issue, as described here:

I am opening a window (on double-click within various RadGrid cells) using this code:
function ShowTestForm() {
    var wnd = window.radopen("Test.aspx", "WindowName");
    wnd.setSize(900, 700);
    wnd.center();
    return false;
}

The form begins to load, but now it throws this error: 
Microsoft JScript runtime error: Unspecified error.

which originates from this line of code in the ScriptResource.axd file:

this._focused=(document.activeElement==this._textBoxElement)&&!this.isReadOnly();


If you highlight  "document.activeElement", it gives: Unspecified error.

"this._textBoxElement" evaluates to a telerik:RadDatePicker control, so as a test I removed the RadDatePicker, the error goes away! However, my form absoluately needs this and other RadDatePickers. I've simplied my Test.aspx form all the way down to just one single control, no javascript, no code behind, it loads no data. Just one RadDatePicker and yet it still throws this error.
But, if I set my application to "Startup" with Test.aspx, the page loads just fine. So the problem only occurs when I try and go to Test.aspx with a window.radopen.

Help. This error never happened before with previous quarterly releases, I'm surely positive the hotfix has broken this. But I need to use the hotfix for another part of my application, so I can't just rollback to Q1 2012. Is there something else that I can do or test to get this working? The problem also occurs with other types of controls, such as RadDateTimePicker, RadTextBox. But no problems with RadComboBox, that control seems to be ok on the form, no error is thrown.

Thank you.



Marin Bratanov
Telerik team
 answered on 11 Oct 2013
1 answer
136 views

Hello,

I am using:

  • RadControls for ASP.NET v. 2013.2.717.40
  • .NET Framework 4.0
  • Windows 7 Enterprise 64-bit
  • Visual Studio 10
  • IE 9 and Firefox 24

I am creating an application based on the Window - RadWindow and MDI demo.  I have this working so far.  The main difference with my application and your demo is that I am using a RadToolBar at the top of the page instead of a RadMenu at the bottom left of the page to open new MDI RadWindows.  This is working fine as well.

I would like to create a ContextMenu for each tab that gets added to the tabstrip.  For example, when a new RadWindow is opened, I want to add a ContextMenu with the following menu items:  Minimize, Maximize, Restore, Arrange Horizontal, Arrange Vertical, Cascade, etc. In addition, depending on the specific RadWindow, I may want to add other menu items.

I initially started looking at how to do this from Javascript, but from what I read on the forums, the ContextMenu being a server control, must be created on the server.  So I would think I could create the ContextMenu in the RadToolBar button click event where I create the new RadWindow.  This seems easy enough but I don't know how to associate the newly created ContextMenu (from my server code) with the newly created Tab (from the Javascript code).

What is the best way to do this?

Thanks,
Randall Price
Senior Developer
Virginia Tech
Kate
Telerik team
 answered on 11 Oct 2013
6 answers
94 views
The new RadScheduler Q1 2013 will be full compatible with touch events like drag and grop appontements and long click for rad menu in IE10 Metro.

Now these events work only with iPad.

Thanks.  
Ivan Zhekov
Telerik team
 answered on 11 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?