Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
109 views
Hi,
    I am using telerik controls in my website project.
But after sometime I got following error-
Error - "The state information is invalid for this page and might be corrupted."
    Please see the attached image file for more details.

please guide me.
Thanks,
Abhi
Abhi Shinde
Top achievements
Rank 1
 asked on 24 Jul 2011
1 answer
65 views
Hi,

I have a a delete button on my grid.i want to perform delete operation after clicking ok button on radwindow confirm.
Can you help me please.

i am using itemcommand for catch delete button.

if (e.CommandName == "Delete")
{

}
Jayesh Goyani
Top achievements
Rank 2
 answered on 23 Jul 2011
5 answers
616 views

Dir sir,
I want set value RadateTimePicker with javascript:

 

var

 

radStartTime = $find("<%= RadDateTime_BD.ClientID %>")

radStartTime.set_selectedDate(

"2010,2,2,8,30,0");

But not working,
Can you help me?
Thanks for support,
Brgs,

 

Roshil
Top achievements
Rank 1
 answered on 23 Jul 2011
1 answer
70 views
I'm working on a report-configuration web app. I have the properties of a business object's members represented by child nodes in a RadTreeView and would like to be able to drag those nodes to a RadPanelBar. The PanelBarItems would then be populated by user controls I have already made that represent reporting options for each of the "properties" (i.e. nodes) that were selected from the TreeView. (the PanelBarItems will then be used for configuring a report).

Is it possible to drag and drop nodes from a RadTreeView to a RadPanelBar?
Justin
Top achievements
Rank 2
 answered on 22 Jul 2011
1 answer
116 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
67 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
127 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
247 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
483 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?