<
telerik:RadWindow Skin="Default" runat="server" ShowContentDuringLoad="false" Width="700px"
Height="500px" Behaviors="Close" Modal="true" ID="RdWindowCO2Refinement" Title="A Window"
VisibleStatusbar="false" OnClientClose="OnClientClose" />
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Main.Test.Default" %> <!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" EnableTheming="True"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </asp:ScriptManager> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> </telerik:RadWindowManager> </form> <script> $(document).ready(function () { var oWindow = window.radopen("Default2.aspx", null); }); </script> </body> </html>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="Main.Test.Default2" %> <!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" EnableTheming="True"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </asp:ScriptManager> <div> default2 </div> </form> <script> $(document).ready(function () { var oWindow = GetRadWindow(); oWindow.add_resize(OnClientResize); }); function OnClientResize(sender, eventArgs) { alert(sender.toString()); } function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; } </script> </body> </html>
<
telerik:RadListBox ID="lstDatasets" runat="server" SelectionMode
Width="250px" Height="200px" Skin
<ButtonSettings TransferButtons="All"></ButtonSettings
</telerik:RadListBox
function
onLoad(sender)
{
var
panelBar=sender;
panelBar.get_items().getItem(1).set_expanded(
true
);
}
<
telerik:RadRating
ID
=
"AvgRatingValue"
OnClientRated
=
"OnClientxRated();"
ReadOnly
=
"true"
runat
=
"server"
Visible
=
"true"
Precision
=
"Half"
EnableEmbeddedSkins
=
"true"
Skin
=
"Default"
></
telerik:RadRating
>
<
script
type
=
"text/javascript"
>
function OnClientxRated(sender, args) {
alert('The rating value was updated');
}
</
script
>
This is the only thing I have been successful with to get the Literal object...
function
onNodeClicking(sender, args)
{
alert(
"OnClientNodeClicking: "
+ args.get_node().get_text()); <-- works
var
literalContent = $(
'#helpContentHolder'
); <-- returns generic object, how to cast?
var
tree = <%= ctrlHelpRadTreeView.ClientID %>; <-- returns HTMLDivElement ??
}
All the client side events below are in place and working...
<
telerik:RadTreeView
ID
=
"ctrlHelpRadTreeView"
runat
=
"server"
CheckBoxes
=
"True"
AllowNodeEditing
=
"True"
EnableDragAndDrop
=
"true"
OnClientNodeClicking
=
"onNodeClicking"
OnClientNodeChecking
=
"onNodeChecking"
OnClientMouseOver
=
"onMouseOver"
OnClientMouseOut
=
"onMouseOut"
OnClientNodeEditStart
=
"onEditStart"
OnClientNodeEditing
=
"onEditing"
OnClientNodeEdited
=
"onEdited"
OnClientNodeDragStart
=
"onNodeDragStart"
OnClientNodeDropping
=
"onNodeDropping"
OnClientNodeExpanded
=
"onNodeExpanded"
OnClientNodeCollapsed
=
"onNodeCollapsed"
OnClientNodeAnimationEnd
=
"onNodeAnimationEnd"
OnClientLoad
=
"onLoad"
BeforeClientClick
=
"BeforeClientClickHandler"
Width
=
"100%"
Height
=
"250px"
Style
=
"border: 1px solid #CBE7F5;"
>
.........
</
telerik:RadTreeView
>
So the handler I am anticipating and have been working with is the OnNodeClicked.
Can anyone shed some light on how I get the literal and set it's text to the databound object in the TreeView?
The attached file shows how I am adapting it from a demo here on the site. The TreeView is not databound at this time. The image is intended to show the two panes side by side (again, inside the user control). The Literal control is visible in the right panel inside the user control.
Thanks!
Reid
Hi.
I know this is a general asp.net question, but I think it's very relavant here:
Is there a way to use <telerik:??? serverside controls in a jquery template.
Ex: A guestbook with comments to each entry.
If I create a set of nested templates for the messages and comments, I would like to use a "Comment" RadButton in the messages template so that each entry would have a "Comment" button. And.. maybe a rating control.
I just can't see how I can use anything but HTML.controls in my templates.
Is there a solution to that.
Thanks
/Jesper