Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hi
I have a problem following this demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx#
i can't load the user control in this code
 private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("ProductDetailsCS.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            ProductDetailsCS details = (ProductDetailsCS)ctrl;
            details.ProductID = elementID;
        }

 
ProductDetailsCS not found. 
i need your help, may be i doing something wrong.
thk.
Fernando
Top achievements
Rank 1
 answered on 29 Aug 2011
1 answer
59 views

Im getting the attached error with a radcombobox set up as descrubed below:

<telerik:RadComboBox ID="radComboBoxClientName" runat="server" Filter="Contains"
              Width="300px" Height="300" DataTextField="ClientAltName" DataValueField="ClientId"
              AutoPostBack="True" CausesValidation="false" EnableLoadOnDemand="True" EnableVirtualScrolling="true"
              EmptyMessage="No Client Selected" OnClientItemsRequesting="OnKPClientItemsRequesting">
              <WebServiceSettings Method="GetClients" Path="~/Services/AutoCompleteService.svc" />
          </telerik:RadComboBox>


Public Function GetClients(ByVal context As RadComboBoxContext) As RadComboBoxData
    Dim result As RadComboBoxData = New RadComboBoxData()
    Dim allClients As List(Of RadComboBoxItemData)
 
    Dim contextDictionary As IDictionary(Of String, Object) = DirectCast(context, IDictionary(Of String, Object))
    Dim deptCode As String = (DirectCast(contextDictionary("DeptCode"), String))
    Dim display As String = (DirectCast(contextDictionary("Display"), String))
 
 
    'Select Case deptCode
    'Case "EFF"
    '   From cli As Client In ClientCache.GetCacheDataTypedList
    '                  Where cli.IsValidETFMS
    '                  Select New RadComboBoxItemData With {.Text = If(display = "Short", cli.ClientShortAltName, cli.ClientAltName), .Value = CStr(cli.ClientId)}).OrderBy(Function(c) c.Text).ToList
    'Case Else
    '    allClients = (From cli As Client In ClientCache.GetCacheDataTypedList
    '                  Select New RadComboBoxItemData With {.Text = If(display = "Short", cli.ClientShortAltName, cli.ClientAltName), .Value = CStr(cli.ClientId)}).OrderBy(Function(c) c.Text).ToList
 
    'TODO : Dont like using SP, AAP.
    Dim qnClients As New List(Of DataLayer.qn_Client_getResult)
    Using kp As New DataLayer.KestrelProLinq.KestrelProDb
        qnClients = kp.qn_Client_get(deptCode).ToList()
    End Using
    allClients = (From cli As DataLayer.qn_Client_getResult In qnClients
                  Select New RadComboBoxItemData With {.Text = If(display = "Short", ClientCache.GetStoreObject.GetClientShortAltName(cli.ShortName, cli.AgressoClientId), ClientCache.GetStoreObject.GetClientAltName(cli.ShortName, cli.Name, cli.AgressoClientId)), .Value = CStr(cli.ClientId)}).OrderBy(Function(c) c.Text).ToList
    'End Select
 
 
    Dim text As String = context.Text
    If Not String.IsNullOrEmpty(text) Then
        allClients = (From item As RadComboBoxItemData In allClients
                      Where item.Text.ToLower.Contains(text.ToLower)
                      Select item).ToList
        If allClients.Count <= 1 Then allClients.Add(New RadComboBoxItemData With {.Text = "", .Value = ""})
    End If
 
    Dim numberOfItems As Integer = context.NumberOfItems
    Dim clients As List(Of RadComboBoxItemData) = allClients.Skip(numberOfItems).Take(100).ToList
 
    result.Items = clients.ToArray
 
    Dim endOffSet As Integer = numberOfItems + clients.Count
    Dim totalCount As Integer = allClients.Count
 
    If endOffSet = totalCount Then result.EndOfItems = True
 
    'If clients.Count <= 0 Then result.Message = "No Matches"
 
    Return result
End Function
Dimitar Terziev
Telerik team
 answered on 29 Aug 2011
1 answer
137 views
hi there
plz help me!
 I have big Problem When use Radcombobox.
when i run the program this error rise
Microsoft JScript runtime error: The value of the property 'WebForm_InitCallback' is null or undefined, not a Function object
 and my radCombobox work like textbox.
(i show error in this picture )
Dimitar Terziev
Telerik team
 answered on 29 Aug 2011
1 answer
72 views
I would like to implement a RadStyleSheetManager to roll-up a couple of custom CSS files along with a custom skin with 13 CSS files.  This seems to work fine for everything, except the images in the CSS.  The links come out wrong.  It appears that they now need to be absolute paths - which would be fine in some situations - however ...

I have a small web application that may be installed inside a virtual directory or at a root level - so if I point the CSS images to '/resource/images/picture.png' this will not work if the application is installed at any level other than the root.

Is there an easy way to fix this?  If I were dealing with server controls I would use '~/resource/images/picture.png' - but I do not believe you can do this in a CSS.  
Simon
Telerik team
 answered on 29 Aug 2011
1 answer
96 views
I have seen many postings explaining how to get the client ID for grid columns with embedded textboxes (or checkboxes) which can then be used in client-side script.  For example:  http://www.telerik.com/community/forums/aspnet/grid/multiplication-of-two-gridboundcolumn-in-editmode.aspx

What I need is to get the ClientID for a "normal" readonly GridBoundColumn such as is created when a grid is not in edit mode.  This is being used for validation purposes and the column is never edited, so putting it in a textbox would be bad UI.  I can't easly post working code as it is extremely dynamic and database driven.  Is this possible?

Thanks,
James
Andrey
Telerik team
 answered on 29 Aug 2011
0 answers
64 views
Hello.  This problem was driving me crazy and I wasn't able to find a result in the forum, so I thought I'd share my resolution. 

We had an ASP GridView that was being databound to a collection of heterogeneous objects.  In the GridView DataBound event, we were calling a Factory to instantiate a dynamically selected User Control that corresponded to the object.  So Object A would get a ObjectAUI.ascx control, etc. 

One of the controls received an Album object.  This Album object contained a collection of images.  We implemented the RadRotator control as a filmstrip and databound the collection of images to it.  This worked fine for all accesses to the page, both !IsPostBack and IsPostBack.

Each of the RadRotator items contained a RadToolTip item.  This seemed to work fine for all !IsPostBack scenarios but was an empty shell (only static content) on any IsPostBack, async or otherwise.  An example would be a change in the DataGrid objects.  What we needed was the RadToolTip to be filled in with databound content whether it was the first visit to the page or part of an async PostBack.

My solution was to wrap the loading of the RadToolTip content into a LoadContent() method, which the Page_Load method called.  This worked fine for !IsPostBack scenarios.  I then created a public Notify() method that also called this LoadContent() method.  In my RadRotator_ItemDataBound method, I have the following:

protected void thumbRotator_ItemDataBound(object sender, RadRotatorEventArgs e)
{
  ImageToolTip ctlImageToolTip = e.Item.FindControl("ctlImageToolTip") as ImageToolTip;
  ...
  if (IsPostBack)
  {
    ctlImageToolTip.Notify();
  }
}

Now the RadToolTip updates correctly when either the page is visited the first time (!IsPostBack) or the DataGrid objects are changed (async IsPostBack).
Gregory
Top achievements
Rank 2
 asked on 29 Aug 2011
0 answers
113 views
Hi Team,

i've created a custom spellchecker inherting from RadSpell


i want to set the DictionaryPath and the LocalizationPath at the control level itself and provide the dictinary's and resource at the control. The developer when he uses my control he should only set the ControlToCheck property in his application.

i tried but couldn't find a solution.

code below:

CSPSpellChecker Class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
using System.Drawing;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;

namespace mySpellCheckerControl
{
    public class CSPSpellChecker : CSPBaseWebControl
    {
        #region class attributes

        /// <summary>
        /// The internal RadSpell wrapped control
        /// </summary>
        RadSpell _internalControl;

        #endregion

        #region Class constructors

        /// <summary>
        /// Default constructor
        /// </summary>
        public CSPSpellChecker()
        {
            //Instantiates the wrapped control
            _internalControl = new RadSpell();
            _internalControl.DictionaryPath = "/Dictionary";
            _internalControl.LocalizationPath = "/Localization";
        }

        #endregion

        #region Internal Control

        /// <summary>
        /// Returns the InternalFrameworkElement
        /// </summary>
        internal RadSpell InternalControl
        {
            get
            {
                return _internalControl;
            }
        }

        #endregion

        #region Properties

        #region Property:AccessKey
        ///  <summary>
        ///    Gets or sets the AccessKey
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string AccessKey
        {
            get
            {
                return _internalControl.AccessKey;
            }
            set
            {
                _internalControl.AccessKey = value;
            }
        }
        #endregion

        #region Property:AdditionalQueryString
        ///  <summary>
        ///    Gets or sets the AdditionalQueryString
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string AdditionalQueryString
        {
            get
            {
                return _internalControl.AdditionalQueryString;
            }
            set
            {
                _internalControl.AdditionalQueryString = value;
            }
        }
        #endregion

        #region Property:AjaxUrl
        ///  <summary>
        ///    Gets or sets the AjaxUrl
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string AjaxUrl
        {
            get
            {
                return _internalControl.AjaxUrl;
            }
            set
            {
                _internalControl.AjaxUrl = value;
            }
        }
        #endregion

        #region Property:AllowAddCustom
        ///  <summary>
        ///    Gets or sets the AllowAddCustom
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool AllowAddCustom
        {
            get
            {
                return _internalControl.AllowAddCustom;
            }
            set
            {
                _internalControl.AllowAddCustom = value;
            }
        }
        #endregion

        #region Property:AppRelativeTemplateSourceDirectory
        ///  <summary>
        ///    Gets or sets the AppRelativeTemplateSourceDirectory
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string AppRelativeTemplateSourceDirectory
        {
            get
            {
                return _internalControl.AppRelativeTemplateSourceDirectory;
            }
            set
            {
                _internalControl.AppRelativeTemplateSourceDirectory = value;
            }
        }
        #endregion

        #region Property:Attributes
        ///  <summary>
        ///    Gets or sets the Attributes
        /// Returns:
        ///     A System.Web.UI.AttributeCollection Object.
        /// </summary>
        public System.Web.UI.AttributeCollection Attributes
        {
            get
            {
                return _internalControl.Attributes;
            }
        }
        #endregion

        #region Property:BackColor
        ///  <summary>
        ///    Gets or sets the BackColor
        /// Returns:
        ///     A System.Drawing.Color Object.
        /// </summary>
        public Color BackColor
        {
            get
            {
                return _internalControl.BackColor;
            }
            set
            {
                _internalControl.BackColor = value;
            }
        }
        #endregion

        #region Property:BorderColor
        ///  <summary>
        ///    Gets or sets the BorderColor
        /// Returns:
        ///     A System.Drawing.Color Object.
        /// </summary>
        public Color BorderColor
        {
            get
            {
                return _internalControl.BorderColor;
            }
            set
            {
                _internalControl.BorderColor = value;
            }
        }
        #endregion

        #region Property:BorderStyle
        ///  <summary>
        ///    Gets or sets the BorderStyle
        /// Returns:
        ///     A System.Web.UI.WebControls.BorderStyle Object.
        /// </summary>
        public BorderStyle BorderStyle
        {
            get
            {
                return _internalControl.BorderStyle;
            }
            set
            {
                _internalControl.BorderStyle = value;
            }
        }
        #endregion

        #region Property:BorderWidth
        ///  <summary>
        ///    Gets or sets the BorderWidth
        /// Returns:
        ///     A System.Web.UI.WebControls.Unit Object.
        /// </summary>
        public Unit BorderWidth
        {
            get
            {
                return _internalControl.BorderWidth;
            }
            set
            {
                _internalControl.BorderWidth = value;
            }
        }
        #endregion

        #region Property:ButtonText
        ///  <summary>
        ///    Gets or sets the ButtonText
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string ButtonText
        {
            get
            {
                return _internalControl.ButtonText;
            }
            set
            {
                _internalControl.ButtonText = value;
            }
        }
        #endregion

        #region Property:ButtonType
        ///  <summary>
        ///    Gets or sets the ButtonType
        /// Returns:
        ///     A CSPButtonType Object.
        /// </summary>
        public CSPButtonType ButtonType
        {
            get
            {
                return (CSPButtonType)_internalControl.ButtonType;
            }
            set
            {
                _internalControl.ButtonType = (Telerik.Web.UI.ButtonType)value;
            }
        }
        #endregion

        #region Property:ClientID
        ///  <summary>
        ///    Gets or sets the ClientID
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string ClientID
        {
            get
            {
                return _internalControl.ClientID;
            }
        }
        #endregion

        #region Property:ClientIDMode
        ///  <summary>
        ///    Gets or sets the ClientIDMode
        /// Returns:
        ///     A System.Web.UI.ClientIDMode Object.
        /// </summary>
        public override ClientIDMode ClientIDMode
        {
            get
            {
                return _internalControl.ClientIDMode;
            }
            set
            {
                _internalControl.ClientIDMode = value;
            }
        }
        #endregion

        #region Property:ClientTextSource
        ///  <summary>
        ///    Gets or sets the ClientTextSource
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string ClientTextSource
        {
            get
            {
                return _internalControl.ClientTextSource;
            }
            set
            {
                _internalControl.ClientTextSource = value;
            }
        }
        #endregion

        #region Property:Controls
        ///  <summary>
        ///    Gets or sets the Controls
        /// Returns:
        ///     A System.Web.UI.ControlCollection Object.
        /// </summary>
        //public override ControlCollection Controls
        //{
        //    get
        //    {
        //        return _internalControl.Controls;
        //    }
        //}
        #endregion

        #region Property:ControlsToCheck
        ///  <summary>
        ///    Gets or sets the ControlsToCheck
        /// Returns:
        ///     A System.String[] Object.
        /// </summary>
        public string[] ControlsToCheck
        {
            get
            {
                return _internalControl.ControlsToCheck;
            }
            set
            {
                _internalControl.ControlsToCheck = value;
            }
        }
        #endregion

        #region Property:ControlStyle
        ///  <summary>
        ///    Gets or sets the ControlStyle
        /// Returns:
        ///     A System.Web.UI.WebControls.Style Object.
        /// </summary>
        public new Style ControlStyle
        {
            get
            {
                return _internalControl.ControlStyle;
            }
        }
        #endregion

        #region Property:ControlStyleCreated
        ///  <summary>
        ///    Gets or sets the ControlStyleCreated
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public new bool ControlStyleCreated
        {
            get
            {
                return _internalControl.ControlStyleCreated;
            }
        }
        #endregion

        #region Property:ControlToCheck
        ///  <summary>
        ///    Gets or sets the ControlToCheck
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string ControlToCheck
        {
            get
            {
                return _internalControl.ControlToCheck;
            }
            set
            {
                _internalControl.ControlToCheck = value;
            }
        }
        #endregion

        #region Property:CssClass
        ///  <summary>
        ///    Gets or sets the CssClass
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string CssClass
        {
            get
            {
                return _internalControl.CssClass;
            }
            set
            {
                _internalControl.CssClass = value;
            }
        }
        #endregion

        #region Property:CustomDictionarySourceTypeName
        ///  <summary>
        ///    Gets or sets the CustomDictionarySourceTypeName
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string CustomDictionarySourceTypeName
        {
            get
            {
                return _internalControl.CustomDictionarySourceTypeName;
            }
            set
            {
                _internalControl.CustomDictionarySourceTypeName = value;
            }
        }
        #endregion

        #region Property:CustomDictionarySuffix
        ///  <summary>
        ///    Gets or sets the CustomDictionarySuffix
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string CustomDictionarySuffix
        {
            get
            {
                return _internalControl.CustomDictionarySuffix;
            }
            set
            {
                _internalControl.CustomDictionarySuffix = value;
            }
        }
        #endregion

        #region Property:DialogsCssFile
        ///  <summary>
        ///    Gets or sets the DialogsCssFile
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string DialogsCssFile
        {
            get
            {
                return _internalControl.DialogsCssFile;
            }
            set
            {
                _internalControl.DialogsCssFile = value;
            }
        }
        #endregion

        #region Property:DialogsScriptFile
        ///  <summary>
        ///    Gets or sets the DialogsScriptFile
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string DialogsScriptFile
        {
            get
            {
                return _internalControl.DialogsScriptFile;
            }
            set
            {
                _internalControl.DialogsScriptFile = value;
            }
        }
        #endregion

        #region Property:DialogTypeName
        ///  <summary>
        ///    Gets or sets the DialogTypeName
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string DialogTypeName
        {
            get
            {
                return _internalControl.DialogTypeName;
            }
            set
            {
                _internalControl.DialogTypeName = value;
            }
        }
        #endregion

        #region Property:DialogVirtualPath
        ///  <summary>
        ///    Gets or sets the DialogVirtualPath
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string DialogVirtualPath
        {
            get
            {
                return _internalControl.DialogVirtualPath;
            }
            set
            {
                _internalControl.DialogVirtualPath = value;
            }
        }
        #endregion

        #region Property:DictionaryLanguage
        ///  <summary>
        ///    Gets or sets the DictionaryLanguage
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string DictionaryLanguage
        {
            get
            {
                return _internalControl.DictionaryLanguage;
            }
            set
            {
                _internalControl.DictionaryLanguage = value;
            }
        }
        #endregion

        #region Property:DictionaryPath
        ///  <summary>
        ///    Gets or sets the DictionaryPath
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string DictionaryPath
        {
            get
            {
                return _internalControl.DictionaryPath;
            }
            set
            {
                _internalControl.DictionaryPath = value;
            }
        }
        #endregion

        #region Property:EditDistance
        ///  <summary>
        ///    Gets or sets the EditDistance
        /// Returns:
        ///     A System.Int32 Object.
        /// </summary>
        public int EditDistance
        {
            get
            {
                return _internalControl.EditDistance;
            }
            set
            {
                _internalControl.EditDistance = value;
            }
        }
        #endregion

        #region Property:EnableAjaxSkinRendering
        ///  <summary>
        ///    Gets or sets the EnableAjaxSkinRendering
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool EnableAjaxSkinRendering
        {
            get
            {
                return _internalControl.EnableAjaxSkinRendering;
            }
            set
            {
                _internalControl.EnableAjaxSkinRendering = value;
            }
        }
        #endregion

        #region Property:Enabled
        ///  <summary>
        ///    Gets or sets the Enabled
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public override bool Enabled
        {
            get
            {
                return _internalControl.Enabled;
            }
            set
            {
                _internalControl.Enabled = value;
            }
        }
        #endregion

        #region Property:EnableEmbeddedBaseStylesheet
        ///  <summary>
        ///    Gets or sets the EnableEmbeddedBaseStylesheet
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool EnableEmbeddedBaseStylesheet
        {
            get
            {
                return _internalControl.EnableEmbeddedBaseStylesheet;
            }
            set
            {
                _internalControl.EnableEmbeddedBaseStylesheet = value;
            }
        }
        #endregion

        #region Property:EnableEmbeddedScripts
        ///  <summary>
        ///    Gets or sets the EnableEmbeddedScripts
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool EnableEmbeddedScripts
        {
            get
            {
                return _internalControl.EnableEmbeddedScripts;
            }
            set
            {
                _internalControl.EnableEmbeddedScripts = value;
            }
        }
        #endregion

        #region Property:EnableEmbeddedSkins
        ///  <summary>
        ///    Gets or sets the EnableEmbeddedSkins
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool EnableEmbeddedSkins
        {
            get
            {
                return _internalControl.EnableEmbeddedSkins;
            }
            set
            {
                _internalControl.EnableEmbeddedSkins = value;
            }
        }
        #endregion

        #region Property:EnableTheming
        ///  <summary>
        ///    Gets or sets the EnableTheming
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public override bool EnableTheming
        {
            get
            {
                return _internalControl.EnableTheming;
            }
            set
            {
                _internalControl.EnableTheming = value;
            }
        }
        #endregion

        #region Property:EnableViewState
        ///  <summary>
        ///    Gets or sets the EnableViewState
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public override bool EnableViewState
        {
            get
            {
                return _internalControl.EnableViewState;
            }
            set
            {
                _internalControl.EnableViewState = value;
            }
        }
        #endregion

        #region Property:Font
        ///  <summary>
        ///    Gets or sets the Font
        /// Returns:
        ///     A System.Web.UI.WebControls.FontInfo Object.
        /// </summary>
        public override FontInfo Font
        {
            get
            {
                return _internalControl.Font;
            }
        }
        #endregion

        #region Property:ForeColor
        ///  <summary>
        ///    Gets or sets the ForeColor
        /// Returns:
        ///     A System.Drawing.Color Object.
        /// </summary>
        public override Color ForeColor
        {
            get
            {
                return _internalControl.ForeColor;
            }
            set
            {
                _internalControl.ForeColor = value;
            }
        }
        #endregion

        #region Property:FragmentIgnoreOptions
        ///  <summary>
        ///    Gets or sets the FragmentIgnoreOptions
        /// Returns:
        ///     A CSPFragmentIgnoreOptions Object.
        /// </summary>
        public CSPFragmentIgnoreOptions FragmentIgnoreOptions
        {
            get
            {
                return (CSPFragmentIgnoreOptions)_internalControl.FragmentIgnoreOptions;
            }
            set
            {
                _internalControl.FragmentIgnoreOptions = (FragmentIgnoreOptions)value;
            }
        }
        #endregion

        #region Property:HandlerUrl
        ///  <summary>
        ///    Gets or sets the HandlerUrl
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string HandlerUrl
        {
            get
            {
                return _internalControl.HandlerUrl;
            }
            set
            {
                _internalControl.HandlerUrl = value;
            }
        }
        #endregion

        #region Property:HasAttributes
        ///  <summary>
        ///    Gets or sets the HasAttributes
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public new bool HasAttributes
        {
            get
            {
                return _internalControl.HasAttributes;
            }
        }
        #endregion

        #region Property:Height
        ///  <summary>
        ///    Gets or sets the Height
        /// Returns:
        ///     A System.Web.UI.WebControls.Unit Object.
        /// </summary>
        public override Unit Height
        {
            get
            {
                return _internalControl.Height;
            }
            set
            {
                _internalControl.Height = value;
            }
        }
        #endregion

        #region Property:ID
        ///  <summary>
        ///    Gets or sets the ID
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string ID
        {
            get
            {
                return _internalControl.ID;
            }
            set
            {
                _internalControl.ID = value;
            }
        }
        #endregion

        #region Property:IsClientID
        ///  <summary>
        ///    Gets or sets the IsClientID
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool IsClientID
        {
            get
            {
                return _internalControl.IsClientID;
            }
            set
            {
                _internalControl.IsClientID = value;
            }
        }
        #endregion

        #region Property:Language
        ///  <summary>
        ///    Gets or sets the Language
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string Language
        {
            get
            {
                return _internalControl.Language;
            }
            set
            {
                _internalControl.Language = value;
            }
        }
        #endregion

        #region Property:LocalizationPath
        ///  <summary>
        ///    Gets or sets the LocalizationPath
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string LocalizationPath
        {
            get
            {
                return _internalControl.LocalizationPath;
            }
            set
            {
                _internalControl.LocalizationPath = value;
            }
        }
        #endregion

        #region Property:NamingContainer
        ///  <summary>
        ///    Gets or sets the NamingContainer
        /// Returns:
        ///     A System.Web.UI.Control Object.
        /// </summary>
        public override Control NamingContainer
        {
            get
            {
                return _internalControl.NamingContainer;
            }
        }
        #endregion

        #region Property:OnClientCheckCancelled
        ///  <summary>
        ///    Gets or sets the OnClientCheckCancelled
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string OnClientCheckCancelled
        {
            get
            {
                return _internalControl.OnClientCheckCancelled;
            }
            set
            {
                _internalControl.OnClientCheckCancelled = value;
            }
        }
        #endregion

        #region Property:OnClientCheckFinished
        ///  <summary>
        ///    Gets or sets the OnClientCheckFinished
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string OnClientCheckFinished
        {
            get
            {
                return _internalControl.OnClientCheckFinished;
            }
            set
            {
                _internalControl.OnClientCheckFinished = value;
            }
        }
        #endregion

        #region Property:OnClientCheckStarted
        ///  <summary>
        ///    Gets or sets the OnClientCheckStarted
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string OnClientCheckStarted
        {
            get
            {
                return _internalControl.OnClientCheckStarted;
            }
            set
            {
                _internalControl.OnClientCheckStarted = value;
            }
        }
        #endregion

        #region Property:OnClientDialogClosed
        ///  <summary>
        ///    Gets or sets the OnClientDialogClosed
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string OnClientDialogClosed
        {
            get
            {
                return _internalControl.OnClientDialogClosed;
            }
            set
            {
                _internalControl.OnClientDialogClosed = value;
            }
        }
        #endregion

        #region Property:OnClientLoad
        ///  <summary>
        ///    Gets or sets the OnClientLoad
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string OnClientLoad
        {
            get
            {
                return _internalControl.OnClientLoad;
            }
            set
            {
                _internalControl.OnClientLoad = value;
            }
        }
        #endregion

        #region Property:Page
        ///  <summary>
        ///    Gets or sets the Page
        /// Returns:
        ///     A System.Web.UI.Page Object.
        /// </summary>
        //public override Page Page
        //{
        //    get
        //    {
        //        return _internalControl.Page;
        //    }
        //    set
        //    {
        //        _internalControl.Page = value;
        //    }
        //}
        #endregion

        #region Property:Parent
        ///  <summary>
        ///    Gets or sets the Parent
        /// Returns:
        ///     A System.Web.UI.Control Object.
        /// </summary>
        //public override Control Parent
        //{
        //    get
        //    {
        //        return _internalControl.Parent;
        //    }
        //}
        #endregion

        #region Property:RegisterWithScriptManager
        ///  <summary>
        ///    Gets or sets the RegisterWithScriptManager
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool RegisterWithScriptManager
        {
            get
            {
                return _internalControl.RegisterWithScriptManager;
            }
            set
            {
                _internalControl.RegisterWithScriptManager = value;
            }
        }
        #endregion

        #region Property:RenderingCompatibility
        ///  <summary>
        ///    Gets or sets the RenderingCompatibility
        /// Returns:
        ///     A System.Version Object.
        /// </summary>
        public override Version RenderingCompatibility
        {
            get
            {
                return _internalControl.RenderingCompatibility;
            }
            set
            {
                _internalControl.RenderingCompatibility = value;
            }
        }
        #endregion

        #region Property:Site
        ///  <summary>
        ///    Gets or sets the Site
        /// Returns:
        ///     A System.ComponentModel.ISite interface.
        /// </summary>
        public new ISite Site
        {
            get
            {
                return _internalControl.Site;
            }
            set
            {
                _internalControl.Site = value;
            }
        }
        #endregion

        #region Property:Skin
        ///  <summary>
        ///    Gets or sets the Skin
        /// Returns:
        ///     A System.string Object.
        /// </summary>
        public string Skin
        {
            get
            {
                return _internalControl.Skin;
            }
            set
            {
                _internalControl.Skin = value;
            }
        }
        #endregion

        #region Property:SkinID
        ///  <summary>
        ///    Gets or sets the SkinID
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string SkinID
        {
            get
            {
                return _internalControl.SkinID;
            }
            set
            {
                _internalControl.SkinID = value;
            }
        }
        #endregion

        #region Property:SpellChecked
        ///  <summary>
        ///    Gets or sets the SpellChecked
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public bool SpellChecked
        {
            get
            {
                return _internalControl.SpellChecked;
            }
        }
        #endregion

        #region Property:SpellCheckProvider
        ///  <summary>
        ///    Gets or sets the SpellCheckProvider
        /// Returns:
        ///     A CSPSpellCheckProvider Object.
        /// </summary>
        public CSPSpellCheckProvider SpellCheckProvider
        {
            get
            {
                return (CSPSpellCheckProvider)_internalControl.SpellCheckProvider;
            }
            set
            {
                _internalControl.SpellCheckProvider = (SpellCheckProvider)value;
            }
        }
        #endregion

        #region Property:SpellCheckProviderTypeName
        ///  <summary>
        ///    Gets or sets the SpellCheckProviderTypeName
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public string SpellCheckProviderTypeName
        {
            get
            {
                return _internalControl.SpellCheckProviderTypeName;
            }
            set
            {
                _internalControl.SpellCheckProviderTypeName = value;
            }
        }
        #endregion

        #region Property:Style
        ///  <summary>
        ///    Gets or sets the Style
        /// Returns:
        ///     A System.Web.UI.CssStyleCollection Object.
        /// </summary>
        public new CssStyleCollection Style
        {
            get
            {
                return _internalControl.Style;
            }
        }
        #endregion

        #region Property:SupportedLanguages
        ///  <summary>
        ///    Gets or sets the SupportedLanguages
        /// Returns:
        ///     A System.String[] Object.
        /// </summary>
        public string[] SupportedLanguages
        {
            get
            {
                return _internalControl.SupportedLanguages;
            }
            set
            {
                _internalControl.SupportedLanguages = value;
            }
        }
        #endregion

        #region Property:SupportsDisabledAttribute
        ///  <summary>
        ///    Gets or sets the SupportsDisabledAttribute
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        public override bool SupportsDisabledAttribute
        {
            get
            {
                return _internalControl.SupportsDisabledAttribute;
            }
        }
        #endregion

        #region Property:TabIndex
        ///  <summary>
        ///    Gets or sets the TabIndex
        /// Returns:
        ///     A System.Int16 Object.
        /// </summary>
        public override short TabIndex
        {
            get
            {
                return _internalControl.TabIndex;
            }
            set
            {
                _internalControl.TabIndex = value;
            }
        }
        #endregion

        #region Property:TemplateControl
        ///  <summary>
        ///    Gets or sets the TemplateControl
        /// Returns:
        ///     A System.Web.UI.TemplateControl Object.
        /// </summary>
        public new TemplateControl TemplateControl
        {
            get
            {
                return _internalControl.TemplateControl;
            }
            set
            {
                _internalControl.TemplateControl = value;
            }
        }
        #endregion

        #region Property:TemplateSourceDirectory
        ///  <summary>
        ///    Gets or sets the TemplateSourceDirectory
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string TemplateSourceDirectory
        {
            get
            {
                return _internalControl.TemplateSourceDirectory;
            }
        }
        #endregion

        #region Property:ToolTip
        ///  <summary>
        ///    Gets or sets the ToolTip
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string ToolTip
        {
            get
            {
                return _internalControl.ToolTip;
            }
            set
            {
                _internalControl.ToolTip = value;
            }
        }
        #endregion

        #region Property:UniqueID
        ///  <summary>
        ///    Gets or sets the UniqueID
        /// Returns:
        ///     A System.String Object.
        /// </summary>
        public override string UniqueID
        {
            get
            {
                return _internalControl.UniqueID;
            }
        }
        #endregion

        #region Property:ViewStateMode
        ///  <summary>
        ///    Gets or sets the ViewStateMode
        /// Returns:
        ///     A System.Web.UI.ViewStateMode Object.
        /// </summary>
        public override ViewStateMode ViewStateMode
        {
            get
            {
                return _internalControl.ViewStateMode;
            }
            set
            {
                _internalControl.ViewStateMode = value;
            }
        }
        #endregion

        #region Property:Visible
        ///  <summary>
        ///    Gets or sets the Visible
        /// Returns:
        ///     A System.Boolean Object.
        /// </summary>
        //public override bool Visible
        //{
        //    get
        //    {
        //        return _internalControl.Visible;
        //    }
        //    set
        //    {
        //        _internalControl.Visible = value;
        //    }
        //}
        #endregion

        #region Property:Width
        ///  <summary>
        ///    Gets or sets the Width
        /// Returns:
        ///     A System.Web.UI.WebControls.Unit Object.
        /// </summary>
        public override Unit Width
        {
            get
            {
                return _internalControl.Width;
            }
            set
            {
                _internalControl.Width = value;
            }
        }
        #endregion

        #region Property:WordIgnoreOptions
        ///  <summary>
        ///    Gets or sets the WordIgnoreOptions
        /// Returns:
        ///     A CSPWordIgnoreOptions Object.
        /// </summary>
        public CSPWordIgnoreOptions WordIgnoreOptions
        {
            get
            {
                return (CSPWordIgnoreOptions)_internalControl.WordIgnoreOptions;
            }
            set
            {
                _internalControl.WordIgnoreOptions = (WordIgnoreOptions)value;
            }
        }
        #endregion

        #endregion

        #region Methods

        protected override void CreateChildControls()
        {
            this.Controls.Add(_internalControl);
            base.CreateChildControls();
        }

        #endregion
    }
}

----------------
CSPBaseWebControl  Class:

using System.ComponentModel;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Web.UI;
using System.Drawing.Design;
using System.Runtime;
using System.Globalization;
using System;

namespace mySpellCheckerControl
{

    /// <summary>
    /// Base Control inheriting from WebControl and with translation related properties
    /// </summary>
   //[ToolboxItem(false)]
    public abstract class CSPBaseWebControl : WebControl
    {

        #region Class constructors

        /// <summary>
        /// Default Constructors
        /// </summary>
        public CSPBaseWebControl()
        {

          
        }

        #endregion

             
    }

 
}

 ---------------------

Enum CSPButtonType:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mySpellCheckerControl
{
    public enum CSPButtonType
    {
        None = 0,
        ImageButton = 1,
        LinkButton = 2,
        PushButton = 3,
    }
}

-------------------------------------------------------------
Enum CSPFragmentIgnoreOptions:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mySpellCheckerControl
{
    [Flags]
    public enum CSPFragmentIgnoreOptions
    {
        None = 0,
        FileNames = 1,
        Urls = 2,
        EmailAddresses = 4,
        All = 7,
    }
}

-------------------------------------

Enum CSPSpellCheckProvider:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mySpellCheckerControl
{
    /// <summary>
    /// The spellcheck provider enumeration.
    /// </summary>
    public enum CSPSpellCheckProvider
    {
        // Summary:
        //     The default provider. The same as PhoneticProvider
        [Obsolete("This value is obsolete. Please, use PhoneticProvider instead.", false)]
        TelerikProvider = 0,
        //
        // Summary:
        //     This provider uses the edit distance algorithm. It will work for non-western
        //     languages.
        EditDistanceProvider = 1,
        //
        // Summary:
        //     This provider uses phonetic codes to provide "sounds like" word suggestions.
        //     Really effective for English, and less so for other languages.
        PhoneticProvider = 2,
        //
        // Summary:
        //     This provider automates Microsoft Word via its COM Interop interface.
        MicrosoftWordProvider = 3,
    }
}

-------------------------------------------
Enum CSPWordIgnoreOptions:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mySpellCheckerControl
{
     [Flags]
    public enum CSPWordIgnoreOptions
    {
        None = 0,
        //
        // Summary:
        //     Specifies whether or not to check words in CAPITALS (e.g. 'UNESCO')
        UPPERCASE = 1,
        //
        // Summary:
        //     Specifies whether or not to check words in Capitals (e.g. 'Washington')
        WordsWithCapitalLetters = 2,
        //
        // Summary:
        //     Specifies whether or not to count repeating words as errors (e.g. 'very very')
        RepeatedWords = 4,
        //
        // Summary:
        //     Specifies whether or not to check words containing numbers (e.g. 'l8r')
        WordsWithNumbers = 8,
    }
}

------------------------------------------------------------------------------------------------------------------------------------------------------------

pls add these files and to a customLibrary project with proper Teleriks references.

request you to provide a solution for the same.


Thank you
Manjerekar
manjerekar
Top achievements
Rank 1
 asked on 29 Aug 2011
2 answers
94 views
Hi,

I am using "Rad Form Decorator" (Image also Attached:"MasterPage.JPG" ) on the master Page and on the content page use the gridview with the Checkbox(Attcahed Image:"contentpage_scroll.jpg").There are two Scoll on a page as you can see in the Attcahed image("ContentPage_Scroll.JPG").

This is Perfectly working fine, if we check any checkBox option inside the grid without scrolling the grid.

Issue:
The problem is , If we scrolling the gridview  (Attached image:Scroll_grid.JPG), and check any checkbox option, page is flickered and open a blank page(Attached image:-BlankPage.JPG) with blank content.

This is perfectly fine in Chrome , but issue comes in Firefox and IE.

I think telerik Controls takes some position, But not Come with any final solution, Why this is happening?

Please provide the solution ASAP.
 
Ashish
Top achievements
Rank 1
 answered on 29 Aug 2011
1 answer
100 views
Hi,

Can someone help me understand how to display newly inserted row in rad grid after successfully inserting? I have a register employee form and a radgrid on the same page. after I click submit and the user was sucessully created, how would I display that new user in the grid? I tried user the ajax manager to update the grid but no luck. I'll attach a screen shot to give a better idea.

Thanks,
Ron.
Princy
Top achievements
Rank 2
 answered on 29 Aug 2011
4 answers
328 views

In my application I have the auto complete like textbox option with Listbox. If I type a word in the text box it should select appropriate list item in the list box. And also if select a list box item, the selected value to be reflected in the text box.

Here everything is working fine except that if I key on the some filter character, the typed characters are repeating twise in the textbox.

And Keyboard navigation is not working for Up/Down arrow keys after the user keyed in the textbox.

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
Search: 
<telerik:RadTextBox ID="RadTextBox1" 
    ClientEvents-OnKeyPress="filterListBox" SelectionOnFocus="SelectAll"runat="server">
</telerik:RadTextBox>
<telerik:RadListBox ID="RadListBox1" runat="server" Sort="Ascending"

OnClientSelectedIndexChanged

 

="GetProgramName" >

 

        <Items>
                <telerik:RadListBoxItem
                    Text="Kansas"
                    Value="KS" />
        <telerik:RadListBoxItem
                    Text="Kentucky"
                    Value="KY" />                    
                <telerik:RadListBoxItem
                    Text="Texas"
                    Value="TX" />
                <telerik:RadListBoxItem
                    Text="Missouri"
                    Value="MO" />
                <telerik:RadListBoxItem
                    Text="Nebraska"
                    Value="NE" />
                <telerik:RadListBoxItem
                    Text="Neubraska"
                    Value="N1E" />                                        
                <telerik:RadListBoxItem
                    Text="New Mexico"
                    Value="NM" />
                <telerik:RadListBoxItem
                    Text="Oklahoma"
                    Value="OK" />
                <telerik:RadListBoxItem
                    Text="Arizona"
                    Value="AZ" />
                <telerik:RadListBoxItem
                    Text="South Dakota"
                    Value="SD" />
                <telerik:RadListBoxItem
                    Text="Colorado"
                    Value="CO" />
                <telerik:RadListBoxItem
                    Text="Iowa"
                    Value="IA" />
  
                <telerik:RadListBoxItem
                    Text="Illinois"
                    Value="IL" />
          
            </Items>    
</telerik:RadListBox>
    </div>
     
<script type="text/javascript">
 

function

 

filterListBox(sender, e) {

 

 

var list = $find("ctl00_Content_lstSelectPgm");

 

 

var searchText = sender.get_value() + e.get_keyCharacter();

 

 

var items = list.get_items();

 

 

for (var i = 0; i < items.get_count(); i++) {

 

 

var item = items.getItem(i);

 

 

var SelectPrgm;

 

 

if (item.get_text().toLowerCase().startsWith(searchText.toLowerCase())) {

 

item.select();

item.ensureVisible();

item.scrollIntoView;

SelectPrgm = $find(

"ctl00_Content_txtSelectPgm")

 

SelectPrgm.set_value();

SelectPrgm.set_value(searchText);

 

break;

 

}

}

}

 

function

 

GetProgramName(sender, args) {

 

 

var SelectPrgm;

 

SelectPrgm = $find(

"ctl00_Content_txtSelectPgm")

 

SelectPrgm.set_value(

'');

 

SelectPrgm.set_value(sender.get_selectedItem().get_value())

document.getElementById(

"ctl00_Content_cmdOk").disabled = false;

 

document.getElementById(

"ctl00_Content_txtSelectPgm")

 

}

   

</script>        
    </form>
</body>
Peter Filipov
Telerik team
 answered on 29 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?