Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Why did the Sitefinity skin change from V 2012.3.1308.40 to V 2012.2.912.40? I thought these skins are standards that do not change.
Galin
Telerik team
 answered on 28 Feb 2013
0 answers
82 views
Hello,

I'm using a DotNetNuke 7.0 webservice and calling it from the autocomplete text box. I have a more complex version, but even this simple one isn't working:

<telerik:RadAutoCompleteBox runat="server" ID="test">
    <WebServiceSettings Method="AutocompleteSearchUsers"Path="http://localhost/DesktopModules/CoreServices/API/UserService" />
</telerik:RadAutoCompleteBox>

I am getting a result from the service that comes in XML - here's an example result I got from firebug:
<Items>
<AutoCompleteBoxItemData>
<Attributes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></Attributes>
<Enabled>true</Enabled>
<Text>Mike TEST Ryckman</Text>
<Value>22173</Value>
</AutoCompleteBoxItemData>
<AutoCompleteBoxItemData>
<Attributes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></Attributes>
<Enabled>true</Enabled>
<Text>Kirssa Cline Ryckman</Text>
<Value>29</Value>
</AutoCompleteBoxItemData>
<AutoCompleteBoxItemData>
<Attributes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></Attributes>
<Enabled>true</Enabled>
<Text>Kirssa Cline Ryckman</Text>
<Value>42</Value>
</AutoCompleteBoxItemData>
<AutoCompleteBoxItemData>
<Attributes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></Attributes>
<Enabled>true</Enabled>
<Text>Mike Ryckman</Text>
<Value>3</Value>
</AutoCompleteBoxItemData>
<AutoCompleteBoxItemData>
<Attributes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"></Attributes>
<Enabled>true</Enabled>
<Text>Kirssa Ryckman</Text>
<Value>24</Value>
</AutoCompleteBoxItemData>
</Items>
</AutoCompleteBoxData>

Here's the method being called:

<DnnAuthorize()>
<HttpPost()>
Public Function AutocompleteSearchUsersTest(context As RadAutoCompleteContext) As AutoCompleteBoxData
    Const MaxRecords As Integer = 5
    Const MinLength As Integer = 2
    Dim serializer As New JavaScriptSerializer
    Dim data As Dictionary(Of String, Object)
    Dim searchString As String
 
    Try
        data = serializer.Deserialize(Of Dictionary(Of String, Object))(context("context").ToString)
        searchString = data("Text").ToString()
    Catch ex As Exception
        searchString = ""
    End Try
 
    Dim output As New AutoCompleteBoxData
    If searchString.Length >= MinLength Then
        Dim results As New List(Of AutoCompleteBoxItemData)
        Dim searchOutput As IEnumerable(Of UserInfo) = TestableUserController.Instance.GetUsersAdvancedSearch(PortalSettings.PortalId, UserController.GetCurrentUserInfo.UserID, -1, -1, -1, False, 0, 10, "LastName", True, "DisplayName", searchString).Take(MaxRecords)
 
        Dim curResult As AutoCompleteBoxItemData
 
        For Each curUser In searchOutput
            curResult = New AutoCompleteBoxItemData
            curResult.Text = curUser.DisplayName
            curResult.Value = curUser.UserID
            results.Add(curResult)
        Next
        output.Items = results.ToArray
    End If
    Return output
End Function

But, the autocomplete box doesn't populate or display results. When I look in the code, the UL (racList) doesn't get any items added to it and it never displays.

All of the exact same stuff works in both Chrome and IE. 

Any idea what's happening here? I noticed in the web service demo on your site that the results are in a JSON format...; could that be the problem?

Thanks,

Mike
Mike
Top achievements
Rank 1
 asked on 28 Feb 2013
1 answer
113 views

I have a page with SQL 2012 Report Viewer on it and using my global clientside error handling I get occassionally a popup telling me an error is occuring within the Telerik.Web.UI.WebResource.axd (attached). It is an Object Expected error. I have tried several things to eliminate, but have failed. Below is my html code for the page. I am only including parts of the master page. Note I had to use the UpdatePanel as the report viewer had issues with the Ajax Manager and it doing ajax calls.

Master Page

function Master_GlobalErrorHandler(message, errorURL, lineNumber) {
    var outputMessage = "An error occurred with the following details:\n\nMessage: " + message + "\nURL: " + errorURL + "\nLine Number: " + lineNumber + "\nUser Id: <%=lblLoggedInUser.Text %>\n\n\Please send this information to the help desk and the actions you were doing. Thank you.";
     
    $.ajax({
        type: "POST",
        url: "<%=(OlinCA.SalesCRM.Web.URLUtilities.GetAbsoluteURLBase() + OlinCA.SalesCRM.Web.URLUtilities.GetApplicationPath())%>Services/ErrorSendMail.asmx/SendMail",
        data: "{ 'FromAddress' : 'cawebmaster@olin.com', 'ToEmailAddresses' : ['jd1a@olin.com'] ,'Subject':'Sales CRM Client Side Error <%=System.Configuration.ConfigurationManager.AppSettings["CurrentRegion"].ToUpper() %>','Body':'" + outputMessage + "','ReplyTo':'cawebmaster@olin.com','IsBodyHtml':false}",
        contentType: "application/json; charset=utf-8",
        dataType: "json"}); 
    alert(outputMessage);
}
 
window.onerror = Master_GlobalErrorHandler;
$(document).ready(Master_InitializePage);

<form id="form1" runat="server">
 
<telerik:RadFormDecorator ID="rfdMasterPage" runat="server" RegisterWithScriptManager="true" />
<telerik:RadScriptManager ID="rsmMainScriptManager" runat="server">
    <Scripts>
        <%--Needed for JavaScript IntelliSense in VS2010--%>
        <%--For VS2008 replace RadScriptManager with ScriptManager--%>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="ramMainAjaxManager" runat="server" DefaultLoadingPanelID="ralpMainLoadingPanel" ClientEvents-OnRequestStart="ramMainAjaxManager_OnRequestStart"></telerik:RadAjaxManager>   
<telerik:RadAjaxLoadingPanel ID="ralpMainLoadingPanel" runat="server"></telerik:RadAjaxLoadingPanel>   
<telerik:RadAjaxLoadingPanel ID="ralpMainLoadingPanelDropDown" runat="server" Transparency="0" IsSticky="false" Skin="">
    <asp:Image ID="imgMainLoadingPanelDropDown" runat="server" ImageUrl="~/images/loading3.gif" ImageAlign="Bottom" />
</telerik:RadAjaxLoadingPanel>

Page With Report Viewer

<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/SalesContract.Master" AutoEventWireup="true" CodeBehind="SalesContractReports.aspx.cs" Inherits="OlinCA.SalesCRM.Web.SalesContract.Reports.SalesContractReports" %>
 
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="cMainContent" ContentPlaceHolderID="cphPageContent" runat="server">
 
<table class="TableFullWidth" cellspacing="0" cellpadding="3" >
    <tr>
        <td>
            <asp:Label ID="lblSalesContractReporting_Title" runat="server" Text="Sales Contract Reporting" CssClass="PageTitle" ViewStateMode="Disabled" ></asp:Label>
        </td>
        <td align="right">
            <asp:Label ID="lblSalesContractReporting_ReportListingLabel" runat="server" Text="Choose Report to View:" CssClass="LabelBold"></asp:Label>
            <asp:DropDownList ID="ddlSalesContractReporting_ReportListing" runat="server"
                DataValueField="Name"
                DataTextField="Name"
                OnSelectedIndexChanged="ddlSalesContractReporting_ReportListing_SelectedIndexChanged"
                AutoPostBack="true"
                ViewStateMode="Enabled"
                EnableViewState="true"
                width="200px"></asp:DropDownList>
        </td>
    </tr>
</table>
<table class="TableFullWidth" cellspacing="0" cellpadding="3" >
    <tr>
        <td>
            <asp:UpdatePanel ID="upSalesContractReporting_ReportViewer" runat="server">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddlSalesContractReporting_ReportListing" EventName="SelectedIndexChanged" />
                </Triggers>
                <ContentTemplate>
                <rsweb:ReportViewer ID="rvSalesContractReporting_ReportViewer" runat="server"
                    Font-Names="Verdana"
                    Font-Size="8pt"
                    WaitMessageFont-Names="Verdana"
                    WaitMessageFont-Size="14pt"
                    Width="100%"
                    Height="100%"
                    CssClass="ContentTableBordered">
                 </rsweb:ReportViewer>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
</table>
</asp:Content>


Page With Report Viewer
Pavlina
Telerik team
 answered on 28 Feb 2013
5 answers
120 views
How can i set Scroll bars for Hierarchical grid
Pavlina
Telerik team
 answered on 28 Feb 2013
1 answer
129 views
Does anyone know how to add space between the chart and the datatable?
Kevin
Top achievements
Rank 2
 answered on 28 Feb 2013
1 answer
58 views
Hey All,

Yesterday I came across an issue with Radspell which I hope someone might be able to help me with. I am using the RadSpell but whenever I open and then close the checker multiply time the I get an error about a freed script. I pinpointed the error down to my theme which contains a theme for the Radwindow with ReloadOnShow sent to true, but if I set this to false the error doesn't appear.

Any ideas why this could be happening.

Thanks
Marin Bratanov
Telerik team
 answered on 28 Feb 2013
5 answers
97 views
1. It seems like this control is a much better replacement for the Asp.Net DropDownList than RadComboBox for lightweight use.  I was wondering if there will ever be methods on the items collection like FindByValue and FindByText like the standard asp.net control has?  I can easily find items using Linq on the Items collection, but thought it would be a built-in method.  RadComboBox has these methods, and although RadDropDown is lighter, these seem essential.

2.  Will there every be functionality that provides for auto-width on the drop down?  Since the asp.net listbox does this by default and the RadComboBox has this, it might be a nice addition.

I realize this is supposed to be a very lightweight control, but it seems to me these are pretty basic things...

Thanks,
Chris

 
Christopher Blickley
Top achievements
Rank 2
 answered on 28 Feb 2013
3 answers
183 views
We are using RadDatePicker v2012.3.1016.40 and running into sporadic issues in Internet Explorer 9 where the "SelectedDateChanged" event is not firing properly. So far I am unable to find steps to reliably reproduce the error. After a test launch in IIS Express it usually works fine for me, but sometimes not. Usually the issue seems to resolve itself after some prodding, but I have no idea why or how it suddenly starts to work.

Are there any logs or anything I can provide to help you help me with this problem? This is only happening in IE9, but many of our users are on IE9, so this needs to work. Below is the relevant portion of code to this particular issue.

Thanks,
Matthew

-- Markup --
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="NewTicket.aspx.vb" Inherits="Ticketer.NewTicket" smartNavigation="True"%>
<%@ Register Assembly="Telerik.Web.UI, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=IE9" />
        <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
        <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE" />
        <meta content="JavaScript" name="vs_defaultClientScript" />
        <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
    </head>
    <body style="MARGIN: 5px; BACKGROUND-COLOR: white">
        <form id="Form1" method="post" runat="server">
            <asp:ScriptManager ID="sm" runat="server">
            </asp:ScriptManager>
      <table cellspacing="0" cellpadding="0" border="0" class="paddedControl">
        <tr>
          <td><Telerik:RadDatePicker ID="rdpStartDate" runat="server" DateInput-ReadOnly="True" Width="100" AutoPostBack="true" Calendar-AutoPostBack="True"></Telerik:RadDatePicker></td>
          <td><Telerik:RadDatePicker ID="rdpDueDate" runat="server" DateInput-ReadOnly="True" Width="100" AutoPostBack="true" Calendar-AutoPostBack="True"></Telerik:RadDatePicker></td>
        </tr>
      </table>
        </form>
    </body>
</html>

-- Codebehind --
Partial Class NewTicket
    Inherits System.Web.UI.Page
 
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If Not Page.IsPostBack Then
            rdpStartDate.SelectedDate = Today
        End If
        If Me.rdpStartDate.SelectedDate.HasValue AndAlso Me.rdpDueDate.SelectedDate.HasValue Then
            Me.cmdMakeTicket.Visible = True
        Else
            Me.cmdMakeTicket.Visible = False
        End If
    End Sub
 
    Private Sub rdpStartDate_SelectedDateChanged(sender As Object, e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs) Handles rdpStartDate.SelectedDateChanged, rdpDueDate.SelectedDateChanged
        If Me.rdpStartDate.SelectedDate.HasValue AndAlso Me.rdpDueDate.SelectedDate.HasValue Then
            Me.cmdMakeTicket.Visible = True
        Else
            Me.cmdMakeTicket.Visible = False
        End If
    End Sub
End Class
Vasil
Telerik team
 answered on 28 Feb 2013
1 answer
56 views
Good afternoon,

In several places in our custom SharePoint site we are using AutoCompleteBox in SharePoint modal forms. I'm encountering an issue where the Z-Index of the dropdown will NOT go over the SharePoint 2010 Modal form. I've gone ahead and set the Z-Index higher than the modal form (which is set at 1506) and still the dropdown gets cut off. See image attached. Any resolutions?

Plamen
Telerik team
 answered on 28 Feb 2013
1 answer
129 views
When an iFrame is used to load RadWindow content, the status bar shows a loading indicator until the content is displayed. Is there any way to manually show this GIF in the for custom operations... like an AJAX transaction? There are times I auto-load data at intervals and don't want to lock down the entire RadWindow, but I do want a nice common place to show some operation is going on (and the status bar seems like a great place to do this). Any help would be appreciated.
Marin Bratanov
Telerik team
 answered on 28 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?