Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
I am currently creating and opening a RadWindow in the code behind using the RadWindowManager. The RadWindow opens without issue until I add a RadAjaxPanel. I was wondering how I can still get the RadWindow to open with a RadAjaxPanel. Below is the code I have:

ASP.NET:

<telerik:RadAjaxLoadingPanel ID="LocationsLoadingPanel" runat="server" Transparency="30" Skin="Vista"></telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="LocationsPanel" runat="server" LoadingPanelID="LocationsLoadingPanel">
            <telerik:RadTreeView ID="LocationsTreeView" runat="server" EnableDragAndDrop="true"  MultipleSelect="true" EnableDragAndDropBetweenNodes="true"
            AllowNodeEditing="true" OnContextMenuItemClick="LocationsTreeView_ContextMenuItemClick" OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
            OnClientContextMenuShowing="onClientContextMenuShowing" OnNodeEdit="LocationsTreeView_NodeEdit"
            OnNodeDrop="LocationsTreeView_NodeDrop" OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging">
             <ContextMenus>
                    <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
                        <Items>
                            <telerik:RadMenuItem Value="Rename" Text="Rename ..." Enabled="true" ImageUrl="images/icons/edit_48.png"
                                PostBack="false">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem IsSeparator="true">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem Value="addLocation" Text="Add Location" ImageUrl="images/icons/add_16.png">
                            </telerik:RadMenuItem>    
                            <telerik:RadMenuItem Value="editDetails" Text="Edit Details" PostBack="true" />                
                        </Items>
                        <CollapseAnimation Type="none" />
                    </telerik:RadTreeViewContextMenu>
                </ContextMenus>
            </telerik:RadTreeView>
        </telerik:RadAjaxPanel>
        <telerik:RadWindowManager ID="locationRadWindow" runat="server" />

C#:

RadWindow window1 = new RadWindow();
window1.NavigateUrl = "http://www.google.com";
window1.VisibleOnPageLoad = true;
window1.Width = 500;
window1.Height = 300;
window1.VisibleOnPageLoad = true;
locationRadWindow.Windows.Add(window1);



Thanks!
William
Top achievements
Rank 1
 answered on 22 Jul 2011
0 answers
70 views
I was curious if anyone has been able to do something similar to the RAD Menu Mega Drop Down (http://demos.telerik.com/aspnet-ajax/menu/examples/megadropdown/defaultcs.aspx) on hovering over a row or cell from a RAD Grid? A customer had suggested something similar to a Netflix style of hovering over a row to see a well-formatted and expanded detail version of the data.

Scott
Top achievements
Rank 1
 asked on 22 Jul 2011
3 answers
128 views
Where can I get a documentation definition of the get_itemIndexHierarchical method and other such methods?

Thanks.
sergey
Top achievements
Rank 1
 answered on 22 Jul 2011
1 answer
80 views
Hi team!

We are getting into trouble in because of hyperlinks created at RAD Editor are not clickable when working in Internet Explorer. I've checked and faced the same issue at your DEMO: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

Is that possible to have this fixed?

Regards,
Vladimir Yegorov
Logic Software support specialist.
Rumen
Telerik team
 answered on 22 Jul 2011
3 answers
255 views
My RadGrid has several pages. when i add new item, the page is defaulting to the last page. as the new item shows on first page, how to default to first page after adding new item in rad grid.
Chinna
Top achievements
Rank 1
 answered on 22 Jul 2011
5 answers
514 views
Hi.
I'm getting this error using a RadToolTipManager, related to a control (RadioButton) inside a gridView.

When I click on RadioButton, I want the tooltip to appear. The tooltip refers to a UserControl.

I attach the code, if needed.

Thanks in advance.

Leo

RadToolTip.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="radtooltip.aspx.cs" Inherits="WebApplication1.radtooltip" %>
 
<%@ Register Assembly="Telerik.Web.UI, Version=2010.2.713.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="MasterScriptManager" runat="server" AsyncPostBackTimeout="300"
        ScriptMode="Release">
        </asp:ScriptManager>
        <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="Center"
            RelativeTo="Element" Width="400px" Height="200px" Animation="Resize" Skin="Default"
            OnAjaxUpdate="OnAjaxUpdate" ShowEvent="OnClick" EnableShadow="true" RenderInPageRoot="true"
            ShowDelay="0">
        </telerik:RadToolTipManager>
        <asp:GridView ID="AttivitaGv" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" OnRowDataBound="AttivitaGV_RowDataBound" Width="950px"
            ViewStateMode="Enabled" CellPadding="3">
            <columns>
            <asp:TemplateField
                ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
                <ItemTemplate>
                    <asp:RadioButton ID="rbPianificata" runat="server" GroupName="StatoAttivita" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField
                ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
                <ItemTemplate>
                    <asp:RadioButton ID="rbEffettuata" runat="server" GroupName="StatoAttivita" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField
                ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
                <ItemTemplate>
                    <asp:RadioButton ID="rbAnnullata" runat="server" GroupName="StatoAttivita" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField
                ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
                <ItemTemplate>
                    <asp:RadioButton ID="rbRipianificata" runat="server" GroupName="StatoAttivita" />
                </ItemTemplate>
            </asp:TemplateField>
        </columns>
            <pagersettings mode="NumericFirstLast" />
            <alternatingrowstyle cssclass="GridAlternating" />
            <editrowstyle cssclass="GridEdit" />
            <footerstyle cssclass="GridFooter" />
            <headerstyle cssclass="GridHeader" />
            <pagerstyle cssclass="GridPager" />
            <rowstyle cssclass="GridRow" />
            <selectedrowstyle cssclass="GridSelectedRow" />
            <sortedascendingcellstyle cssclass="GridSortedCells" />
            <sortedascendingheaderstyle cssclass="GridSortedHeader" />
            <sorteddescendingcellstyle cssclass="GridSortedCells" />
            <sorteddescendingheaderstyle cssclass="GridSortedHeader" />
        </asp:GridView>
</asp:Content>

RadToolTip.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace WebApplication1
{
    public partial class radtooltip : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<Item> items = new List<Item>();
            items.Add(new Item() { IdCliente = 1, Email = "Mark" });
            items.Add(new Item() { IdCliente = 2, Email = "Jon" });
            items.Add(new Item() { IdCliente = 3, Email = "Frank" });
            items.Add(new Item() { IdCliente = 4, Email = "Mark" });
 
            AttivitaGv.DataSource = items;
            AttivitaGv.DataBind();
        }
 
        protected void AttivitaGV_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            try
            {
                if (e.Row.RowType == DataControlRowType.DataRow)
                {
                    this.RadToolTipManager1.TargetControls.Add(((RadioButton)e.Row.FindControl("rbPianificata")).ClientID,
                            "123", true);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
        }
 
        protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }
 
        private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("AttivitaShort.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            AttivitaShort details = (AttivitaShort)ctrl;
            details.ConfigureView(int.Parse(elementID));
        }
 
        public class Item
        {
            private int id;
 
            public int IdCliente
            {
                get { return id; }
                set { id = value; }
            }
            private string name;
 
            public string Email
            {
                get { return name; }
                set { name = value; }
            }
        }
    }
}

AttivitaShort.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AttivitaShort.ascx.cs" Inherits="WebApplication1.AttivitaShort" %>
<asp:Label ID="lbl1" runat="server"></asp:Label>

AttivitaShort.ascx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace WebApplication1
{
    public partial class AttivitaShort : System.Web.UI.UserControl
    {
 
        protected void Page_Load(object sender, EventArgs e)
        {
        }
 
        public void ConfigureView(int IdCliente)
        {
            lbl1.Text = IdCliente.ToString();
        }
    }
}
Marin Bratanov
Telerik team
 answered on 22 Jul 2011
3 answers
112 views
Hi

We have a radwindow that is used to display a variety of reports

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false"
        ReloadOnShow="true" RestrictionZoneID="MainArea">
        <Windows
            <telerik:RadWindow ID="ReportWindow1" runat="server" KeepInScreenBounds="True" Modal="True"                
                Behaviors="Close,Maximize" Height="800px" Width="1000px"
                ShowContentDuringLoad="True"  Title=""  EnableEmbeddedSkins="False" DestroyOnClose="False">
            </telerik:RadWindow>              
        </Windows>
    </telerik:RadWindowManager>

The issue is that if you close the window when it had one report open and reopen it with a new report, the previous title is displayed until the page loads.

This happens even if destroyonclose is set to true (for some reason it also ignores the sizeing when you open it the second time as well when destroyoclose is tue)

Why does it do this?

Cheers

Marin Bratanov
Telerik team
 answered on 22 Jul 2011
6 answers
158 views
Hi, during debugging with VS 2008 (Q2 2008 build 723) we remarked the following behavior:

On the first request to the page, we have the page load event called, and then a series of TimeSlotCreated event raised.  Then if we cause a refresh of the scheduler using ajax  (we click on the day or week button on the ajaxified scheduler) , we notice that the TimeSlotCreated event are fired before the page load event, and then again after the page load event, which  caused us problems.

We noticed this after upgrading from the future build  (708) to the release sp2 build (723).  In the future build, the TimeSlotCreated  event is always raised after the page load event.

We can fix our problem, but i'd like to know why the behavior is different (set of TimeSlotCreated  raised twice in the latest build)

Thanks
Plamen
Telerik team
 answered on 22 Jul 2011
10 answers
521 views
hi,

I have a button. On click of the button (server side) i am displaying a rad window(modal). What should i do to display the rad window in the 'top-left corner' of the browser instead of center.

Regards,
Shashank V

Marin Bratanov
Telerik team
 answered on 22 Jul 2011
7 answers
2.3K+ views
I am using RadControl AJAX, I want to open a radwindow from code behind after some functions are handled, I try to use registerStartupScript as below:
string newWindowUrl = "Popups/Default1.aspx?WindowArgs=" + windowArgs;
           string javaScript =
            "<script type='text/javascript'>\n" +
            "<!--\n" +
            "var newwindow =  window.radopen('" + newWindowUrl + "' +',' + 'RadWindow1');\n" +
            "newwindow.focus();\n" +
             "// -->\n" +
            "</script>\n";
           Page.ClientScript.RegisterStartupScript(t, "Email", javaScript);
           
and my aspx page is:
<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" EnableViewState="true"
      ReloadOnShow="true" runat="server" Skin="Default" EnableShadow="false" >
      <Windows>
          <telerik:RadWindow ID="RadWindow1" VisibleTitlebar="false" runat="server" Behaviors="Close, Move, Resize" AutoSize="true" NavigateUrl="~/Popups/Default1.aspx">
          </telerik:RadWindow>
      </Windows>
  </telerik:RadWindowManager>

But it doesn't work. Any suggestions?

Thanks in advance!
Marin Bratanov
Telerik team
 answered on 22 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?