Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
99 views
Anyone manage to get the lastest release to work..
It appears that the CDN components are not loaded, as S3 cannot find any of the telerick data?

This happens for all telerik CDN resources, the error below is for http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1215/Default/Ajax.Default.css

What gives? anyone know how to fix this as all of our applciations have stopped working!!!

"x-amz-request-id: 5B44F44ED4B57B14
x-amz-id-2: Z++fwv6or8d5hoso5jr0GZmHdDRFIf57sYcyesPhMR6g1i/FwxJM/nAQZhosIhhL
Content-Type: application/xml
Date: Wed, 15 Dec 2010 20:35:00 GMT
Server: AmazonS3
Age: 53
Content-Length: 301
X-Cache: Error from cloudfront
X-Amz-Cf-Id: c27d8db1333d943ccf2c36be42d14904bc31491f6f0a8e6c3521607f05b3fd863bacabf17ccdae0f,11dde9a06e97df6e385ae7edc7d758d152f5950a33898996189845d11ca39d64a7716c1eb6df030e

Via: 1.0 95d61a85e49613d1aeb8bd7a93537154.cloudfront.net:11180 (CloudFront), 1.0 abe5fd7a524d9a9012cf9ddbca030997.cloudfront.net:11180 (CloudFront)"

Connection: close

Pavel
Telerik team
 answered on 29 Dec 2010
6 answers
254 views

hi,

I Got this error and my radstriptab , OnTabClick occur error. all ajax process failed.. "Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method."

When RadTabStrip clicked, I got this error. I use like that.. Also there is no error on 'Telerik.Web.UI_2010_2_826'  , but I update to 'Telerik.Web.UI_2010_3_1215' version and error occur..  Why the newest version occur that error. ? help...

 

 

<asp:MultiView ID="mwMainProcess" runat="server" ActiveViewIndex="1">
<asp:View ID="vMProcessList" runat="server">
  /// some control
</asp:View>
<asp:View ID="vMProcessEntry" runat="server">
<telerik:RadTabStrip ID="rtsProcess" runat="server" MultiPageID="mwProcess" SelectedIndex="0" OnTabClick="rtsSite_TabClick">
<Tabs>
<telerik:RadTab Selected="True" Text="Deka Emri" Value="0"></telerik:RadTab>
<telerik:RadTab Text="Mteri Bilgileri" Value="1"></telerik:RadTab>
<telerik:RadTab Text=" Bilgileri" Value="2"></telerik:RadTab>
<telerik:RadTab Text="Dkman" Value="3"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="mwProcess" runat="server" SelectedIndex="0">
<telerik:RadPageView ID="vProcessIE" runat="server">
    <uc1:ProcessOrder ID="ProcessOrder1" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="vProcessCInfo" runat="server">
    <uc2:ProcessOrderCINFO ID="ProcessOrderCINFO1" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="vProcessJobInfo" runat="server">
    <uc3:ProcessOrderJobInfo ID="ProcessOrderJobInfo1" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView ID="vProcessDoc" runat="server">
    <uc4:UploadDocuments ID="UploadDocuments1" runat="server" DocumentType="IE" />
</telerik:RadPageView>
</telerik:RadMultiPage>
</asp:View>
</asp:MultiView>

 

Pavel
Telerik team
 answered on 29 Dec 2010
3 answers
65 views
Breaks the clientside selection
Pavel
Telerik team
 answered on 29 Dec 2010
1 answer
107 views
I have a combobox on my page and want to have a tooltip applied to each item in the combobox.
Similar to what is shown for the Telerik RadTree at http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltiptreeview/defaultvb.aspx is the "look" I want for the Combobox Items.

Protected Sub RadComboBox1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles RadComboBox1.ItemCreated
For Each domElementID As String In e.Item.Value
'  use domElementID.ToString()  to load a tooltip similar to the link I provided above
Next
End Sub
Kalina
Telerik team
 answered on 29 Dec 2010
3 answers
187 views
Can you Help?

The Radrotator displays prefectly when running the website locally using Visual Studio 2010 but as soon as I upload the website to my webspace the Radroator within the usercontrol doesn't show. I've tested the usercontrol displays by just adding some random text, so I must be missing something with the Rotator somewhere.

Has anyone got any ideas what the problem might be? What am I missing chaps?:

Rotator.ascx
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Rotator.ascx.vb" Inherits="Controls_Rotator" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
                   <telerik:RadRotator ID="RadRotator1" runat="server" Width="300px" Height="600px" ScrollDuration="5000" FrameDuration="5000"
                    ItemWidth="300" ScrollDirection="Down" ItemHeight="300">
                    <ItemTemplate>
                        <div class="itemTemplate">sadasdsasadsadadsa
                            <img src='<%# Page.ResolveUrl("~/Pictures/") + Container.DataItem %>.jpg' alt="Customer Image" />
                        </div>
                    </ItemTemplate>
                </telerik:RadRotator>
             </telerik:RadAjaxPanel>


************
Rotator.ascx.vb

Partial Class Controls_Rotator

    Inherits System.Web.UI.UserControl
    Private Property clients As String()
    Private Property document As Object

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        RadRotator1.DataSource = GetRotatorDataSource()
        RadRotator1.DataBind()
    End Sub

    Private Function GetRotatorDataSource() As String()
        Dim Currentpage As String
        Currentpage = System.IO.Path.GetFileName(Request.Url.ToString())
        If Currentpage = "New_Builds.aspx" Then
            ' MsgBox("heloo")
            Dim clients As String() = {"new_1", "new_2", "new_3", "new_4"}
            Return clients
        ElseIf Currentpage = "Landscaping.aspx" Then
            Dim clients As String() = {"land_1", "land_2", "land_3", "land_4", "land_5"}
            Return clients
        ElseIf Currentpage = "Renovations-Extensions.aspx" Then
            Dim clients As String() = {"ren_1", "ren_2", "ren_3", "ren_4", "ren_5", "ren_6"}

            Return clients
        End If
        Return clients
    End Function
End Class

ASPX Page

%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="New_Builds.aspx.vb" Inherits="Pages_New_Builds" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register src="../Controls/Rotator.ascx" tagname="Rotator" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
   
    <div class="ex">
    
        <uc1:Rotator ID="Rotator1" runat="server" />
    
    </div>


Fiko
Telerik team
 answered on 29 Dec 2010
3 answers
102 views
I have built a control in Sitefinity that uses the RadRotator.  I have added two meta fields to the blog module, one boolean called Featured_Post and an image from the image library called Featured_Thumbnail.

My problem is with the display of the item in the rotator.  There seems to be a section of post on the left side I can't get rid of (please see screen shot) with each rotation (automatic advance) it leave a small section of the last post on the screen.

I will attach a screen shot of the problem, my code is below. Thanks for your help

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator 
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FeaturedPost.ascx.cs" Inherits="FeaturedPost" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .rotator
    {
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        width: 700px;
        height: 200px;
    }
</style>
    <telerik:RadRotator ID="RadRotator1" runat="server" Height="200"
        ScrollDuration="500" FrameDuration="2000" ItemHeight="200" OnItemDataBound="RotatorItemDataBound" RotatorType="AutomaticAdvance"
        ItemWidth="100" CssClass="rotator" BorderStyle="Solid" BorderWidth="1px">
        <ItemTemplate>
            <div style="width:100px; height:200px;">
                <div style="overflow:hidden; margin-bottom:2px;">
                    <asp:Image runat="server" ID="fpImage" Width="100px" Height="100px" />
                </div>
                <div style="overflow:hidden; width:100px; height:95px; margin-bottom:3px">
                    <asp:HyperLink runat="server" ID="fpLink" />
                </div>
            </div>
        </ItemTemplate>
    </telerik:RadRotator>


using System;
using System.Web;
using System.Web.UI.WebControls;
using Telerik.Cms.Web.UI;
using System.ComponentModel;
using Telerik.Rss;
using Telerik.Framework.Web.Design;
using Telerik.Cms.Engine;
using Telerik.Cms;
using Telerik.Blogs;
using System.Text;
using System.Collections;
 
public partial class FeaturedPost : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadRotator1.Width = ControlWidth;
 
        BlogManager manager = new BlogManager();
        IList posts;
        if (selectedBlogs != null)
            posts = manager.Content.GetContent(0, 0, "", selectedBlogs);
        else
            posts = manager.Content.GetContent();
 
        if (posts.Count > 0)
        {
            ArrayList myFeaturedPosts = new ArrayList();
            for (int i = 0; i < posts.Count; i++)
            {
                IContent item = (IContent)posts[i];
 
                if ((Boolean)item.GetMetaData("Featured_Post"))
                {
                    rotatorObject tempR = new rotatorObject();
                    IBlog blog = manager.GetBlog(item.ParentID);
                    tempR.URL = GetUrl(blog.BlogPage.Replace(".aspx", "/") + item.UrlWithExtension);
                    tempR.Title = item.GetMetaData("Title").ToString();
                    if (item.GetMetaData("Featured_Thumbnail") != null)
                    {
                        string tempImageURL = item.GetMetaData("Featured_Thumbnail").ToString().Trim();
                        if (tempImageURL != string.Empty)
                        {
                            tempR.imageURL = tempImageURL;
                        }
                    }
 
                    myFeaturedPosts.Add(tempR);
                }
 
            }
 
            RadRotator1.DataSource = myFeaturedPosts;
            RadRotator1.DataBind();
        }
 
         
 
    }
 
    protected void RotatorItemDataBound(object sender, Telerik.Web.UI.RadRotatorEventArgs e)
    {
        Image i = (Image)e.Item.FindControl("fpImage");
        HyperLink h = (HyperLink)e.Item.FindControl("fpLink");
 
        rotatorObject r = (rotatorObject)e.Item.DataItem;
 
        i.ImageUrl = r.imageURL;
        h.Text = r.Title;
        h.NavigateUrl = r.URL;
    }
 
    #region Properties
 
    public int ControlWidth
    {
        get
        {
            if (ViewState["ControlWidth"] == null)
                return 400;
 
            return int.Parse(ViewState["ControlWidth"].ToString());
        }
        set { ViewState["ControlWidth"] = value; }
    }
 
    [TypeConverter("Telerik.Blogs.WebControls.SelectedBlogsConverter, Telerik.Blogs")]
    [WebEditor("Telerik.Blogs.WebControls.BlogsSelector, Telerik.Blogs")]
    public Guid[] SelectedBlogs
    {
        get
        {
            return this.selectedBlogs;
        }
        set
        {
            this.selectedBlogs = value;
        }
    }
    public virtual string ProviderName
    {
        get
        {
            return this.providerName;
        }
        set
        {
            this.providerName = value;
        }
    }
    private Guid[] selectedBlogs;
    private string providerName = string.Empty;
 
    #endregion
 
    public string GetUrl(string value)
    {
        // if our value starts with ~/  
        // we return url 
        if (value.StartsWith("~/"))
            return this.ResolveUrl(value);
 
        if (value.StartsWith("["))
        {
            int idx = value.IndexOf("]");
            //getting the provider [Libraries] 
            string provider = value.Substring(1, idx - 1);
            string strId = value.Substring(idx + 1);
            Guid id = new Guid(strId);
 
            if (ContentManager.Providers.ContainsKey(provider))
            {
                IContent cnt = ContentManager.Providers[provider].GetContent(id);
                if (cnt != null)
                    return VirtualPathUtility.ToAbsolute(cnt.UrlWithExtension, this.Context.Request.ApplicationPath);
            }
        }
        return value.ToString();
    
 
    public class rotatorObject
    {
        public string imageURL
        { get; set; }
        public string URL
        { get; set; }
        public string Title
        { get; set; }
    }
}
Fiko
Telerik team
 answered on 29 Dec 2010
2 answers
99 views
Today I upgraded from 2010.2.929 to the Q3 SP1 release, and suddenly the expand right arrow image stopped showing entirely on my context menus. It appears only when the user hovers of the menu item. This behavior occurs in all browsers, in every skin I tested. My project has no custom CSS for the menu. The menu is being databound via an XML file. I tried clearing my browser cache.

Has anyone else noticed this behavior? The online demos do not include a context menu with a submenu, so I can't check to see if it is supposed to be working in this release.
Kamen Bundev
Telerik team
 answered on 29 Dec 2010
1 answer
153 views
I have a RadGrid with pagesize of 5 that is bound to a datatable. If my datatable only has 6 rows, the second page of the grid resizes to only display 1 row. I don't like the control resizing and would prefer that it alwas shows 5 rows per page (padding blank rows on the last page where necessary). Is this possible?
Vasil
Telerik team
 answered on 29 Dec 2010
19 answers
1.4K+ views
Hello,

I have a radgrid on a page.  On pageload I would like to open the form template of the radgrid in insert mode so that a user can insert without having to click the "Add new record" link.  Is this possible?  If so, how can it be done?  Below is the radgrid code:

<

rad:RadGrid ID="grd" runat="server" AutoGenerateColumns="false" AllowSorting="true" Skin="None"

CssClass="" GridLines="Horizontal" OnNeedDataSource="NeedDataSource" OnItemCommand="ItemCommand"

OnUpdateCommand="UpdateCommand" OnDeleteCommand="DeleteCommand" OnInsertCommand="InsertCommand"

EnableAJAX="true">

<MasterTableView DataKeyNames="ID" CommandItemDisplay="Bottom" >

<HeaderStyle CssClass="" />

<AlternatingItemStyle CssClass="" />

<Columns>

<rad:GridTemplateColumn UniqueName="ID"  SortExpression="ID" >

<ItemStyle CssClass="" />

<ItemTemplate>

<%

#  %>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName="" HeaderText="" SortExpression="">

<ItemStyle CssClass="" />

<ItemTemplate>

<%

#  %>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName=n" >

<ItemStyle CssClass="" />

<ItemTemplate>

<%

# %>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName=""  SortExpression="">

<ItemStyle CssClass="" />

<ItemTemplate>

<%

# Eval("")%>

</ItemTemplate>

</rad:GridTemplateColumn>

<rad:GridTemplateColumn UniqueName="">

<ItemStyle CssClass=""/>

<ItemTemplate>

<asp:ImageButton runat="server" ID="btnEdit"  CommandName="Edit"/>

<asp:ImageButton runat="server" ID="btnDelete"  CommandName="Delete"

OnClientClick="" CommandArgument='<%# Eval("")%>'/>

</ItemTemplate>

</rad:GridTemplateColumn>

</Columns>

<EditFormSettings EditFormType="Template">

<FormTemplate>

<div class="">

<asp:Label runat="server" ID="lblAddEditTitle" ></asp:Label>

</div>

<div class="editRow">

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:DropDownList runat="server" ID=""></asp:DropDownList>

</div>

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:TextBox runat="server" ID="" CssClass="" Text=''></asp:TextBox>

</div>

</div>

<div class="editRow">

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:DropDownList runat="server" ID=""></asp:DropDownList>

</div>

<div class="editTitleColumn">

 

</div>

<div class="editColumn">

<asp:TextBox runat="server" ID="" TextMode="MultiLine" Rows="3" CssClass=""></asp:TextBox>

</div>

</div>

<div class="row">

<div class="column">

<asp:ImageButton runat="server" ID="btnUpdate"

CommandName='' />&nbsp;

</div>

<div class="column">

<asp:ImageButton runat="server" ID="btnCancel"  CommandName="Cancel" />

</div>

</div>

</FormTemplate>

</EditFormSettings>

<CommandItemTemplate>

<div class="commandItem">

<asp:LinkButton runat="server" ID="btnAddEntry" Text="Add New Entry" CommandName="InitInsert"></asp:LinkButton>

</div>

</CommandItemTemplate>

</MasterTableView>

</rad:RadGrid>

Thank you,

Jennifer

Marin
Telerik team
 answered on 29 Dec 2010
3 answers
672 views
I have a FileExplorer control that displays a directory structure in a tree/grid combination.  I have successfully changed the style of the grid so that the selected rows are the color that I want, but I cannot figure out how to change the color of the selected node in the tree.

Can anyone help me out?
Bozhidar
Telerik team
 answered on 29 Dec 2010
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?