When I set RadWindow property VisibleTitlebar="false" then top border is missing on window.
Here is sample code:
<telerik:RadWindow runat="server" ID="GenerateReportWaitWindow" Width="440px" Height="200px"
VisibleTitlebar="false" Modal="true" ReloadOnShow="false" VisibleStatusbar="false"
VisibleOnPageLoad="false" EnableShadow="false" Animation="Fade" Behaviors="None"
Title="Čakajte prosím...">
<ContentTemplate>
<div style="min-height: 66%;">
<div style="padding-top: 30px; padding-bottom: 45px; text-align: center; font-weight: bold;">
<asp:Label ID="Label4" runat="server">Prebieha vytváranie tlačovej zostavy. Čakajte prosím.</asp:Label>
<asp:Label ID="Label5" runat="server">(V závislosti od počtu záznamov to môže trvať aj niekoľko minút...)</asp:Label>
<asp:Label ID="Label6" runat="server" ForeColor="Red" Style="display: none;"></asp:Label>
</div>
<div style="margin-left: auto; margin-right: auto; text-align: center;">
<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Animated/loading1.gif" />
</div>
</div>
</ContentTemplate>
</telerik:RadWindow>
Admin comment:
Actually there is 1px top border, but it is hard to be noticed. As a temporary solution, one can increase it via the following padding:
Copy Code
<style>
.RadWindow {
padding: 4px 5px 5px !important;
}
</style>
Workarounds:
- Use the Lightweight render mode of the FormDecorator;
- Use RadCheckBox instead of asp:CheckBox;
- Use the following styles:
.rfdRadioChecked::before, .rfdRadioUnchecked::before,
.rfdCheckboxChecked::before, .rfdCheckboxUnchecked::before {
content: none !important;
}
Scenario description and workaround follow. Note the comments in the workaround and test before using, because it introduces some other unwanted behaviors, mostly related to the bottom/right edge of the zone.
WORKAROUND 1:
<div id="zone" style="width: 600px; height: 500px; background: yellow;"></div>
<telerik:RadWindow runat="server" ID="rw1" RenderMode="Lightweight" VisibleOnPageLoad="true" Left="0" Top="0" RestrictionZoneID="zone"></telerik:RadWindow>
<script>
Telerik.Web.UI.Window.LightweightView.prototype._resizingHandler = function(resizable, args){
$telerik.cancelRawEvent(args.get_domEvent());
var edges = this.restrictBounds,
bounds = this._getResizeBounds(args),
borders = this.resizeHelper.borders,
fullBounds = {
x: bounds.x - borders.left,//originally, subtract
y: bounds.y - borders.top,//originally, subtract
width: bounds.width + borders.horizontal,
height: bounds.height + borders.vertical};
//debugger
//console.log(fullBounds);
//changing the direction in which borders are counted above (+ or -) changes the behavior and the potential issues
//if you subtract from the position, resizing will not be available next to the top/left border of the restriction zone
//if you add to the position, resizing will be available but the user can resize in the direction of the zone bounds and thus, out of the bounds of the zone, so dragging may become unavailable
//also, this will make resizing worse when the window touches the right or bottom of the zone
var inContainer = this.window._checkRestrictionZoneBounds(edges, fullBounds);
bounds.width = Math.max(resizable.options.constraints.minWidth, bounds.width);
bounds.height = Math.max(resizable.options.constraints.minHeight, bounds.height);
args.set_cancel(true);
if(inContainer && this.touchCount++ > 0)
{
var style = this.ui.container.style;
style.left = bounds.x + "px";
style.top = bounds.y + "px";
this._setWidth(bounds.width);
this._setHeight(bounds.height);
this._currentResizeBounds = bounds;
}
}
</script>
WORKAROUND 2:
Add this to the resizeEnd and dragEnd events of the RadWindow to try and have it never touch the sides of the restriction zone at all.
function keepThisWindowInBounds(sender) {
if (!sender.isMinimized() && !sender.isMaximized()) {
var position = sender.getWindowBounds();
var rzRect = document.getElementById(sender._restrictionZoneID).getBoundingClientRect();
// note rzRect height and width are both 1px bigger than the rzElement clientWidth and clientHeight
// check width and height
if (position.width > rzRect.width - 3) {
position.width = rzRect.width - 3;
sender.set_width(position.width);
}
if (position.height > rzRect.height - 3) {
position.height = rzRect.height - 3;
sender.set_height(position.height);
}
var needToMove = false;
if (position.x < 1) {
needToMove = true;
position.x = 1;
} else if (position.x > rzRect.width - position.width - 2) {
needToMove = true;
position.x = rzRect.width - position.width - 2;
}
if (position.y < 1) {
needToMove = true;
position.y = 1;
} else if (position.y > rzRect.height - position.height - 2) {
needToMove = true;
position.y = rzRect.height - position.height - 2;
}
if (needToMove)
sender.moveTo(position.x, position.y);
}
}
When using: Value = "(null)" Text = "(no user)" as item in the ListBox, the filter must work correctly, and after opening the menu the item should be checked if previously filtered. Additionally if the item have NULL value instead of "(null)" The visible value must be localized.
There is a bug in the editor when using the image manager to insert an image after creating a new image. This is recreated on the live demo site - http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx 1. Open the image manager in the editor. 2. Click on an image editor after selecting an image. 3. Use the resizing tool to resize and save a new version of the image. 4. Once the save is made, both images (the original and the newly created) are selected and when you click insert, both images will be inserted.
The manually entered value of RadDateTimePicker is replaced with the original one in Batch Edid mode in iPad.
To reproduce this incorrect behavior add a new
<telerik:GridDateTimeColumn HeaderText="Start Date" UniqueName="StartDate" DataField="StartDate" DataFormatString="{0:MM/dd/yyyy}">
</telerik:GridDateTimeColumn>
column in the Batch Edit demos of RadGrid and test under iPad.
Tap over RadTextBox, enter some new date and press Go/tap out and you'll see the problem.
The following concerns the editing of tables within RadEditor using the out-of-the-box Delete Row and Delete Column commands: Delete Rows: - Click in a cell. - Click the Delete Row button. The row is deleted. - The Delete Row button is still enabled, but when I click it nothing happens. The cursor is in the expected location and I'm able to immediately begin typing. However, I must again click in the cell for the Delete Row button to work. Delete Columns: - Click in a cell. - Click the Delete Column button. The column is deleted. - The Delete Column button is disabled. If I begin typing or click in the table it becomes enabled and functional again. The end-user should be able to repeatedly click either button and have it work until there aren't any more rows or columns left to delete.
Several JS errors are trown when writing in re-focussed empty Editor in Chrome. Video: https://www.screencast.com/t/Wx6Ucs8m6S5w First error's message: RadEditor.js:10521 Uncaught TypeError: Cannot read property 'startContainer' of null Steps to reproduce: 1. Open in Chrome: http://demos.telerik.com/aspnet-ajax/editor/examples/trackchanges/defaultcs.aspx 2. Switch to HTML mode and clear the whole content 3. Switch back to Design mode 4. Click any of the Bold/Italic/Underline commands 5. Click out of the Editor's element 6. Click back in the Editor's content area and start typing Result: JS errors are thrown
There is a problem in Safari on Mac while selecting Table cell properties via the context menu when a table cell is selected. Its Wrongly selected in the Table Wizard window.
Reproduction steps:
- Load the default demo in Safari Mac: http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
- Right click over the third cell in the second column ("Los Gigantes is located...") and choose Cell Properties.
- The Preview of the Cell Properties in the Table Wizard will show that the first cell is selected but not the right one.
Inserting a new line after a link typically adds a new line and removes the copied link.
However, this does not work when paragraph is about to be split.
For the time being you can override the _nodeInsertedHandler method to resolve the bug as in this example:
<telerik:RadEditor runat="server" ID="RadEditor1">
<Content>
<p><a href="http://www.telerik.com" >link</a>text</p>
</Content>
</telerik:RadEditor>
<script>
Telerik.Web.UI.Editor.InsertParagraphCommand.prototype._nodeInsertedHandler = function (args) {
var command = this,
cursor = args.get_cursor(),
container = args.get_container(),
isEmptyContainer = command._isEmptyContainer(container, cursor),
$E = Telerik.Web.UI.Editor,
utils = $E.Utils;
var parentAnchor = utils.getElementParentByTag(cursor, "A");
if (command._isEmptyContainer(parentAnchor, cursor))
command._removeNode(parentAnchor);
if (isEmptyContainer) {
if (command.get_editor().get_enableTrackChanges()) {
var tcUtils = $E.TrackChangesUtils,
parentTrackedInsert = tcUtils.getParentTrackChangesInsertNode(cursor, container),
parentTrackedDelete = tcUtils.getParentTrackChangesDeleteNode(cursor, container);
command._removeNode(parentTrackedInsert);
command._removeNode(parentTrackedDelete);
}
}
};
</script>
Having more than one editor on the page, with EditType="Inline", and using dropdown tools causes the event to be raised for the incorrect editor.