or
| <telerik:RadSplitter runat="server" ID="RadSplitter1" ResizeMode="Proportional" LiveResize="true" Width="100%" Orientation="Horizontal" Height="100%"> |
| <telerik:RadPane runat="server" ID="TopPane" Scrolling="Both" MinHeight="30" Width="100%"> |
| <p>content...</p> |
| </telerik:RadPane> |
| <telerik:RadSplitBar runat="server" ID="RadSplitBar1" ResizeStep="10" Collapsemode="Both" /> |
| <telerik:RadPane runat="server" ID="BottomPane" MinHeight="325" Height="325" Width="100%"> |
| <telerik:RadEditor runat="server" ID="radedit" Height="100%" Width="99%" EnableResize="false" AutoResizeHeight="true"> |
| <Content> |
| </Content> |
| </telerik:RadEditor> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
function onStickyNotePopupSaved() { top.CloseWindowRadWindow('StickyNotePopupWindow'); var ajaxPanel = $find('<% =RadAjaxPanel1.ClientID%>'); ajaxPanel.ajaxRequest('');}/// <summary>/// load the usercontrol that shows the stickynotes content/// </summary>/// <param name="stickyNoteId"></param>/// <param name="panel"></param>private void UpdateToolTip(int stickyNoteId, UpdatePanel panel){ var ctrl = Page.LoadControl("Controls/StickyNoteViewer.ascx"); var stickyNoteView = (IStickyNoteViewerView)ctrl; stickyNoteView.StickyNoteId = stickyNoteId; panel.ContentTemplateContainer.Controls.Add(ctrl); }/// <summary>/// fires by the tooltipmanager, initiate the load of the customcontrol/// </summary>/// <param name="sender"></param>/// <param name="args"></param>protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args){ int stickyNoteId; if (int.TryParse(args.Value, out stickyNoteId)) { UpdateToolTip(stickyNoteId, args.UpdatePanel); }}/// <summary>/// bind the stickynote to the tooltipmanager/// </summary>/// <param name="sender"></param>/// <param name="e"></param>protected void repeaterStickyNotes_ItemDataBound(object sender, RepeaterItemEventArgs e){ var stickyNoteControl = e.Item.FindControl("stickyNoteControl"); var stickyNote = (StickyNote)e.Item.DataItem; RadToolTipManager1.TargetControls.Add(stickyNoteControl.ClientID, stickyNote.StickyNoteID.ToString(), true);}<telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200" EnableShadow="true" HideDelay="1" ID="RadToolTipManager1" Width="463px" Height="220px" RelativeTo="Element" Animation="Slide" Position="TopCenter" OnAjaxUpdate="OnAjaxUpdate" Skin="Telerik" /> <asp:Repeater runat="server" ID="repeaterStickyNotes" OnItemDataBound="repeaterStickyNotes_ItemDataBound"> <ItemTemplate> <div style="text-align: left; margin-right: 5px; float: left;"> <div runat="server" id="stickyNoteControl" style="width: 24px; height: 30px; background-position: center; background-repeat: no-repeat; background-image: url('/App_Themes/CROW/Images/Icon_Pin_Yellow.png');"> </div> </div> </ItemTemplate> </asp:Repeater>the following works but when i try to assign the eval to the text field, I get server tag is not formed correctly. Any idea how to get it to work?
<telerik:RadListBox ID="AssignedFieldsGV" runat="server" Width="375px" Height="500px" AllowTransferOnDoubleClick="true" ItemDataBound ="AssignedFieldsGV_ItemDataBound " SelectionMode="Multiple" EnableDragAndDrop="true" AutoPostBack="true" > <HeaderTemplate> Assigned Fields </HeaderTemplate> <ItemTemplate> <table> <tr> <td style="width:125px;"> <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "Text")%>' /></td> <td style="width:255px;"> <asp:TextBox ID="Label2" runat="server" /> <%# DataBinder.Eval(Container, "Attributes['DisplayName']") %> </td> </tr> </table> </ItemTemplate></telerik:RadListBox>
for label2, when I try to assign it as Text I get server tag is not well formed, any idea whats wrong?
<telerik:RadListBox ID="AssignedFieldsGV" runat="server" Width="375px" Height="500px" AllowTransferOnDoubleClick="true" ItemDataBound ="AssignedFieldsGV_ItemDataBound "
SelectionMode="Multiple" EnableDragAndDrop="true" AutoPostBack="true"
>
<HeaderTemplate>
Assigned Fields
</HeaderTemplate>
<ItemTemplate>
<table>
<tr>
<td style="width:125px;"> <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "Text")%>' /></td>
<td style="width:255px;"> <asp:TextBox ID="Label2" runat="server" Text=' <%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>' /> </td>
</tr>
</table>
</ItemTemplate>
</telerik:RadListBox>


RadGrid1.ClientSettings.EnablePostBackOnRowClick = True
RadGrid1.ClientSettings.ClientEvents.OnRowClick = "On_Row_Click"
AddHandler RadGrid1.ItemCommand, AddressOf RadGrid1_ItemCommand
function On_Row_Click(sender, eventArgs) {
__doPostBack(sender.ClientID, "RowClicked:" + eventArgs.get_itemIndexHierarchical());
}
When a row is clicked, it runs the __doPostBack command above and I catch the postback on the server side in my code behind:
Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)
'Client-side event is caught here !!!
End Sub
Hello,
I have been searching for any example of what I'm trying to achieve, to no avail.
Is it possible to do the following:
I have tried to do this, but I can't seem to persist the newly created zones and docks. How do I accomplish this?
Thanks in advance for any help.