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.

<script type='text/javascript'>
function OnClientLoad(editor, args)
{
editor.add_submit(function ()
{
editor.fire('SelectAll');
editor.fire('FormatStripper', {value : 'WORD'});
alert(editor.get_html());
});
}
</script>

<
telerik:RadListBox ID="RadListBox1" runat="server" AllowReorder="True"
AppendDataBoundItems="True" DataSourceID="SqlDataSource1" DataTextField="Input"
DataValueField="TestTakerOrderID" EnableDragAndDrop="True" Font-Size="Medium"
Width="360px" >
<buttonsettings showreorder="False" />
</telerik:RadListBox>
In the following code i have specified DataKeyNames as "id , abbrev" but while binding to the grid I dont need to show the "id" column.
In this case, how can I fetch the "id" key column using client side API.
<MasterTableView DataKeyNames="id,abbrev" ClientDataKeyNames="id,abbrev">
<Columns>
<telerik:GridBoundColumn DataField="Abbrev" HeaderText="Abbreviation" />
<telerik:GridBoundColumn DataField="MyName" HeaderText="My Name"/>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
With all this being said, how can I implement the drag and drop feature to properly fit my scenario? Maybe having the drag and drop feature only client side, that would probably work...
Here's a short example of what I wish to acheive (server side):
<h2>Pending Orders</h2> <telerik:RadGrid runat="server" ID="grdPendingOrders" OnNeedDataSource="grdShippedOrders_NeedDataSource" OnRowDrop="grdShippedOrders_RowDrop" AllowMultiRowSelection="true"> <MasterTableView DataKeyNames="OrderId"> <Columns> <telerik:GridDragDropColumn Visible="false" /> </Columns> </MasterTableView> <ClientSettings AllowRowsDragDrop="True"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" /> </ClientSettings> </telerik:RadGrid> <h2>Shipped Orders</h2> <telerik:RadGrid runat="server" ID="grdShippedOrders" OnNeedDataSource="grdShippedOrders_NeedDataSource" OnRowDrop="grdShippedOrders_RowDrop" AllowMultiRowSelection="true"> <MasterTableView DataKeyNames="OrderId"> <Columns> <telerik:GridDragDropColumn Visible="false" /> </Columns> </MasterTableView> <ClientSettings AllowRowsDragDrop="True"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" /> </ClientSettings> </telerik:RadGrid> protected void grdShippedOrders_RowDrop(object sender, GridDragDropEventArgs e) { foreach (var item in e.DraggedItems) { grdShippedOrders.MasterTableView.InsertItem(item); //add to destination grdPendingOrders.MasterTableView.PerformDelete(item); //remove from source } } protected void grdPendingOrders_RowDrop(object sender, GridDragDropEventArgs e) { foreach (var item in e.DraggedItems) { grdPendingOrders.MasterTableView.InsertItem(item); //add to destination grdShippedOrders.MasterTableView.PerformDelete(item); //remove from source } }Hope my explanation is clear and thanks for your support.
Eric