Hi,
I'm trying to resolve an accessibility issue with the raddatepicker control. I ran across the below page discussing it's compliance.
https://demos.telerik.com/aspnet-ajax/datepicker/accessibilityandinternationalization/wcag2.0andsection508accessibility/defaultcs.aspx
But when you click on the link to test compliance using the wave tool, it shows errors. Specifically, an empty TH element in the first row of the calendar (to the left of the "Sunday" heading, and above the week number).
To complicate my situation, the calendar is automatically generated in a grid for filtering a date column, and the columns are dynamically generated. I've got code that finds the correct control during the item created event for the filter item. But setting the EnableAriaSupport still has the same accessibility error shown on your demo page. Is there another property that will address this?
The column with the empty TH is the week number. An option for me might be to remove the week number column. Is there a setting to do that or can you suggest some sample code for doing that?
Thanks,
When I insert a link into the editor, the & characters in the query string are getting converted to &
Mostly, I don't mind - the links still work on web pages. However, in some email clients (looking at you, Outlook...) the & entities break the link
I am not using the ConvertCharactersToEntities filter
Is there a way I can prevent this from happening?
I tried this on the content filter demo - I turned off ConvertCharactersToEntities and characters still got converted
I am using the Diagram-app sample to build my application. I need add option to change text from Shape.
I added the code:
<div class="configRow">
<label class="configLabel">Texto</label>
<div class="configControlContainer">
<telerik:RadTextBox ID="shapeText" runat="server" EnabledStyle-HorizontalAlign="Right" MaxLength="50" MinValue="0" Width="110px">
<ClientEvents OnBlur="updateShapeText" />
</telerik:RadTextBox>
</div>
</div>
But the client function "updateShapeText" not work !!!
function updateShapeText(sender, args) {
if (skipShapeConfigEvent) {
return true;
}
var diagram = getDiagram();
selection = diagram.select();
selection[0].shapeVisual.options.content.text = sender.get_value();
}
Could you help me ?
protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e)
{
Widget _widget = new Widget();
List<DockState> _currentDockStates = _widget.GetCurrentDockStates((Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).KeyID, DebugFormName);
foreach (DockState state in _currentDockStates)
{
e.Positions[state.UniqueName] = state.DockZoneID;
e.Indices[state.UniqueName] = state.Index;
}
}
protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)
{
List<DockState> stateList = RadDockLayout1.GetRegisteredDocksState();
StringBuilder serializedList = new StringBuilder();
Widget _widget = new Widget();
List<DockState> _currentDockStates = _widget.GetCurrentDockStates((Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).KeyID, DebugFormName);
bool state_closed;
foreach (DockState _dockState in stateList)
{
state_closed = false;
foreach (DockState _dockState2 in _currentDockStates)
{
if (_dockState2.UniqueName == _dockState.UniqueName)
{
if (_dockState2.Closed)
{
state_closed = true;
serializedList.Append(_dockState2.ToString());
serializedList.Append(";");
}
}
}
if (!state_closed)
{
serializedList.Append(_dockState.ToString());
serializedList.Append(";");
}
}
string dockState = serializedList.ToString();
if (dockState.Trim() != String.Empty)
{
DbUtils.SetUserSetting((Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).KeyID, "Default", "WidgetState", dockState);
}
}
private RadDock CreateRadDockFromState(DockState state)
{
Widget widget = new Widget();
XPOWidgetSettings xpoWidgetSettings = widget.getWidgetSettingsObjectById(state.UniqueName);
RadDock dock = new RadDock();
dock.DockMode = DockMode.Docked;
dock.ID = string.Format("RadDock{0}", state.UniqueName);
dock.ApplyState(state);
DockExpandCollapseCommand cmd = new DockExpandCollapseCommand();
dock.Commands.Add(cmd);
return dock;
}
private RadDock CreateRadDock(string oid, string displayName, string widgetSettings)
{
RadDock dock = new RadDock();
dock.DockMode = DockMode.Docked;
dock.UniqueName = oid;
dock.ID = string.Format("RadDock{0}", dock.UniqueName);
DockCloseCommand closeCmd = new DockCloseCommand();
dock.Commands.Add(closeCmd);
DockExpandCollapseCommand cmd = new DockExpandCollapseCommand();
dock.Commands.Add(cmd);
return dock;
}
private void CreateSaveStateTrigger(RadDock dock)
{
//Ensure that the RadDock control will initiate postback
// when its position changes on the client or any of the commands is clicked.
//Using the trigger we will "ajaxify" that postback.
dock.AutoPostBack = true;
dock.CommandsAutoPostBack = true;
AjaxUpdatedControl updatedControl = new AjaxUpdatedControl();
updatedControl.ControlID = "Panel1";
AjaxSetting setting1 = new AjaxSetting(dock.ID);
setting1.EventName = "DockPositionChanged";
setting1.UpdatedControls.Add(updatedControl);
AjaxSetting setting2 = new AjaxSetting(dock.ID);
setting2.EventName = "Command";
setting2.UpdatedControls.Add(updatedControl);
RadAjaxManager1.AjaxSettings.Add(setting1);
RadAjaxManager1.AjaxSettings.Add(setting2);
}
private void LoadUserWidgets()
{
Widget widget = new Widget();
string radDockID;
string displayName;
string settingString;
List<DockState> _currentDockStates = widget.GetCurrentDockStates((Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).KeyID, DebugFormName);
XPCollection widgetSettingsObjectsByUserLevel = widget.getWidgetSettingsObjectsByUserLevel((Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).Userrole);
Boolean _doContinue;
foreach (XPOWidgetSettings _widgetSetting in widgetSettingsObjectsByUserLevel)
{
_doContinue = false;
radDockID = _widgetSetting.Oid.ToString();
displayName = _widgetSetting.DisplayName;
settingString = _widgetSetting.Settings;
foreach (DockState _ds in _currentDockStates)
{
if (_ds.UniqueName == radDockID)
_doContinue = true;
}
if (_doContinue) continue;
RadDock dock = CreateRadDock(radDockID, displayName, settingString);
//find the target zone and add the new dock there
//adding the dock to the docklayout and then docking it to the zone to avoid ViewState issues on subsequent postback
RadDockLayout1.Controls.Add(dock);
dock.Dock(DZCenter);
CreateSaveStateTrigger(dock);
//Load the selected widget in the RadDock control
dock.Tag = _widgetSetting.AscxFile;
LoadWidget(dock);
}
}
private void LoadWidget(RadDock dock)
{
string siteUrl = TCFramework.TCConfigSettings.HostUrlGroups + Session[TCSessionConst.SessionFrmDefault_SelGroup];
string userName = (Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).Username;
string password = (Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).GetPassword();
string ascxFile = "";
string settings = "";
string oId = dock.UniqueName;
Widget widget = new Widget();
XPOWidgetSettings xpoWidgetSettings = widget.getWidgetSettingsObjectById(oId);
ascxFile = xpoWidgetSettings.AscxFile;
settings = xpoWidgetSettings.Settings;
Control widgetControl = LoadControl(ascxFile);
if (widgetControl != null)
dock.ContentContainer.Controls.Add(widgetControl);
}
private void CreateDocksFromStateDB()
{
Widget _widget = new Widget();
List<DockState> _currentDockStates = _widget.GetCurrentDockStates((Session[TCSessionConst.SessionFrmDefault_XpoUser] as XpoUser).KeyID, DebugFormName);
for (int i = 0; i < _currentDockStates.Count; i++)
{
RadDock dock = CreateRadDockFromState(_currentDockStates[i]);
dock.Visible = !_currentDockStates[i].Closed;
RadDockLayout1.Controls.Add(dock);
//We want to save the dock state every time a dock is moved.
if (dock.Visible) CreateSaveStateTrigger(dock);
}
}
protected void Page_Init(object sender, EventArgs e)
{
CreateDocksFromStateDB();
}
protected void Page_Load(object sender, EventArgs e)
{
foreach (RadDock _rd in RadDockLayout1.RegisteredDocks)
try
{
LoadWidget(_rd);
}
catch
{
//error in loading widget _rd.
}
if (!IsPostBack)
{
LoadUserWidgets();
}
}
Default.aspx
<div>
<telerik:RadDockLayout ID="RadDockLayout1" runat="server"
onloaddocklayout="RadDockLayout1_LoadDockLayout"
onsavedocklayout="RadDockLayout1_SaveDockLayout">
<table width="100%" cellpadding="12px">
<tr>
<td width="25%" valign="top">
<telerik:RadDockZone ID="DZLeft" runat="server" BackColor="#BFDBFF"
ForeColor="#BFDBFF">
</telerik:RadDockZone>
</td>
<td width="50%" valign="top">
<telerik:RadDockZone ID="DZCenter" runat="server" BackColor="#BFDBFF"
Visible="True" ForeColor="#BFDBFF">
</telerik:RadDockZone>
</td>
<td width="25%" valign="top">
<telerik:RadDockZone ID="DZRight" runat="server" BackColor="#BFDBFF"
ForeColor="#BFDBFF">
</telerik:RadDockZone>
</td>
</tr>
</table>
</telerik:RadDockLayout>
</div>
<div style="width: 0px; height: 0px; overflow: hidden; position: absolute; left: -10000px;">
Hidden UpdatePanel, which is used to help with saving state when minimizing, moving
and closing docks. This way the docks state is saved faster (no need to update the
docking zones).
<asp:UpdatePanel runat="server" ID="UpdatePanel1">
</asp:UpdatePanel>
</div>
Occurs in IE11, IE10, or IE9 (Works in IE8).
Unable to select other rows in copied table or edit table cells.
I have run into a whole bunch of problems with the editor control on iPhone/Safari devices in the latest release. The .focus() client-side method doesn't appear to work when inside a timeout. In this case, the editor can never receive focus either. Touching inside the editor does not bring up the keyboard.
Without a timeout, the editor receives focus and the keyboard comes up, however, when users type, no letters are displayed. THe cursor moves along as if typing is occurring, but nothing is shown in the editor. I tried the Lightweight RenderMode, which didn't look very good in iOS. I tried the Mobile Rendermode, which displayed better, but didn't function properly. Typing in the editor would display a white screen which covered the rest of the site and could never be recovered.
I have reverted back to a previous version of the controls (Q1). Needing to do this is becoming an all-too frequent occurrence.
Hi:
I copy those code from local demo on my empty and practice site.
<telerik:RadMediaPlayer RenderMode="Lightweight" ID="RadMediaPlayer1" runat="server" AutoPlay="true"
Height="360px" Width="640px">
<PlaylistSettings YouTubePlaylist="PLvmaC-XMqeBb991YNEWAHYL9ZJAeURr-r" Mode="Buttons" ButtonsTrigger="MouseDown" />
</telerik:RadMediaPlayer>
but when I run, only media player and other nothig.
The same code on local demo can run very well, What's happen on my site ?
protected
void
RadGrid1_ItemCommand(
object
sender, GridCommandEventArgs e)
{
if
((e.CommandName == RadGrid.PerformInsertCommandName) || (e.CommandName == RadGrid.UpdateCommandName))
{
GridEditableItem saveableItem = (GridEditableItem)e.Item;
SaveItems(saveableItem, e.Item.OwnerTableView.IsItemInserted);
}
}