Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
146 views


I am using a radrotator based on the principles of the stock market sample.

The problem is that it is not scriolling in continue. It displays all the items first, then once finished it restarts.

I'd like it to display non-stop, with no empty space.

Looking at the samples, it seems that the frameduration property does the trick, but for some reason it is not there.

Why?
Fiko
Telerik team
 answered on 19 Feb 2009
1 answer
157 views

We are using RadWindow 1.8.2.0 and we are programatically resizing the RadWindow based on the user's resolution.
It works fine in IE7 and Firefox, but it doesn't work in IE6. Are we doing something wrong or there's a bug with it in this version?

Here is the JavaScript code:

        function ResizeWindow()
        {
            var win = GetRadWindow();
            var width = window.parent.document.body.clientWidth;
            var height = window.parent.document.body.clientHeight;
            if (width < 820)
                width -=20;
            else
                width = 820;
                
                
            if (height < 780)
                height -=20;
            else
                height = 780;
               
           
           win.SetSize(width,height);
           win.Restore()
        }



          function GetRadWindow()  
        {  
           var oWindow = null;  
           
           if (window.radWindow) oWindow = window.radWindow;  
           else
           if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
           
           return oWindow;
        }

The function is called automatically by placing the script at the end of the HTML page:
    <script type="text/javascript">
            ResizeWindow();
    </script>

I would appreciate your help.

Thank you,
Andrei







Svetlina Anati
Telerik team
 answered on 19 Feb 2009
0 answers
161 views
Hi,

I have created combobox like below


<

telerik:RadComboBox ID="RadComboBox1" EnableViewState="false" EnableItemCaching="true"

 

 

EnableLoadOnDemand="true" runat="server"

 

 

onitemsrequested="RadComboBox1_ItemsRequested">

 

 

</telerik:RadComboBox>

 





i have a textbox and a button now i want to move the text of the combobox based on the value of the textbox ,when i  clicked the button.

regards
sathies
sathies
Top achievements
Rank 1
 asked on 19 Feb 2009
1 answer
222 views
Hello.

Please, i need a help.

I am adding TreeView dynamically not directly to form.Controls collection but to another my nested control.

Is it possible?

I am getting javascript error in _preInitialize method...

Thank you very much.

using System;  
using System.Data;  
using System.Configuration;  
using System.Linq;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Xml.Linq;  
using System.Xml;  
 
using Telerik.Web.UI;  
using System.Collections.Generic;  
 
namespace CB.LayerPresentation.Controls.Input  
{  
      
    public class FluTelTreeview : FluTelBase  
    {  
          
        protected DataTable dtData;  
        protected RadTreeView treeView;  
 
        public FluTelTreeview(ScriptManager sm, XmlDocument xdProperties): base(sm,xdProperties)  
        {  
            this.treeView = new RadTreeView();  
            this.treeView.Skin = "Office2007";  
 
            this.Controls.Add(this.treeView);  
 
            // all control properties are set up during this method with help of reflection  
            if (this.xdProperties != null)  
            {  
                this.SetupProperties(this.treeView, null, xdProperties.DocumentElement);  
                this.SetupProperties(this"OuterControl", xdProperties.DocumentElement);  
            }             
        }  
 
        public void SetData(DataTable dtData)  
        {  
            this.dtData = dtData;  
            this.treeView.DataSource = dtData;  
            this.treeView.DataBind();  
        }  
 
        protected override void OnPreRender(EventArgs e)  
        {  
            if (this.sm != null)  
            {  
                if (!this.DesignMode)  
                    sm.RegisterScriptControl(this);  
            }  
            base.OnPreRender(e);  
        }  
 
        protected override void Render(HtmlTextWriter writer)  
        {  
            //base.Render(writer);  
            this.SetInputNameAndControlID();  
 
            if (this.isUpdateRestricted)  
            {  
                writer.WriteLine("<span id=" + this.inputName + "LikeInput>" + this.Value + "</span>");  
            }  
            else 
            {  
 
                if (!this.DesignMode)  
                    sm.RegisterScriptDescriptors(this);  
 
                this.treeView.ID = this.ID + "TreeView";  
 
                // nastavení hodnoty              
          
                // začátek div  
                writer.Write("<div id=" + this.ID + " ");  
 
                //vnitřní control  
                writer.WriteAttribute("innerControlId"this.treeView.ClientID);  
 
                if (this.IsValueDefault)  
                    writer.WriteAttribute("defVal"this.Value);  
 
                if (fr.Mandatory)  
                    writer.WriteAttribute("mandatory", fr.Mandatory.ToString());  
 
                writer.WriteAttribute("isUpdateRestricted", (this.isUpdateRestricted ? "1" : "0"));  
 
                writer.WriteLine(" >");  
 
                // tree view is rendered  
                this.RenderChildren(writer);  
 
                //konec div  
                writer.WriteLine("</div>");  
            }  
 
            //hidden with current value  
            this.RenderHiddenValue(writer,"");  
 
            // hidden with old value  
            if (!this.isUpdateRestricted)  
                this.RenderOldValueHidden(writer);  
        }  
 
 
        protected override IEnumerable<ScriptReference> GetScriptReferences()  
        {  
            ScriptReference reference = new ScriptReference();  
            reference.Path = ResolveClientUrl("scripts/FluTelTreeView.js");  
 
            return new ScriptReference[] { reference };  
        }  
 
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()  
        {  
            ScriptControlDescriptor descriptor = new ScriptControlDescriptor("FluTel.TreeView"this.ID);  
 
            return new ScriptDescriptor[] { descriptor };  
        }  
 
 
    }  
}  
 
tomas
Top achievements
Rank 1
 answered on 19 Feb 2009
8 answers
220 views
Hello eveyrone,

I have created a new DropDownList inside the Insert Form ( normal and advanced mode) inside the FormCreated event.

Now when a user double click and use the normal or advanced insert form to submit his new Appointment I want to access the DropDownList to get the selected value.

This will be handled inside the AppointmentInsert event.

Any ideas?

Thanks
Peter
Telerik team
 answered on 19 Feb 2009
1 answer
113 views
I am experimenting with the RadGrid control to render a dynamic survey.  The model of the survey is as follows: 

Survey Form XYZ
    - Section 1 
        - Question 1
        - Question 2
    - Section 2
        - Question 1
        - Question 2    

I am currently rendering a RadGrid using Questions as my datarows, grouped by Section, and I really like the drag and drop feature for reordering of Questions.  My question to Telerik is, can I drag and drop at the group level?  So, in looking at the model above, I would want to be able to drag and drop a Section.

Thanks,

Ryan

Iana Tsolova
Telerik team
 answered on 19 Feb 2009
4 answers
281 views

We are upgrading Classic RadEditor to RadControls for ASP.NET AJAX 2008.31125 and I have a quick question for you.

Is it somehow possible to get HTML output from RadEditor ASP.NET AJAX 2008.31125. I know it gives out of the box XHML enabled output.

We use radeditor a lot in our application and in one of the places, we were passing classic RadEditor's output to an HTMLParser/Leadtools for drawing HTML text on images. Please let me know.

Thanks, Lakshman

Rumen
Telerik team
 answered on 19 Feb 2009
2 answers
209 views
Hi! I want to know if there is any possibility to add an image to a appointment and if it is possible too to add a link inside it.
What I have to do is to show a name of a doctor and it has to be a link that, if it is clicked, shows the doctor's data page.

Thanks!

Fernando

Peter
Telerik team
 answered on 19 Feb 2009
0 answers
123 views
Hi

I am using item templates for the submenu items of the RadMenu (skin Black)
and on one of the item templates I want to include a username/password login within an
aspx page, which redirects to the members page after login. 

What would be the best approach to implementing this?  

Thanks

Clive



Clive Hoggar
Top achievements
Rank 1
 asked on 19 Feb 2009
1 answer
74 views
hi,

is there a way to fire the server onnodeclick event from client via javascript?

thanks for your help
Yana
Telerik team
 answered on 19 Feb 2009
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?