Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
36 views
Needed to upgrade the controls in a VS2008 project using 2010.1.519.  However, since the upgrade to the 2010.2.826 controls, the css is not being applied (properly).

Any suggestions?
Dobromir
Telerik team
 answered on 30 Sep 2010
5 answers
116 views
Hi all,

I want to make the dock command have an onclientclick command rather than have it as a button on the dock header, is there any way to do this?

regards,

Ash
Rumen
Telerik team
 answered on 30 Sep 2010
1 answer
128 views
Hi

When using IE6 behind an ISA Proxy the file upload sometimes fails after multiple uploads.  This is a SiteFinity site using a FileUpload control.  Here is a screenshot: http://www.programgood.net/fileuploadBug.png

I've made the file upload simple.  ie it only does 1 at a time, then renders the page to show a thumbnail of the recently uploaded photo.

Here is what I got back from the admin:

"Looking at our Proxy Server, the monitor shows Windows Authentication being used to make the connection at the start, but then it changes to Anonymous and The ISA Server goes, denied (can't have unknowns accessing the Internet).

By-Pass the Proxy Server (ie: make a direct connection to the Internet) and all works well. From my perspective, I can make a rule to allow this website direct access on our side, but it's not ideal and only resolves the problem for the CCC.. I'll be expecting this same issue with any other business working behind an ISA box."

Does this ring any bells, and any advice on where to start debugging?

Regards

Dave
Genady Sergeev
Telerik team
 answered on 30 Sep 2010
6 answers
351 views
I'm wondering if it's possible to drop the item text into the textbox at the position of the cursor when the mouse button is released. I've tried a few different ways but so far I haven't found how to do it or if it's even possible.
Maria Ignatius Ephrem
Top achievements
Rank 1
 answered on 30 Sep 2010
11 answers
309 views
I used a sample from the Telerik site and tweaked the control files to run a subroutine on each tab load. I find that when the first tab is is selected and loaded, the subroutine for that control runs. However when I click on the second tab the first tab's subroutine runs and then the second tab's subroutine runs. When I click the third tab, the first two subroutines run and then the third subroutine runs. After that I can freely click through all the tabs and all the information is there as it is supposed to be. But to get here the page ran a number of the same subroutines multiple times. Shouldn't the load on demand only run the subroutine associated with the page once and as you click on the other tabs only run their subroutines on demand? Then if this happens I would still hope that all the information will still be retained for each tab when reclicked? If my assumptions are correct, what is wrong with my sample code or what am I missing?  Thank you for your help, much appreciated.

**************

ASPX

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="C_Test.aspx.vb" Inherits="SMARTmig.C_Test" %>

 

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>C Test</title>

    <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR" />

    <meta content="Visual Basic 7.0" name="CODE_LANGUAGE" />

    <meta content="JavaScript" name="vs_defaultClientScript" />

    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />

       <script type="text/javascript">

           

            function onTabSelecting(sender, args)

            {

                if (args.get_tab().get_pageViewID())

                {

                    args.get_tab().set_postBack(false);

                    //--alert(args.get_tab().get_pageViewID())

                    //--alert(args.get_tab().get_postBack())

               }

            }

           

        </script>

</head>

<body>

    <form id="form1" method="post" runat="server">

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

        </telerik:RadScriptManager>

        <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server">

            <table cellspacing="0" cellpadding="15" width="100%" border="0">

                <tr>

                    <td bgcolor="#f3f3f3">

                        &nbsp;</td>

                </tr>

                <tr>

                    <td bgcolor="#f3f3f3">

                        &nbsp;</td>

                </tr>

                <tr>

                    <td bgcolor="#f3f3f3">

                        &nbsp;</td>

                </tr>

                <tr>

                    <td bgcolor="#f3f3f3">

                        &nbsp;</td>

                </tr>

                <tr>

                    <td bgcolor="#f3f3f3">

                        <asp:Image runat="server" ID="LoadingImage1" ImageUrl="../images/loading.gif" AlternateText="Loading..." />

                    </td>

                </tr>

            </table>

        </telerik:RadAjaxLoadingPanel>

        &nbsp;

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

            <AjaxSettings>

                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">

                    <UpdatedControls>

                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />

                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

                    </UpdatedControls>

                </telerik:AjaxSetting>

                <telerik:AjaxSetting AjaxControlID="RadMultiPage1">

                    <UpdatedControls>

                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

                    </UpdatedControls>

                </telerik:AjaxSetting>

            </AjaxSettings>

        </telerik:RadAjaxManager>

 

 

        <table cellspacing="0" cellpadding="15" width="100%" border="0">

            <tr>

                <td bgcolor="#f3f3f3">

                    <font face="Arial, Helvetica, sans-serif" color="#732928" size="2"><strong>Click the

                        tabs below for further details on each phase of the SMART process.</strong></font></td>

            </tr>

        </table>

        <table cellspacing="0" cellpadding="15" width="100%" border="0">

            <tr>

                <td bgcolor="#f3f3f3" colspan="2">

                    <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" ID="RadTabStrip1"

                        SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" Skin="Gray" Align="Justify"

                        Width="800px" Orientation="HorizontalTop">

                    </telerik:RadTabStrip>

                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"

                        CssClass="MultiPage" Width="800px">

                    </telerik:RadMultiPage>

                </td>

            </tr>

        </table>

    </form>

</body>

</html>

 

VB.NET

Imports System

Imports System.Web

Imports System.Web.UI

Imports System.Web.UI.WebControls

Imports System.Data

Imports System.Data.SqlClient

Imports Telerik.Web.UI

Imports Microsoft.VisualBasic

 

Namespace SMARTmig

  Partial Class C_Test

    Inherits System.Web.UI.Page

 

 

#Region " Web Form Designer Generated Code "

 

    'This call is required by the Web Form Designer.

    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

 

    End Sub

 

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

      'CODEGEN: This method call is required by the Web Form Designer

      'Do not modify it using the code editor.

      InitializeComponent()

    End Sub

 

#End Region

 

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

      If Not Page.IsPostBack Then

        AddTab("TabOne")

        AddTab("TabTwo")

        AddTab("TabThree")

        AddPageView(RadTabStrip1.FindTabByText("TabOne"))

 

      End If

 

 

 

    End Sub

 

    Private Sub AddTab(ByVal tabName As String)

      Dim tab As RadTab = New RadTab

      tab.Text = tabName

      RadTabStrip1.Tabs.Add(tab)

 

    End Sub

 

    Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As RadTabStripEventArgs) Handles RadTabStrip1.TabClick

      AddPageView(e.Tab)

      e.Tab.PageView.Selected = True

 

    End Sub

 

    Private Sub AddPageView(ByVal tab As RadTab)

      Dim pageView As RadPageView = New RadPageView

      pageView.ID = tab.Text

      RadMultiPage1.PageViews.Add(pageView)

      pageView.CssClass = "pageView"

      tab.PageViewID = pageView.ID

 

    End Sub

 

    Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated

      Dim userControlName As String = e.PageView.ID + "VB.ascx"

      Dim userControl As Control = Page.LoadControl(userControlName)

      userControl.ID = e.PageView.ID & "_userControl"

      e.PageView.Controls.Add(userControl)

 

    End Sub

 

  End Class

 

 

End Namespace

 

ASCX   for tab one

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TabOneVB.ascx.vb" Inherits="Admin_TabOneVB" %>

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

       <table cellspacing="0" cellpadding="15" width="100%" border="1">

            <tr>

                <td bgcolor="#f3f3f3">

                    <img href="#" alt="" src="../images/org_assess_bckgrd.gif" /><br />

                    <br />

                    <font face="Arial, Helvetica, sans-serif" color="#732928" size="2"><strong>Assessment!</strong><br />

                        <br />

                        <strong>When to clients:</strong><ul>

                            <li>They are looking whom.</li>

                            <li>They want to align skills </li>

                            <li>They want to develop an.</li>

                            <li>They want to costs.</li>

                            <li>They want to document</li>

                            <li>They know that requirements.</li>

                        </ul>

                    </font>&nbsp;

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

                </td>

            </tr>

        </table>

 

ASCX.VB   for tab one

 

 

 

Imports System

Imports System.Web

Imports System.Web.UI

Imports System.Web.UI.WebControls

Imports System.Data

Imports System.Data.SqlClient

Imports Telerik.Web.UI

Imports Microsoft.VisualBasic

 

Partial Class Admin_TabOneVB

  Inherits System.Web.UI.UserControl

 

 

 

#Region " Web Form Designer Generated Code "

 

  'This call is required by the Web Form Designer.

  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

 

  End Sub

 

  Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

    'CODEGEN: This method call is required by the Web Form Designer

    'Do not modify it using the code editor.

    InitializeComponent()

  End Sub

 

#End Region

 

  Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'Put user code to initialize the page here

 

    Call RunOne()

 

 

  End Sub

 

 

  Public Sub RunOne()

    'SQL Database connection

 

    Dim sConnect As New SMARTmig.ConnectSMART.Connections

    Dim cn As New SqlConnection

    cn.ConnectionString = sConnect.GetConnectionString

 

 

    Dim ta As String = Request.QueryString("ta")

    Dim myCM As New SqlCommand

    myCM.Connection = cn

    myCM.CommandType = CommandType.StoredProcedure

    myCM.CommandText = "Query_TA_RegStatsV2"

 

    Dim myParm As New SqlParameter("@BeginDT", SqlDbType.VarChar)

 

    myParm.Value = "1/1/2009"

    myParm.Direction = ParameterDirection.Input

    myCM.Parameters.Add(myParm)

 

    myParm = New SqlParameter("@EndDT", SqlDbType.VarChar)

    myParm.Value = "3/1/2009"

    myParm.Direction = ParameterDirection.Input

    myCM.Parameters.Add(myParm)

 

    myParm = New SqlParameter("@TA", SqlDbType.VarChar)

    myParm.Value = "%gretz%"

    myParm.Direction = ParameterDirection.Input

    myCM.Parameters.Add(myParm)

 

    Dim myCMD As New SqlDataAdapter

    myCMD.SelectCommand = myCM

    Dim es As DataSet = New DataSet

    myCMD.Fill(es, "dAP")

    Dim myDataTable As DataTable

    myDataTable = es.Tables("dAP")

    cn.Close()

    'Response.Write("test")

    Dim myRow As DataRow

    Dim currRows() As DataRow = myDataTable.Select(Nothing, Nothing, DataViewRowState.CurrentRows)

    For Each myRow In currRows

      asmt.Text = myRow("lastname")

      Exit For

    Next

  End Sub

 

End Class

 

 

ASCX  for Tab Two

 

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TabTwoVB.ascx.vb" Inherits="Admin_TabTwoVB" %>

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

         <table cellspacing="0" cellpadding="15" width="100%" border="1">

            <tr>

                <td bgcolor="#f3f3f3">

                    <img href="#" alt="" src="../images/org_assess_bckgrd.gif" /><br />

                    <br />

                    <font face="Arial, Helvetica, sans-serif" color="#732928" size="2"><strong>Definition!</strong><br />

                        <br />

                        <strong>When to clients:</strong><ul>

                            <li>They are looking whom.</li>

                            <li>They want to align skills </li>

                            <li>They want to develop an.</li>

                            <li>They want to costs.</li>

                            <li>They want to document</li>

                            <li>They know that requirements.</li>

                        </ul>

                    </font>&nbsp;

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

                </td>

            </tr>

        </table>

 

 

 

ASCX.VB   for tab two

 

Imports Microsoft.VisualBasic

 

Partial Class Admin_TabTwoVB

  Inherits System.Web.UI.UserControl

 

  Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'Put user code to initialize the page here

 

    RunTwo()

 

 

  End Sub

 

 

  Public Sub RunTwo()

    'SQL Database connection

 

    Dim sConnect As New SMARTmig.ConnectSMART.Connections

    Dim cn As New SqlConnection

    cn.ConnectionString = sConnect.GetConnectionString

 

 

    Dim ta As String = Request.QueryString("ta")

    Dim myCM As New SqlCommand

    myCM.Connection = cn

    myCM.CommandType = CommandType.StoredProcedure

    myCM.CommandText = "Query_TA_RegStatsV2"

 

    Dim myParm As New SqlParameter("@BeginDT", SqlDbType.VarChar)

 

    myParm.Value = "1/1/2009"

    myParm.Direction = ParameterDirection.Input

    myCM.Parameters.Add(myParm)

 

    myParm = New SqlParameter("@EndDT", SqlDbType.VarChar)

    myParm.Value = "3/1/2009"

    myParm.Direction = ParameterDirection.Input

    myCM.Parameters.Add(myParm)

 

    myParm = New SqlParameter("@TA", SqlDbType.VarChar)

    myParm.Value = "%larson%"

    myParm.Direction = ParameterDirection.Input

    myCM.Parameters.Add(myParm)

 

    Dim myCMD As New SqlDataAdapter

    myCMD.SelectCommand = myCM

    Dim es As DataSet = New DataSet

    myCMD.Fill(es, "dAP")

    Dim myDataTable As DataTable

    myDataTable = es.Tables("dAP")

    cn.Close()

    'Response.Write("test")

    Dim myRow As DataRow

    Dim currRows() As DataRow = myDataTable.Select(Nothing, Nothing, DataViewRowState.CurrentRows)

    For Each myRow In currRows

      def.Text = myRow("lastname")

      Exit For

    Next

  End Sub

 

End Class

 

 

 

Yana
Telerik team
 answered on 30 Sep 2010
1 answer
86 views
Is there a way to find items based on partial text?

My list has about 1000 items, and I want to start typing in my textbox and have it select the closest match as I type...
Genady Sergeev
Telerik team
 answered on 30 Sep 2010
3 answers
61 views
Recently I nested a RadMenu with RadTreeView.When I run my app into an IE6 I have no problem but a big and bad thing happen when I run it in IE7 or firefox.
You can see what I am talking about in my attached file.
Thanks you in advance.
Nikolay Tsenkov
Telerik team
 answered on 30 Sep 2010
3 answers
82 views
Hi!
I have about 10 ServerControls (MyOwn) on Page and one UserControl, which uses AjaxProxyManager and AjaxTimer.
When timer raises ajax request, all page rerenders (it tries to render all 10 controls, which are not part of Ajax Request)
I suppose I dont understand some of the basics of Ajax. Why it is needed to render all page (in my case it is very time-costly)?

Could you advice me something to change in my solution?
Can I arrange controls in such way when Ajax request renders only one control which I need to update?
Iana Tsolova
Telerik team
 answered on 30 Sep 2010
11 answers
313 views
I'm using document.domain in my application so that I can access properties (DOM) of another website using javascript.  Using document.domain has broken the RadEditors that I'm using.  I'm getting Access Denied errors in IE 6.  It works in Firefox.  I can guess why this is happening.  The RadEditor is using an iframe and the source document's document.domain is not set to the same value.  My understanding that IE 6 requires you to explicity set this value in all windows.

var

 

doc=this._textIframe.contentWindow.document;

 


That's where one of the errors occurs in the telerik javascript.  Basically the iframe isn't accessable from the parent window and the editor just doesn't work at all.  

I think this probably a bug in IE 6 as it should inherit the document.domain setting from the parent window, but it doesn't apparently.  You have to explicity set it.  The src of the iframe is:

javascript:'<html></html>


which isn't a phyiscal page where someone could add:
document.domain = "whatever";

I'm using the latest ajax RadEditor.  Any idea how I can solve this?  Thanks,

Randy
Rumen
Telerik team
 answered on 30 Sep 2010
1 answer
108 views
We have the RadEditor currently using ContentAreaMode= iFrame and when the control is rendered it extends the bottom of the control beyond the Design/HTML buttons (shown in iframe.png).

I changed the ContentAreaMode to Div and that problem is resolved (shown in div.png) but now the control seems to ignore the EditorCssFile we load.

You can see that the font size has changed in the div.png file.

The .css file is not doing anything very special, I've pasted a sample below.  I can set the font-size, font-family, etc. on the control but that will break our model and I don't see any reason why using Div would cause the font-family and font-size to stop working.

The .css file is loaded with this line of code where "radEditorCSS" is the specific .css file:
radNotes.CssFiles.Add(new EditorCssFile("~/Styles/" + radEditorCSS));


p  
{  
    margin: 0px;  
}  
 
P  
{  
    margin: 0px;  
}  
 
body
{
    font-family: Courier New !important;
    font-size: 10pt !important;
}
Dobromir
Telerik team
 answered on 30 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?