Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
167 views

I have a column chart that I am using to display percentage values.  There is some JS used to colour columns depending on their %, normally I have 70 or lower red, 70-90 amber and above 90 as green.  On occasion I want to drop the green tolerance down to 80.  I can do all this fine.  

What I need to do is display some form of indication for each column. I was thinking that perhaps I could display 3 plotbands behind each column as an indication of where the various tolerances are.  

Would this be possible?

Failing that is there a way to do custom drawing on the canvas behind the columns?

Regards

 Jon

Jon
Top achievements
Rank 1
 answered on 27 Apr 2015
4 answers
574 views
I am considering using the RadEditor for making HTML email templates.

Is RadEditor HTML output rendered well by email clients?

It is known that email clients don't behave as browsers do, so the same output may be rendered well in a browser and be distorted in an email client.
Ianko
Telerik team
 answered on 27 Apr 2015
3 answers
94 views

I have a Treeview with Checkboxes enabled, here is aspx-Code:

<telerik:RadTreeView ID="trVars" runat="server" CheckBoxes="True" OnClientNodeChecked="onNodeChecked" OnNodeDataBound="trVars_NodeDataBound" OnNodeClick="trVars_NodeClick" />

Nodes are addes in server-side Code behind:

trVars.DataFieldID = "ID";
trVars.DataFieldParentID = "ParentID";
trVars.DataTextField = "varLabel";
trVars.DataValueField = "varName";
trVars.DataSource = tbl;
trVars.DataBind();

 For my application I need full compliance with the WCAG 2.0 AA standard. But the check did not pass because the checkboxes in the nodes need a label associated (Error Message in AC Checker: input element, type of "checkbox", has no text in label ...).

Please help!

Ivan Zhekov
Telerik team
 answered on 27 Apr 2015
1 answer
150 views

Hello

I need to set a custom RadnumericTextBox attribute from clientside.

I read the Attribute (upon blur) using:
sender._textBoxElement.getAttribute("def")

but
sender._textBoxElement.setAttribute("def","1000") , is not working.

Clues anyone?

 

Regards

 Mark





Mark
Top achievements
Rank 1
 answered on 26 Apr 2015
3 answers
182 views
Hello,
Is there a way to implement an "always visible" control with the Telerik ASP.NET AJAX tools?

I'm thinking of something like the following control in the MS ACT:
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/AlwaysVisibleControl/AlwaysVisibleControl.aspx

I'd like to have a persistent pannel on the top right of a page with scrollbars.

Thanks.
Tanuj
Top achievements
Rank 1
 answered on 25 Apr 2015
2 answers
87 views

Hi,

  AS you can see in the attached screenshot, my x-axis does not start at zero. the Jan 28 starts after a little gap after 0. Can you please let me know how I can make the x-axis also start the same position (0) as the y-axis?

 

Thanks,

Sandeep

Sandeep
Top achievements
Rank 1
 answered on 24 Apr 2015
10 answers
1.8K+ views

Hello everyone:

I have been goin crazy over the last 3hrs trying to resolve this problem, can someone please help me....i keep getting this error: "Procedure or function spUpdatePerm has too many arguments specified"

I haved searched all the forums and support, i also tried everything i can but still get the same error.

Here is the aspx code:

<

telerik:RadGrid ID="gridPerms" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="dsPerms" GridLines="None" ShowGroupPanel="True" Skin="Office2007" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" ShowStatusBar="true">

 <AlternatingItemStyle BackColor="#E6E6E6" Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
Wrap="True" />

 <PagerStyle Mode="NextPrevAndNumeric" />

<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" DataKeyNames="PermissionID" DataSourceID="dsPerms">

<RowIndicatorColumn>
    
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<
ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

<
Columns> 
    
<telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
    <telerik:GridBoundColumn DataField="PermissionID" DataType="System.Int16" HeaderText="Permission ID" ReadOnly="True" SortExpression="PermissionID" UniqueName="PermissionID">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="PermissionName" HeaderText="Permission Name" SortExpression="PermissionName" UniqueName="PermissionName" DataType="System.String">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="PermissionLevel" DataType="System.Int16" HeaderText="Permission Level" SortExpression="PermissionLevel" UniqueName="PermissionLevel">
    </telerik:GridBoundColumn>
</Columns>

<EditFormSettings>
    
<EditColumn UniqueName="EditCommandColumn"></EditColumn>
</EditFormSettings>

</MasterTableView>

<ClientSettings AllowDragToGroup="True"></ClientSettings>
<FilterMenu EnableTheming="True" Skin="Office2007">
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>

</telerik:RadGrid>

 <asp:SqlDataSource ID="dsPerms" runat="server" ConnectionString="<%$ ConnectionStrings:VentrolSecurityConnectionString %>" InsertCommand="spCreatePerm" InsertCommandType="StoredProcedure" SelectCommand="spGetPerms" SelectCommandType="StoredProcedure"     
UpdateCommand
="spUpdatePerm" UpdateCommandType="StoredProcedure">
<UpdateParameters>
    <asp:Parameter Direction="Input" Name="argPermissionID" Type="Int16" />
    <asp:Parameter Direction="Input" Name="argPermissionLevel" Type="Int16" />
    <asp:Parameter Direction="Input" Name="argPermissionName" Type="String" ConvertEmptyStringToNull="true" />
</UpdateParameters>
<InsertParameters>
    <asp:Parameter Direction="Input" Name="argPermissionLevel" Type="Int16" />
    <asp:Parameter Direction="Input" Name="argPermissionName" Type="String" ConvertEmptyStringToNull="true" />
</InsertParameters>
</asp:SqlDataSource>


Here is the stored procedure to insert:


ALTER
PROCEDURE [dbo].[spCreatePerm]
-- Add the parameters for the stored procedure here
@argPermissionLevel int,
@argPermissionName nvarchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
INSERT tbl_secure_Permission(PermissionLevel,PermissionName)
VALUES(@argPermissionLevel,@argPermissionName)
END

Here is the stored procedure to update:

ALTER
PROCEDURE [dbo].[spUpdatePerm]
-- Add the parameters for the stored procedure here
@argPermissionID int,
@argPermissionLevel int,
@argPermissionName nvarchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
UPDATE tbl_secure_Permission
SET PermissionLevel = @argPermissionLevel,
        
PermissionName = @argPermissionName
WHERE PermissionID = @argPermissionID
END

Please if anyone can help, much appreciation.

Thanks in advance.... 

Amparo
Top achievements
Rank 1
 answered on 24 Apr 2015
3 answers
200 views
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikWebFormsTestBed._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2015.1.225.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
         <h2>Page methods</h2>
        <telerik:RadSearchBox ID="RadSearchBox2" runat="server"
                              EmptyMessage="Search Products" Width="300">
            <WebServiceSettings Path="default" Method="GetResults"/>
        </telerik:RadSearchBox>
        <p>
            <asp:Label runat="server" ID="Label1" />
        </p>
    </telerik:RadAjaxPanel>
</asp:Content>

 

and

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Script.Services;
using System.Web.Services;
using System.Web.UI;
using Telerik.Web.UI;
 
namespace TelerikWebFormsTestBed
{
    public partial class _Default : Page
    {
        private static readonly List<String> MyData = new List<string> {"a", "b", "c"};
 
        protected void Page_Load(object sender, EventArgs e)
        {
        }
 
        protected void RadSearchBox2_Search(object sender, SearchBoxEventArgs e)
        {
            Label1.Text = "Text: " + e.Text;
        }
 
        [WebMethod]
        public static SearchBoxData GetResults(SearchBoxContext context)
        {
            var results = MyData.Where(x => x.StartsWith(context.Text));
            var sbids = new List<SearchBoxItemData>();
            foreach (var result in results)
            {
                var itemData = new SearchBoxItemData();
                itemData.Text = itemData.Value = result;
                sbids.Add(itemData);
            }
            var sbd = new SearchBoxData {Items = sbids.ToArray()};
            return sbd;
        }
    }
}

 GetResults is never invoked. The Page_Load is every time I type something, but not the actual method... 

 

 

Merritt
Top achievements
Rank 1
 answered on 24 Apr 2015
0 answers
341 views

I have a ragrid in a aspx page , from this grid by clicking on a row I open a radtooltipmanager that contains a usercontrol . On opening this user control I want to Maintain Scrollbar panel Position.
I tried to folow this exemples :

http://www.codeproject.com/Tips/595712/Call-JavaScript-in-an-ASP-NET-User-Control

https://basgun.wordpress.com/2008/06/09/maintain-scroll-position-updatepanel-postback/

 http://www.aspsnippets.com/Articles/Find-and-access-control-inside-UserControl-ASCX-from-Parent-Page-ASPX-using-JavaScript-in-ASPNet.aspx

But the problem is that the  panel.scrollHeight return 0, I attached ths screenshot for page and this a part of my code :

<body>
    <form id="form1" runat="server">
        <uc1:Name runat="server" ID="ucConusltationLieesCtl" />
        <asp:ScriptManager runat="server" ID="ScriptManager1">
              </asp:ScriptManager>
          <script type="text/javascript">
              Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(ToCallOnBeginRequest);
              function ToCallOnEndRequest(sender, args) {
                  var panel = document.getElementById('<%=ucConusltationLieesCtl.FindControl("Consul_Panel2").ClientID %>');

                  if (panel) {
                    panel.scrollTop = panel.scrollHeight;
                 }
                 document.documentElement.scrollTop = yPos;

              }
              function ToCallOnBeginRequest(sender, args) {
                   yPos = document.documentElement.scrollTop;
               }
               Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ToCallOnEndRequest);
          </script>

 

Thanks

Patrick
Top achievements
Rank 1
 asked on 24 Apr 2015
1 answer
45 views

Hi,

I have an application that uses RadGrid from the 2013-Q2 build.

I understand that I probably have no support for this anymore, but anyway it appears to be broken in anything other than Internet Explorer.

Specifically, one of the (many) problems is that it throws a JavaScript error of "d.onclick is null" if you are not using IE (e.g. when clicking a client-side delete button).

I know that the library should be updated but the testing overhead is too much for me right now.  Can anyone help with a quick (elegant) fix?

 

          <telerik:GridButtonColumn UniqueName="DeleteColumn" CommandName="Delete" ConfirmTitle="Delete confirmation" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this record?" ButtonType="LinkButton" Text="<img src='images/delete.gif' alt='Delete record' />">
            <HeaderStyle Width="60px" />
            <ItemStyle HorizontalAlign="Center" />
          </telerik:GridButtonColumn>

Adam
Top achievements
Rank 1
 answered on 24 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?