SELECT
[IdentityCity]
AS
City, [Sex]
AS
M/F,
COUNT
(*)
AS
Population
FROM
[Students]
GROUP
BY
[IdentityCity],[Sex]
ORDER
BY
[IdentityCity]
The Radtree is within a step of a wizard control with chekboxes=”true”, TriStateBoxes=”true”, CheckChildNodes=”false” as it’s behaviour.
There is a single top level node and two to three levels of child nodes. If you tick the check box on a 2nd level node, with none of its child nodes selected, when you then change steps in the wizard, and then go back to the step with the radtree, the node you have selected appears un-checked. To tick the node again, you seem to have to click the tick box twice.
On submitting the wizard and iterating through the checked nodes in the code behind like this:
IList<RadTreeNode> nodeCollection = rdtGroups.CheckedNodes;
foreach (RadTreeNode CheckedGroupNode in nodeCollection)
{
…
}
If I put a breakpoint in this loop, I can see that the node that appeared to have unchecked itself is actually in the tree controls ‘CheckedNodes’ collection, but it’s ‘CheckedState’ property reads ‘Unchecked’.
Does anyone know a fix or work around for this? Am I missing something here, that I am doing wrong ?
Nod.Attributes.Add("Key", "Value")
Where Nod is a RadTreeNode, the attributes is added (Node attributes count is increased) but when I retrieved its value using: Nod.Attributes(Key) I always got Nothing.
Best Regards
<
telerik:RadComboBox
runat
=
"server"
ID
=
"RadComboBoxParticipants"
EnableLoadOnDemand
=
"false"
Width
=
"350px"
OnPreRender
=
"RadComboBoxParticipants_PreRender"
AllowCustomText
=
"true"
LoadingMessage
=
"loading.."
OnClientSelectedIndexChanging
=
"OnClientSelectedIndexChanging"
CloseDropDownOnBlur
=
"true"
OnClientDropDownOpening
=
"OnClientDropDownOpening"
OnClientDropDownClosing
=
"OnClientDropDownClosing"
OnClientBlur
=
"OnClientBlur"
OnItemDataBound
=
"RadComboBoxParticipants_ItemDataBound"
>
<
ItemTemplate
>
<
table
>
<
tr
>
<
td
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
onclick
=
"stopPropagation(event, this);"
ToolTip
=
"Adds as option"
/>
</
td
>
<
td
>
<
asp:RadioButton
ID
=
"RadioButton1"
runat
=
"server"
GroupName
=
"Type"
onclick
=
"SetUniqueRadioButton();"
ToolTip
=
"Sets as default"
/>
</
td
>
<
td
>
<%# DataBinder.Eval(Container.DataItem,"FullName") %>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
telerik:RadComboBox
>
var supressDropDownClosing = false;
function OnClientDropDownClosing(sender, eventArgs) {
eventArgs.set_cancel(supressDropDownClosing);
}
function OnClientSelectedIndexChanging(sender, eventArgs) {
eventArgs.set_cancel(supressDropDownClosing);
}
function OnClientDropDownOpening(sender, eventArgs) {
supressDropDownClosing = true;
}
function OnClientBlur(sender) {
supressDropDownClosing = false;
sender.toggleDropDown();
}
function stopPropagation(e, chk) {
e.cancelBubble = true;
if (e.stopPropagation) {
e.stopPropagation();
}
}
I'm currently using version 2009.1.527.35 of the Telerik RadControls for ASP.NET Ajax. When I use the Default Content Filters ( or none) and the user edits the content using the HTML view and adds an then clicks Design and back to HTML, the entity is translated to a space. I narrowed down the issue to the the ConvertToXhtml content filter by a process of elimination.
Is this expected behavior? I did notice that Firefox doesn't exhibit the same behavior--only IE 8. I didn't try IE7 or Chrome.
I don't really care for the result--I'd like to keep XHTML formatting, but I don't really have a choice since the is more critical to the CMS.
Here's how to reproduce the issue:
1) Create a page with the following markup:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebpPrototype._Default" %>
<%@ 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"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
div
>
<
telerik:RadEditor
ID
=
"RadEditor1"
runat
=
"server"
Skin
=
"Black"
ContentFilters
=
"ConvertToXhtml,RemoveScripts,FixUlBoldItalic,IECleanAnchors,FixEnclosingP,MozEmStrong,ConvertFontToSpan,IndentHTMLContent,OptimizeSpans"
>
</
telerik:RadEditor
>
</
div
>
</
form
>
</
body
>
</
html
>
2) View the page in the browser. Click HTML. Add an to the content. Click design. Click back and the &NBSP; has been replaced with spaces.
3) In the page markup, remove the ConvertToXhtml form the ContentFilters. Repeat and see the expected results.