Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
114 views
HI Telerik Team,
I am having Rad menu, and on right hand side i am having flash content, you can see here http://www2.gsba.com/Resources/Publications/OtherPublications.aspx 
Rad menu is not displaying fully, it is getting cut by flash and the full menu which is to be displayed you can see it here.http://www2.gsba.com/Resources.aspx
do you people have anything for this.
it is very urgent for me. i have some urgent release and before that i need to fix it.
see screenshot.

Thanks for your time and support.

Vivek

Vivek
Top achievements
Rank 1
 answered on 26 May 2010
3 answers
141 views
Hi,

I'm using custom paging with a RadGrid and passing a StartRow and RowCount parameters to a stored procedure to return only my desired rows. The tables I work with are very big so the whole process needs to be optimized as much as possible.

I would like to use an SqlDataReader because I've read that would offer the greatest speed, however I'm having difficulties getting the TotalRows with an SqlDataReader.

I also can't access an Output Parameter because its value isn't set until the DataReader is closed. Therefore I've added the Total Rows as an additional field on my resultset. However, if I read the first row to get the Total Rows, the DataReader moves onto the next row and it isn't displayed in the Grid. 

I can get it working nicely by using an SqlDataAdapter to populate a DataTable and passing that to the grid, I just wanted to know if there was any way to get the RowCount by using the SqlDataReader and Paging.

Wyatt
Top achievements
Rank 1
 answered on 26 May 2010
2 answers
85 views
hi

how change excel export font name.
i want change font to "tahoma" .   tahoma is windows recommended  for Persian language.


Pouya ir
Top achievements
Rank 1
 answered on 26 May 2010
2 answers
180 views
I have to do everything at runtime; tree nodes vary by user. I used example code to apply node templates... works as expected.
When I select a node (and get the postback) the templates are not applied. Then I select a node again (and get the postback), the template is applied... it just toggles back and forth. Code is below....
 
  Private Sub GetAccountProducts(ByVal AccountID As StringByVal Category As StringByRef node As Telerik.Web.UI.RadTreeNode)  
        Try 
             
            Dim objCom As New SqlClient.SqlCommand  
            Dim objDA As New SqlClient.SqlDataAdapter  
            Dim objDT As New DataTable  
 
            objCom.Connection = objSLXCon  
            objCom.CommandText = "select ap.ACCOUNTPRODUCTID, ap.SERIALNUMBER, ap.PRODUCTNAME " & _  
                "from accountproduct ap inner join product p on ap.productid = p.productid " & _  
                "where ap.accountid = '" & AccountID & "' and p.family = '" & Category & "' " & _  
                "and ap.accountproductid in (select accountproductid from ADVANTAGEVISIONACCESS where contactid = '" & Request.Cookies("UserID").Value & "')" 
            objDA.SelectCommand = objCom  
            objDA.Fill(objDT)  
 
            For Each dr As DataRow In objDT.Rows  
                Dim AssetNode As New Telerik.Web.UI.RadTreeNode()  
                AssetNode.Text = dr.Item("SERIALNUMBER").ToString  
                AssetNode.Value = dr.Item("ACCOUNTPRODUCTID").ToString  
                AssetNode.Attributes.Add("Level""Asset")  
                AssetNode.Attributes.Add("Model", dr.Item("PRODUCTNAME"))  
                AssetNode.NavigateUrl = "Assets.aspx?Level=Asset&AssetID=" & dr.Item("ACCOUNTPRODUCTID").ToString  
                Dim template As New AssetTemplate()  
                template.InstantiateIn(AssetNode)  
                node.Nodes.Add(AssetNode)  
            Next 
 
        Catch ex As Exception  
 
        End Try 
    End Sub 
 
Class AccountTemplate  
    Implements ITemplate  
 
    Public Sub InstantiateIn(ByVal container As Control) Implements System.Web.UI.ITemplate.InstantiateIn  
        Dim label1 As New Label()  
        Dim node As RadTreeNode = DirectCast(container, RadTreeNode)  
        label1.ID = "accountnamelabel" 
        label1.Text = node.Text  
        label1.ForeColor = Drawing.Color.Black  
        container.Controls.Add(label1)  
    End Sub 
 
End Class 
 
Class ContactTemplate  
    Implements ITemplate  
 
    Public Sub InstantiateIn(ByVal container As Control) Implements System.Web.UI.ITemplate.InstantiateIn  
        Dim label1 As New Label()  
        Dim node As RadTreeNode = DirectCast(container, RadTreeNode)  
        label1.ID = "alllocationslabel" 
        label1.Text = node.Text  
        label1.ForeColor = Drawing.Color.Black  
        container.Controls.Add(label1)  
    End Sub 
 
End Class 
 
Class FamilyTemplate  
    Implements ITemplate  
 
    Public Sub InstantiateIn(ByVal container As Control) Implements System.Web.UI.ITemplate.InstantiateIn  
        Dim label1 As New Label()  
        Dim node As RadTreeNode = DirectCast(container, RadTreeNode)  
        label1.ID = "familynamelabel" 
        label1.Text = node.Text  
        label1.ForeColor = Drawing.Color.Black  
        container.Controls.Add(label1)  
    End Sub 
 
End Class 
 
Class AssetTemplate  
    Implements ITemplate  
 
    Public Sub InstantiateIn(ByVal container As Control) Implements System.Web.UI.ITemplate.InstantiateIn  
        Dim label1 As New Label()  
        Dim label2 As New Label()  
 
 
        Dim node As RadTreeNode = DirectCast(container, RadTreeNode)  
        label1.ID = "assetnamelabel" 
        label1.Text = node.Attributes("Model")  
        label1.ForeColor = Drawing.Color.Black  
        container.Controls.Add(label1)  
        label2.ID = "assetseriallabel" 
        label2.Text = " - SN: " & node.Text  
        label2.ForeColor = Drawing.Color.Black  
        container.Controls.Add(label2)  
    End Sub 
 
End Class 
John Crumpton
Top achievements
Rank 1
 answered on 26 May 2010
6 answers
325 views
I have implemented a custom skin (basically a copy of the default with a few minor changes) for my grid.  Everything works except when I group by a column.

When I group by a column I get the column name in the Group Panel but the button next to it to sort it Asc or Desc does not show the correct image.  All I see is a default button with no text about 25px wide.

I can't find anywhere in the stylesheets where these images are called from.  The embedded styles get the correct images.  Is this a bug or can someone point  me to the correct place to reference the image path for these two items.

Thanks
Cartoon Head
Top achievements
Rank 1
 answered on 26 May 2010
11 answers
613 views
I've uninstalled the controls with both the uninstaller that came with the tool as well as Windows Install Cleanup. Also uninstalled the telerik.* references from the WIndows\Assembly. Yet the Telerik menu still displays in VS 2008 without any functional links.

How do I get rid of this thing? Thanks

Roger 
Ken Palmer
Top achievements
Rank 1
 answered on 26 May 2010
1 answer
63 views
hi support,

i am facing a very strange problem which is not reproducable in demos. when i double click on any apointment item in  rad schedular, the particular word in the text string that is double clicked goes to invisble mode (hide).

we are using 2008.3.1125.35.
thanks and best regards,
Dimitar Milushev
Telerik team
 answered on 26 May 2010
1 answer
223 views

I know this has been posted with even replies from Mods 

http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-lost-focus-after-autosave.aspx

But I dont have my Telerik Control inside the Update panel but it still refresh the conrol and loses its focus. Is there a way to do a AutoSave without refreshing directly from ClientSide?




<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Control_RichEdit.ascx.cs" Inherits="Common_Control_RichEdit" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
 
<telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="../TelerikRichEditControl/ToolsFile.xml" Skin="Web20" EditModes="Design" > 
   
 
</telerik:RadEditor> 
<asp:Timer ID="Timer1" runat="server" Interval="500000" OnTick="Timer1_Tick">  
        </asp:Timer> 
                <br /> 
        <br /> 
        <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">  
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="Timer1" /> 
            </Triggers> 
        </asp:UpdatePanel> 
          
          
<script type="text/javascript">   
        function OnClientLoad(sender, args)  
        {  
            var timer = $find("<%=Timer1.ClientID %>");  
              
              
            startCounter();  
          
            //Attach to the spellCheckLoaded event as the spell itself is loaded with AJAX  
            sender.add_spellCheckLoaded(function()  
                {  
                    var spell = sender.get_ajaxSpellCheck();  
                                              
                    spell.add_spellCheckStart(function(sender, args)  
                    {   
                        timer._stopTimer();  
                          
                        //Stop counter  
                        stopCounter();  
                    });  
                                  
                    spell.add_spellCheckEnd(function(sender, args)  
                    {  
                        //Restart the timer;   
                        timer._startTimer();  
                          
                        //Restart counter  
                        startCounter();  
                    });  
                }   
            );  
        }  
 
        var strText = document.getElementById('RadEditor1');  
 
        alert(strText);  
        //======================================== UI update for the remaining seconds =======================================//  
        var initialSeconds = 15;  
        var currentSeconds = initialSeconds;  
        var interval = null;  
        function startCounter()  
        {  
            if (!interval)  
            {  
                 currentSeconds = initialSeconds;  
                 interval = window.setInterval(function()  
                 {   
                    if (currentSeconds > 0)  
                    {  
                        currentSeconds--;  
                    }  
                    else  
                    {  
                        currentSeconds = initialSeconds;  
                    }  
                      
                    var span = document.getElementById("remainingSeconds");   
                    span.innerHTML = currentSeconds;  
                      
                 }, 1000);  
            }   
        }  
                          
        function stopCounter()  
        {  
            if (interval) window.clearInterval(interval);  
            interval = null;  
        }  
          
        //===============================================================================================================//  
    </script> 
 
     
Server side
using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
public partial class Common_Control_RichEdit : System.Web.UI.UserControl  
{  
    public string Text  
    {  
        get { return RadEditor1.Text; }  
        set { RadEditor1.Text = value; }  
    }  
    protected void Page_Load(object sender, EventArgs e)  
    {  
 
    }  
    protected void Timer1_Tick(object sender, EventArgs e)  
    {  
        //lbl1.Text = RadEditor1.Content;  
        this.RadEditor1.Focus();  
    }  
 
}  
 

Could you please explain me about the ClientSide Save? without refreshing the control ( Like Gmail, Yahoo Mail does?)

Thanks
Roomi
Rumen
Telerik team
 answered on 26 May 2010
3 answers
64 views
Hi,
Please refer to the demo below. When I try to copy a table from Word 2010, and do some formatting, the OK button cannot be clicked. If click cancel, the formatting will be lose.
 http://www.ximnet.com.my/upload/copy_from_word_2010.swf

Thanks.
Rumen
Telerik team
 answered on 26 May 2010
1 answer
450 views
Hi,

I have a grid that shows the columns at runtime and it's not connected to object data source. I want to modify these columns like changing the header text or making some columns hidden but I can't. Also in some columns I want to show other data than the shown, for example if it was showing numbers under country column i want it to bring the name of the country instead.
How to modify run time generated columns?? Please Help :(!

_Hamda
Pavlina
Telerik team
 answered on 26 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?