Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views

How do I include the header Tile Group ?
I use the version Q12015

 

 WebForms ASP.NET C#

Marin Bratanov
Telerik team
 answered on 27 Apr 2015
1 answer
74 views

This is purely curiosity.  I'm trying to overhaul a piece of legacy code and one of my objectives is to add a RadMenu to the form.

This particular screen has a single table <TD> that contains several RadComboBoxes in addition to the new RadMenu.  (I know.  Bad idea.  I'm working on it.)

What strikes me is curious is that the layout has a RadComboBox first and then the RadMenu in that order.  However when the screen renders the display is RadMenu first and then that first RadComboBox.

Is this a quirk of RadMenus or is it just the result of bad layout design?

Magdalena
Telerik team
 answered on 27 Apr 2015
5 answers
181 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
639 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
105 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
165 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
214 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
98 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.9K+ 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
213 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?