Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
278 views
I have a grid that a user can select a single row.  If they select a row and press a button I have on the page to update that row in the code behind I would like to have that row still highlighted on the postback. 

How can I find the row and set it to selected upon a postback?
Mike
Top achievements
Rank 1
 answered on 19 Sep 2008
1 answer
76 views
Hi,

I have a simple radeditor on an aspx page.  When using either the image manager or the template manager I am getting a javascript error when attempting to navigate through the folders.  The error is on $find("GenericFileLister1").  This object is comming back null.  I have checked the folder permissions as outlined in the documentation and even went so far as giving everyone full permissions.   I am able to upload images and to insert images and templates into the document that are at the top level.  Any help would be greatly appreciated.

Thanks,

Dave 
Rumen
Telerik team
 answered on 19 Sep 2008
6 answers
177 views
Hi all,
i got a problem with a text, each time i set the TextMode to MultiLine nothing gets written when i load text into the textbox from a database.
I can write to the textbox with the multiline format but once i want to load from the db. nothing gets written to it.
Does anyone know whats wrong with the control
Omlac
Top achievements
Rank 1
 answered on 19 Sep 2008
3 answers
138 views
When I databind serverside I want to set certain nodes as checked.  I poured through the forums and help files but cant find anything close to what I am doing.

Code Snippet:

try

{

DataSet dsp = new DataSet();

DB.m_da.SetRead("SELECT 'All Providers' AS [Name], '0' AS [ID], null as tree union SELECT [FName] + ' ' + [LName] AS [Name], [ID],0 as [Tree] FROM Provider WHERE [Inactive] = 0 ORDER BY 1", 1);

DB.m_da.Run(ref dsp);

RadTreeView1.DataSource = dsp;

RadTreeView1.DataFieldID =

"ID";

RadTreeView1.DataValueField =

"ID";

RadTreeView1.DataTextField =

"Name";

RadTreeView1.DataFieldParentID =

"Tree";

RadTreeView1.DataBind();

DataSet ds = new DataSet();

DB.m_da.SetRead("Select VID from AppointmentUserSetting where onoff = 1", 1);

DB.m_da.Run(ref ds);

foreach (DataRow row in ds.Tables[0].Rows)

{

// This is where I want to set the node to checked

// node.checked = true;

}

RadTreeView1.ExpandAllNodes();

RadTreeView1.MultipleSelect =

true;

RadTreeView1.CheckBoxes =

true;

Label1.Text =

"";

 

 

}

Bruce St.Clair
Top achievements
Rank 2
 answered on 19 Sep 2008
2 answers
408 views
Hi,

I'm using a RadTabStrip to replace the Tab control in MS AJAX.  On the client/ radtabstrip I locate a tab and set it to invisible using myTab.set_visible(false).  This works until I click on a button that has to refresh the page using a post back.  Is there a way to enable the radtabstrip to remember it's state.  It was simply a matter of using EnableViewState using the MS AJAX tabs...

This is a show stopper for me and will mean I have to revert back to the MS toolkit.

Thanks for reading
Missing User
 answered on 19 Sep 2008
1 answer
162 views
Hi,

I have RADEditor for MOSS 2007 with 2 languages en-CA and fr-CA. I want to localize the spellcheck to the local language I am in. No if I am in the French or English page and I click on the SpellCheck, I get a dropdown menu to pick th language. I want to eliminate this, so the editor knows what language I am in and it will spellcheck it without asking the language.
It was working before until I upgraded to 5.2.2.0.

Any suggestions?
George
Telerik team
 answered on 19 Sep 2008
3 answers
492 views
Hi Telerik

many thanks for taking my queries and for your technical support . I have a query regarding the user control i am opening inside rad window.
All i am doing is calling aspx page inside rad window that holds the user control.and i want to close the rad window on click of close button in user control.
Can we achieve this functionality. Any example would be helpful.
I am using ASP.net 2.0 and telerik version as RadControls for ASPNET AJAX Q1 2008 with IE7. Also the programming language i intend to use is c#

many thanks
Best Regards
Ash
Svetlina Anati
Telerik team
 answered on 19 Sep 2008
2 answers
145 views
I am using the rad editor in dotnetnuke. There are black box in all of the buttons, see screenshot. I have had similar issues with other controls like color picker.

http://www.capita.com/fileshare/1B96076F-3ECF-4558-86F7-9C85DDA898BE/radeditor.gif

Thanks
ldc0618
Top achievements
Rank 1
 answered on 19 Sep 2008
5 answers
253 views

Hi

My Rad tool tip is working perfectly fine as long as it is the only radtool tip in that page. If I have more than one radtool tips in a page only one tooltip is working.
My Radtool tip is created programmatically and added to a control and that control is added to the web part's control collection.

So when I have more than one web parts in a page only one web part's rad tool tip works. My code is below. Please tell me what I'm doing wrong here.

In the webpart I have this control called Link Bubble
<Controls:ContentHelp ID="LinkBubble" runat="server" ContentId="viewuploadfile" TargetControlID="WebPartHelpVerb">

</Controls:ContentHelp>

The above control's implementation is below.

using System;

using System.Text;

using System.Web.UI;

using System.Web;

using System.Xml;

using System.Xml.XPath;

using System.Configuration;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

using System.Collections.Generic;

using Telerik.Web.UI;

using AjaxControlToolkit;

using Cts.Bamboo.UI.Controls;

using Cts.Web.Issuer.Utilities;

namespace Cts.Web.Issuer.UI.Controls

{

    /// <summary>

    ///

    /// </summary>

    public class ContentHelp : CompositeControl

    {

        #region MODIFIERS

       

        private RadToolTip _radtooltip;

        private Cts.Bamboo.UI.Controls.ContentPanel _content;

        private string _controlPositioningStyleId = string.Empty;

        internal Parameter countryCode = new Parameter("country-code", TypeCode.String, (string)HttpContext.Current.Profile[ProfileVars.IssuerCountryCode]);

        #endregion

        /// <summary>

        ///

        /// </summary>

        public ContentHelp()

        { }

       

        #region PROPERTIES

        /// <summary>

        ///

        /// </summary>

        public string ContentId

        {

            get { base.EnsureChildControls(); return _content.SelectParameters[0].DefaultValue; }

            set { base.EnsureChildControls(); _content.SelectParameters[0].DefaultValue = value;}

        }

        /// <summary>

        ///

        /// </summary>

        public string TargetControlID

        {

            get { base.EnsureChildControls(); return _radtooltip.TargetControlID; }

            set { base.EnsureChildControls(); _radtooltip.TargetControlID = value; }

        }

        /// <summary>

        ///

        /// </summary>

        public string ControlPositioningStyleId

        {

            get { base.EnsureChildControls(); return _controlPositioningStyleId; }

            set { base.EnsureChildControls(); _controlPositioningStyleId = value; }

        }

      

        /// <summary>

        ///

        /// </summary>

        public RadToolTip Extender

        {

            get { base.EnsureChildControls(); return _radtooltip; }

        }

        #endregion

        #region DESIGNER CREATION

        /// <summary>

        ///

        /// </summary>

        protected override void CreateChildControls()

        {

            this.Controls.Clear();

           

            this._content = new Cts.Bamboo.UI.Controls.ContentPanel();

            this._content.ItemTemplate = new HelpTemplate(this);

            this._content.Source = "webpart-help";

            {

                QueryStringParameter helpIdparam = new QueryStringParameter("help-id", "help");

                this._content.SelectParameters.Add(helpIdparam);

                this._content.SelectParameters.Add(countryCode);

            }

            _radtooltip = new RadToolTip();

            _radtooltip.ID = "popup";

            _radtooltip.ShowEvent = ToolTipShowEvent.OnClick;

            _radtooltip.ShowDelay = 0;

            _radtooltip.ManualClose = true;

            _radtooltip.Position = ToolTipPosition.MiddleRight;

            _radtooltip.RelativeTo = ToolTipRelativeDisplay.Element;

            _radtooltip.TargetControlID = this.TargetControlID;

            _radtooltip.Controls.Add(this._content);

            _radtooltip.Animation = ToolTipAnimation.FlyIn;

            

            this.Controls.Add(this._radtooltip);

            this.ChildControlsCreated = true;

        }

        #endregion

        #region PRE-RENDER

        /// <summary>

        ///

        /// </summary>

        /// <param name="e"></param>

        protected override void OnPreRender(EventArgs e)

        {

            base.OnPreRender(e);

            if (((HelpTemplate)this._content.ItemTemplate).Nav.ToString() != "")

            {

                ((System.Web.UI.WebControls.WebParts.WebPart)Parent).HelpUrl = ((HelpTemplate)this._content.ItemTemplate).Nav.ToString();

            }          

        }

        #endregion

        /// <summary>

        ///

        /// </summary>

        /// <param name="writer"></param>

        protected override void Render(HtmlTextWriter writer)

        {

            if (string.IsNullOrEmpty(ControlPositioningStyleId))

            {

                ControlPositioningStyleId = "bubble-wrapper";

            }

            writer.AddAttribute(HtmlTextWriterAttribute.Class, ControlPositioningStyleId);

            writer.RenderBeginTag(HtmlTextWriterTag.Div);

            base.RenderChildren(writer);

            writer.RenderEndTag();

        }

        #region INNER CLASS HELP TEMPLATE

        private class HelpTemplate : ITemplate

        {

            #region modifiers and properties

            string morehelptext = string.Empty;

            string title = string.Empty;

            string shortdescription = string.Empty;

            string navigationalurl = string.Empty;

            string longdescription = string.Empty;

            string longdescriptionurl = string.Empty;

            string navurl = string.Empty;

            private ContentHelp _help;

            public HelpTemplate(ContentHelp help)

            {

                this._help = help;               

            }

            public ContentHelp HelpContent

            {

                get { return _help; }

                set { _help = value; }

            }

            public string Nav

            {

                get { return navurl; }

                set { navurl = value; }

            }

            #endregion

            void ITemplate.InstantiateIn(Control container)

            {  

                container.DataBinding += delegate

                {

                    //container that holds the text

                    object dataItem = ((IDataItemContainer)container).DataItem;

                    #region web content values

                    //'More Help' text

                    morehelptext = (string)HttpContext.GetGlobalResourceObject("Issuer/Help", "/Issuer/Help/Url");

                    XPathNavigator nav = ((IXPathNavigable)dataItem).CreateNavigator();

                   

                    //title

                    if (nav.Select("title").Count > 0) //if "title" node exist

                    {

                        title = (String)nav.SelectSingleNode("title").ToString();

                    }

                    //url

                    if (nav.Select("url").Count > 0) //if url node exist

                    {

                        navigationalurl = nav.SelectSingleNode("url").Value.Trim();                       

                    }

                    //short description

                    if (nav.Select("short-description").Count > 0) //if "short-description" node exist

                    {

                        shortdescription = nav.SelectSingleNode("short-description").Value.Trim();

                    }

                    //long description

                    if (nav.Select("long-description").Count > 0) //if "long-description" node exist

                    {

                        longdescription = nav.SelectSingleNode("long-description").Value.Trim();

                    }

                    // long dscriontion utl

                    if (ConfigurationSettings.AppSettings["HelpLongDescURL"] != null)

                    {

                        longdescriptionurl = ConfigurationSettings.AppSettings["HelpLongDescURL"].ToString();

                    }

                    #endregion

                    #region Test only

                    //@@@@@@@@@@@TEST ONLY........................

                    //longdescription = "";

                    //shortdescription = "";

                    //navigationalurl = "http://computershare.com/";

                    //title = "";

                    //navigationalurl = "";

                    //@@@@@@@@@@@TEST ONLY........................

                    //string  val = (string)System.Web.HttpContext.Current.Profile.GetPropertyValue("CountryCode");

                    #endregion

                    #region main content

                    Literal bubbleMainLtrl = new Literal();

                    bubbleMainLtrl.Text = "<h5>" + this.title + "</h5>" + this.shortdescription;

                    container.Controls.Add(bubbleMainLtrl);

                    HtmlGenericControl utltext = new HtmlGenericControl();

                    LiteralControl urrLtrl = new LiteralControl("</div><div class=\"bubblelink\">");

                    #endregion

                    #region logic

                    //applying the logic

                    if (navigationalurl != string.Empty) //if there is a url : display url

                    {

                        if (this.shortdescription != string.Empty || this.title != string.Empty)

                        {

                            Nav = navigationalurl;

                            urrLtrl.Text = "<a href='" + navigationalurl + "' originalAttribute="href" originalPath="" + navigationalurl + "" originalAttribute="href" originalPath="" + navigationalurl + "" >" + morehelptext + "</a>";

                            utltext.Controls.Add(urrLtrl);

                            container.Controls.Add(utltext);

                        }

                        else

                        {

                            Nav = navigationalurl;

                            this.HelpContent._radtooltip.Enabled = false;                           

                        }                       

                    }

                    else if (longdescription != string.Empty)

                    {

                        //short desc

                        if (this.shortdescription != string.Empty)

                        {

                            if (this.HelpContent.ContentId != null)

                            {

                                //urrLtrl.Text = "<a href='" + longdescriptionurl + this.HelpContent.ContentId + "' originalAttribute="href" originalPath="" + longdescriptionurl + this.HelpContent.ContentId + "" originalAttribute="href" originalPath="" + longdescriptionurl + this.HelpContent.ContentId + "" originalAttribute="href" originalPath="" + longdescriptionurl + this.HelpContent.ContentId + "" originalAttribute="href" originalPath="" + longdescriptionurl + this.HelpContent.ContentId + "" >" + morehelptext + "</a>";

                                urrLtrl.Text = "<a href='" + longdescriptionurl + this.HelpContent.ContentId + "' originalAttribute="href" originalPath="" + longdescriptionurl + this.HelpContent.ContentId + "" originalAttribute="href" originalPath="" + longdescriptionurl + this.HelpContent.ContentId + "" target='_blank' >" + morehelptext + "</a>";

                                utltext.Controls.Add(urrLtrl);

                                container.Controls.Add(utltext);

                                Nav = longdescriptionurl + this.HelpContent.ContentId;                               

                            }

                            else

                            {

                                //disable the bubble

                                this.HelpContent._radtooltip.Enabled = false;

                            }

                        }

                        else //no short description only long description

                        {

                            if (this.HelpContent.ContentId != null)

                            {

                                //System.Web.HttpContext.Current.Response.Redirect(longdescriptionurl + this.HelpContent.ContentId, false);

                                Nav = longdescriptionurl + this.HelpContent.ContentId;

                                this.HelpContent._radtooltip.Enabled = false;

                            }

                        }

                    }

                    else //if no long desc and no url

                    {

                        if (shortdescription == string.Empty) //no short desc

                        {

                            this.HelpContent._radtooltip.Enabled = false;

                        }

                        else

                        {    /*dislpay the short description only*/       }

                    }

                    #endregion

                    this._help._radtooltip.Title = this.title;

                    this._help._radtooltip.Text = this.shortdescription + "<br />" + urrLtrl.Text;

                };

            }

        }

        #endregion

    }

}

<

Controls:ContentHelp ID="LinkBubble1" runat="server" ContentId="viewuploadfile1" TargetControlID="WebPartHelpVerb">

</

Controls:ContentHelp>

<Controls:ContentHelp ID="LinkBubble2" runat="server" ContentId="viewuploadfile2" TargetControlID="WebPartHelpVerb">

</

Controls:ContentHelp>

only one of them is work. Please help

Thanks

Raj

Svetlina Anati
Telerik team
 answered on 19 Sep 2008
1 answer
158 views
Hello,

I'd like to have two RadMenu on the same line separated by a RadNumericTextBox. Unfortunately, the second RadMenu appears on another line.
Does anybody has an idea?
Thanks in advance.

Please find below my code. I'm using Telerik.Web.UI version 2008.2.826.35.

BR, Laurent
<%@ Page Language="C#" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<script runat="server">  
 
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager  
                id="RSM" 
                runat="server" 
                > 
        </telerik:RadScriptManager> 
        <telerik:RadMenu  
                id="rmType" 
                runat="server" 
                Flow="Horizontal" 
                > 
                <Items> 
                    <telerik:RadMenuItem  
                            Text="Spending" 
                            > 
                        <Items> 
                            <telerik:RadMenuItem Text="Spending" /> 
                            <telerik:RadMenuItem Text="Income" /> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
        </telerik:RadMenu> 
        <telerik:RadNumericTextBox  
                id="rtnbAmount" 
                runat="server" 
                Value="12.2" 
                > 
        </telerik:RadNumericTextBox> 
        <telerik:RadMenu  
                id="rmCurrency" 
                runat="server" 
                Flow="Horizontal" 
                > 
                <Items> 
                    <telerik:RadMenuItem  
                            Text="€" 
                            > 
                        <Items> 
                            <telerik:RadMenuItem Text="€ - EUR" Value="1" /> 
                            <telerik:RadMenuItem Text="$ - USD" Value="2" /> 
                            <telerik:RadMenuItem Text="Other">  
                                <Items> 
                                    <telerik:RadMenuItem Text="£ - GBP" Value="5" /> 
                                    <telerik:RadMenuItem Text="Y - YEN" Value="6" /> 
                                </Items> 
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
        </telerik:RadMenu> 
    </div> 
    </form> 
</body> 
</html> 
 
-DJ-
Top achievements
Rank 1
 answered on 19 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?