Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
200 views
Hi everyone,

I did not find any forum posts for this though I would think that someone else would have discovered/had an issue with this by now.  It appears to me that the ConfirmButtonExtender does not work with the RadButton control.  Upon canceling the confirm the Click event code is still called.  Is this expected behavior or a legitimate issue?  I am using the latest SP for Q3 2010 ASP.NET controls (2010.3.1317.35).

Thanks,

Adam.g
Pero
Telerik team
 answered on 14 Feb 2011
2 answers
198 views
Hi,
I am new to Telerik controls so don't understand all of the consepts yet. I have been playing with the Scheduler since it is the first component I need to implement.
I have a SQL Server and I used the datasource wizzard to connect. Things are working just fine. But my real life application needs to connect to many different databases with the exact same structure at run time depending on logged in user (I have several users and each of them have their own database on the same server).

So my question is how can I override the connectionstring (or some other method) in code behind to change the database name just before the Scheduler loads?

Atle

Michael
Top achievements
Rank 1
 answered on 14 Feb 2011
1 answer
96 views
I am currently testing out Trial versions of the ASP.Net AJAX Rad Controls and the RadControls for Silverlight. I have the following in the Visual Studio 2010 project
  • Silverlight 4 Application (SL App) with a RadChart in it.
  • ASP.Net User Control with a reference to the the SL app: <object data="data:application/x-silverlight-2," ...> ... </object>
  • Master Page including the RadScriptManager
  • ASP.Net form with related RadComboBoxes and the above user control
I was trying to refresh the RadChart in the SL App with value from the selected values in the ASP.Net AJAX RadComboboxes. I figured out how to pass parameters to the SL App. However, with the SL App present on the page, the RadComboBoxes do not drop down. Is this a known issue? Is there a fix or a workaround?

I've attached a simpler version of the project for your reference. The outcome is the same whether I use a Master Page or not.
Thank you,

Wes C.

MASTER PAGE
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="Site.master.vb" Inherits="Teacher_Effectiveness.Site" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
     
    <asp:ContentPlaceHolder ID="HeadScript" runat="server">
     
    </asp:ContentPlaceHolder>
</head>
<body>
    <form runat="server" id="MasterForm">
      <telerik:RadScriptManager ID="RadScriptMgr" runat="server">
    </telerik:RadScriptManager>
   
    <div class="page">
        <div class="header">
            <asp:ContentPlaceHolder ID="HeadContent" runat="server">
                <div class="title">
                    <h1>
                        Teacher Effectiveness
                    </h1>
                </div>
                <div class="loginDisplay">
                    <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                        <AnonymousTemplate>
                            [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                        </AnonymousTemplate>
                        <LoggedInTemplate>
                            Welcome <span class="bold">
                            <asp:LoginName ID="HeadLoginName" runat="server" />
                            </span>!
                            [
                            <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/>
                            ]
                        </LoggedInTemplate>
                    </asp:LoginView>
                </div>
                <div class="clear hideSkiplink">
                    <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                        <Items>
                            <asp:MenuItem NavigateUrl="~/Index.aspx" Text="Home"/>
                            <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                        </Items>
                    </asp:Menu>
                </div>
                 
            </asp:ContentPlaceHolder>
             
        </div>
        <div class="main">
            <asp:contentPlaceHolder ID="ContentHeader" runat="server">
             
            </asp:contentPlaceHolder>
            <asp:ContentPlaceHolder ID="ContentMain" runat="server">
                      
                 
            </asp:ContentPlaceHolder>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="footer">
        
    </div>
    <asp:ContentPlaceHolder ID="Script" runat="server">
         
    </asp:ContentPlaceHolder>
    </form>
</body>
</html>

TEST.ASPX
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Test.aspx.vb" Inherits="Teacher_Effectiveness.Test" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="chart" TagName="chart" src="User_Control/Results_By_Achievement_Level.ascx" %>
 
 
 
<asp:Content ID="Content4" ContentPlaceHolderID="ContentMain" runat="server">
    <telerik:RadComboBox ID="RadComboBox1" runat="server">
    </telerik:RadComboBox>
 
   <chart:chart ID="pie" runat="server" />
</asp:Content>

TEST.VB
Imports Telerik.Web.UI
 
Public Class Test
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Me.RadComboBox1.Items.Add(New RadComboBoxItem("1"))
            Me.RadComboBox1.Items.Add(New RadComboBoxItem("2"))
            Me.RadComboBox1.Items.Add(New RadComboBoxItem("3"))
            Me.RadComboBox1.Items.Add(New RadComboBoxItem("4"))
        End If
    End Sub
 
End Class

Results_By_Achievement_Level.ascx
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Results_By_Achievement_Level.ascx.vb" Inherits="Teacher_Effectiveness.Results_By_Achievement_Level" %>
 
<script type="text/javascript">
      function onSilverlightError(sender, args) {
          var appSource = "";
          if (sender != null && sender != 0) {
              appSource = sender.getHost().Source;
          }
 
          var errorType = args.ErrorType;
          var iErrorCode = args.ErrorCode;
 
          if (errorType == "ImageError" ||
                errorType == "MediaError") {
              return;
          }
 
          var errMsg = "Unhandled Error in Silverlight Application "
                + appSource + "\n";
 
          errMsg += "Code: " + iErrorCode + "    \n";
          errMsg += "Category: " + errorType + "       \n";
          errMsg += "Message: " + args.ErrorMessage + "     \n";
 
          if (errorType == "ParserError") {
              errMsg += "File: " + args.xamlFile + "     \n";
              errMsg += "Line: " + args.lineNumber + "     \n";
              errMsg += "Position: " + args.charPosition + "     \n";
          }
          else if (errorType == "RuntimeError") {
              if (args.lineNumber != 0) {
                  errMsg += "Line: " + args.lineNumber + "     \n";
                  errMsg += "Position: " + args.charPosition +
                        "     \n";
              }
              errMsg += "MethodName: " + args.methodName + "     \n";
          }
 
          throw new Error(errMsg);
      }
 
       
    </script>
<object id="piechart" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="400" height="400">
    <param name="source" value="ClientBin/RadChart.xap"/>
    <param name="onError" value="onSilverlightError" />
    <param name="background" value="white" />
    <param name="minRuntimeVersion" value="4.0.50401.0" />
    <param name="uiculture" value="<%= System.Threading.Thread.CurrentThread.CurrentUICulture %>" />
    <param name="culture" value="<%= System.Threading.Thread.CurrentThread.CurrentCulture %>" />
    <param name="autoUpgrade" value="true" />
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"/>
Simon
Telerik team
 answered on 14 Feb 2011
1 answer
130 views
Hi i had a code like this
<telerik:RadAsyncUpload ID="RadAsyncFile_Upload" runat="server" AllowedFileExtensions="jpg,jpeg,png,gif,doc,pdf,zip,rar" 
                                     MaxFileInputsCount="2"  MaxFileSize="2097152">
                                    <Localization Select="Browse" />
                                    </telerik:RadAsyncUpload>

So i had doubt that how to check the size of both the files on client side so that it should not exceed 2 MB and how do we convert  the files async upload to byte? 
Shinu
Top achievements
Rank 2
 answered on 14 Feb 2011
1 answer
103 views
After upgrading, I get this error when any event is fired from my radgrid, ONLY when the RadAjaxLoadingpanel is used.  The scenerio fails with client script error:  Message: Object doesn't support this property or method

Fails:
Grid/RadAjaxManager/RadAjaxLoadingPanel
Grid/RadAjaxPanel/RadAjaxLoadingPanel

Works:
Disable ajax!
Grid/RadAjaxManager/RadAjaxLoadingPanel
Grid/RadAjaxPanel/RadAjaxLoadingPanel

Basically, using the loading panel fails under all circumstances.  The project does include a reference to the AjaxControlToolkit.dll(v 1.0.11119).  The grid has templated radcombos, numerictextboxes, radtextboxes, and linkbuttons in both the command template and command templates.  There is also another grid inside the editItem template.  I've read dozens of forum threads and found no help for the exact issue I'm having.

full error below:
Message: Object doesn't support this property or method
Line: 1591
Char: 34
Code: 0
URI: http://192.168.169.17/Converted-VS10/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a9506cff2-3a86-46c5-b869-6ba1478f3c27%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3af46195d3%3aaa288e2d%3ab7778d6c%3a8e6f0d33%3a6a6d718d%3a58366029%3a874f8ea2%3a19620875%3a39040b5c%3a9cdfc6e7%3ae085fe68%3a8674cba1%3ac08e9f8a%3a59462f1%3aa51ee93e%3a490a9d4e





Tsvetina
Telerik team
 answered on 14 Feb 2011
1 answer
109 views
Hi

I search a Excample witch shows me how to implement a loadingpanel on a MasterPage. My Scenario is, Masterpage with spliter for left pane and right pane. When the user clicks on left side, for example in a treeview, i want a lodingpannel on the hole site or on the right pane until the datas on the right side (Content) is loaded.

How can help me?

Regards
Markus
Pavlina
Telerik team
 answered on 14 Feb 2011
4 answers
83 views
Hello,

I am capturing 2 sets of addresses, a job site address and a job ship address, and am using radcomboboxes as shown in the related combobox demo.  I am using the comboboxes for city, state, county, zip and country.  I have a checkbox so that if the ship address is the same as the site address one can check the box and the values will be copied from the site address to the ship address.  In addition, I'd like to be able to change the ship address if necessary (after checking the box) by making use of the comboboxes.  I currently have a function for the onclick event of the checkbox called DupAddresses().  Inside the DupAddresses() function I am calling the requestItems event and passing the appropriate data for each combobox. I don't get any error messages, and when I put in javascript alerts and codebehind breakpoints, it looks like the appropriate data is going to the right place. When the checkbox is clicked, I am able to successfully use combobox.set_text to set the appropriate text in the fields, but I have not been able to figure out how to databind the updated combo values to the comboboxes - instead they retain the previous values.  For example, if the original ship city/state was Birmingam/Alabama and the site city/state is Atlanta/Georgia, if I click the checkbox, I can change the ship city/state combo text to show Birmingham/Alabama, but if I click on the ship city combo the list still reflects those cities found in Alabama, not Georgia.  Any ideas/suggestions would be great.

Thanks.
Dimitar Terziev
Telerik team
 answered on 14 Feb 2011
1 answer
82 views
Hi Team,

        2 days ago, i installed demo asp.net ajax control. And then i can be create new web site with RadControls. After that i bought premium collection suite. Before install licensed version i already uninstalled demo version. Ok! then i install license version in my pc. But when i create new web site with RadControls template i cannot load any control in my page. I try 2 times. Stay can't load any control.

My version is Telerik.Web.UI_2010_3_1317_Dev
MS Visual Studio 2005 , .NET Framework Version 2.0.50727 SP2
OS Vista 32 Bit

Please see : attachment

How should i do?

Regards,
Biliana Ficheva
Telerik team
 answered on 14 Feb 2011
3 answers
147 views
Hi,

we are using telerik TreeList in our project but there are some missing base feature that obstacle out programming.
Here same examples :
- when paging is enables, second level items may appear some in current page and some other in next page
- edititem template is not present; so, if we need to save one row, we are forced to render all items with control that allow modification (eg. textbox, drop down)
- loadOnDemand for each node is missing, so we arte forced to load all data at a time

I need to know if this feature will be delivered in Q4 2010 version of Telerik ASP.NET Ajax Controls. When Q4 2010 will be avaiable (1 week/1 month)?

Thanks a lot for your support
Tsvetina
Telerik team
 answered on 14 Feb 2011
6 answers
170 views
I've been looking all over and can't seem to find "the way" to extend my appointments when using a webservice provider.

Thx
/Jesper 
Jesper Krejberg Petersen
Top achievements
Rank 2
 answered on 14 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?