Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
101 views
Hi,

In the attached screen shot, I have some, but not all of the gridlines turned off. What I want is an ultra-clean presentation with no background grid at all and no x or y axis labels. Here is what I am doing right now but it results in the chart shown in the screen shot. Any help greatly appreciated.

Dim rc As New RadChart

rc.AutoLayout = True

rc.AutoTextWrap = True

rc.ChartTitle.Visible = False

rc.Legend.Visible = False

rc.PlotArea.XAxis.Appearance.LabelAppearance.Visible = False

rc.PlotArea.YAxis.Appearance.LabelAppearance.Visible = False

rc.PlotArea.XAxis.Appearance.MajorGridLines.Visible = False

rc.PlotArea.YAxis.Appearance.MajorGridLines.Visible = False

rc.PlotArea.XAxis.Appearance.MinorGridLines.Visible = False

rc.PlotArea.XAxis.Appearance.MinorGridLines.Visible = False

rc.PlotArea.YAxis.Appearance.LabelAppearance.Visible = False

rc.PlotArea.XAxis.Appearance.LabelAppearance.Visible = False

            rc.PlotArea.XAxis.Appearance.MajorTick.Visible = False

            rc.PlotArea.XAxis.Appearance.MinorTick.Visible = False

            rc.PlotArea.YAxis.Appearance.MajorTick.Visible = False

            rc.PlotArea.YAxis.Appearance.MinorTick.Visible = False

Rosko
Telerik team
 answered on 17 Jun 2013
7 answers
217 views
Hi..
I added the following to my master page  (same code from your samples). But it doesn't work.. the screen flashes and but doesn't change. I have a ref to Telerik.Web.Ui.Skins... what am i doing wrong or missing?   thx again!!


                <div class="skin-chooser">
                    <label for="ctl00_SkinChooser_Input" class="skinLabel">Skin:</label>
                    
                     <telerik:RadSkinManager runat="server" ID="RadSkinManager1" Skin="Sunset" ShowChooser="true"
                        PersistenceKey="Skin" PersistenceMode="Session" OnPreRender="RadSkinManager1_PreRender"/>
                                 
                </div>


and

   protected void RadSkinManager1_PreRender(object sender, EventArgs e)
        {
            RadComboBox skinChooser = RadSkinManager1.FindControl("SkinChooser") as RadComboBox;
            foreach (RadComboBoxItem item in skinChooser.Items)
            {
                if (item.Text == "Silk" || item.Text == "Glow" || item.Text == "BlackMetroTouch" || item.Text == "MetroTouch")
                {
                    item.Visible = false;
                }
            }
        }





David
Top achievements
Rank 1
 answered on 17 Jun 2013
1 answer
98 views
Is there any method, straightforward or otherwise, for inserting blank space in a grid/pivotgrid? The catch is that I don't want it to be blank cells. It's along the lines of, here's a table, every 10 lines we want a blank row (or space) for readability that has no effect on the data itself. Is there anyway to do that without inserting blank cells?

I'm erring on the side of their isn't. Blank cells will throw issues with some of myuses of the grid. 
Angel Petrov
Telerik team
 answered on 17 Jun 2013
1 answer
78 views
We would like to purchase the total toolkit for Asp.Net Ajax. What is the total process starting from purchase to receiving of the toolkit
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Jun 2013
1 answer
87 views
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/rendermode/defaultcs.aspx

In chrome when I toggle to lightweight and click "next month" it's like a 3-4 second wait between click and nav

Just me?
Milena
Telerik team
 answered on 17 Jun 2013
1 answer
198 views
Hello

We seem to have a weird problem:
We have a grid with GridBoundColumns for all data except for columns with date, for which we use GridDateTimeColumn. Because we need to show full date and time in fields but only filter on date part, we set the property EnableTimeIndependentFiltering="true". After that the grid filters (filter below headers) worked fine but when using the filter from the HeaderContextMenu (on any field) we got browser debugger with exception "Object not set to a reference of an object". If EnableTimeIndependentFiltering="false" the filters work without exceptions being thrown, but in that case we have the problem with date filtering with "EqualTo" returning no results.

We tried to debug the problem, but in code-behind we got to ItemCommand event method, but right after that got the error before getting to OnNeedDataSource.

Is this a bug or are we missing something?

Thank you for your answers in advance
Angel Petrov
Telerik team
 answered on 17 Jun 2013
3 answers
150 views
hi 
the plus/minus icons looks cuted in RTL mode, 
on all skins .

the file attached  is from http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/righttoleft/defaultcs.aspx


Kate
Telerik team
 answered on 17 Jun 2013
2 answers
145 views
Is there a way to select and display already selected tokens for the AutoCompleteBox? I can't see anything in the documentation or demos about this.

I want to show existing selections, while still allowing the user to add to or remove their selections.

Thanks
Mathew
Top achievements
Rank 1
 answered on 17 Jun 2013
1 answer
104 views
Hi,
I have a page that uses a MasterPage.
The MasterPage has a RadWindow with a ContentTemplate. And in the ContentTemplate I have a RadGrid with filter ability.
When I enter a value in filter text box, the Radwindow shutdowns automatically.
How can I handle this problem?
Shinu
Top achievements
Rank 2
 answered on 17 Jun 2013
1 answer
192 views
Hi,

I had two user-controls on asp.net webpage. One had a dropdown selection listbox to select a value and other had a RadGridView to display the columns, I want to show / hide columns of RadGridView on drop-down selection. But I am unable to do not. Kindly help me on it. Below i am adding the code-snippet.


Default.aspx
------------------
<%@ Page Title="Home Page" Language="C#" MasterPageFile="" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%--<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>--%>
<%@ Register Src="~/Selection.ascx" TagName="Selection" TagPrefix="uc2" %>
<%@ Register Src="~/Display.ascx" TagName="Display" TagPrefix="uc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc2:Selection ID="ucSelection" runat="server" />
    </div>
    <div>
        <uc1:Display ID="ucDisplay" runat="Server" />
    </div>
    </form>
</body>
</html>



Default.aspc.cs
--------------------
<%@ Page Title="Home Page" Language="C#" MasterPageFile="" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%--<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>--%>
<%@ Register Src="~/Selection.ascx" TagName="Selection" TagPrefix="uc2" %>
<%@ Register Src="~/Display.ascx" TagName="Display" TagPrefix="uc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc2:Selection ID="ucSelection" runat="server" />
    </div>
    <div>
        <uc1:Display ID="ucDisplay" runat="Server" />
    </div>
    </form>
</body>
</html>

Selection.ascx
----------------------
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Selection.ascx.cs" Inherits="WebApplication1.Selection" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" RenderMode="Inline">
    <ContentTemplate>
            <table border="0" cellpadding="5" cellspacing="0">
                <tr class="valigntop">
                <td>
                        Payment Type :
                        
                    </td>
                    <td>
                        <asp:DropDownList ID="cmbPaymentType" runat="server" OnSelectedIndexChanged="cmbPaymentType_SelectedIndexChanged"
                            AutoPostBack="true">
                            <asp:ListItem Text="11"></asp:ListItem>
                            <asp:ListItem Text="AA"></asp:ListItem>
                            <asp:ListItem Text="BB"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
    </ContentTemplate>
</asp:UpdatePanel>

Selection.ascx.cs
---------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class Selection : System.Web.UI.UserControl
    {
        int i = 0;
        public event EventHandler PaymentTypeChange;

        public string PaymentType
        {
            get
            {
                return cmbPaymentType.SelectedItem.Text;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

      

        protected void cmbPaymentType_SelectedIndexChanged(object sender, EventArgs e)
        {
                PaymentTypeChange(this, e);
        }
    }
}

Display.ascx
-------------------
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Display.ascx.cs" Inherits="WebApplication1.Display" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="always" RenderMode="Inline">
    <ContentTemplate>
    <asp:Label ID="lblTest1" Text="Test" runat="server" Visible="false"></asp:Label>
    <telerik:RadGrid ID="rgTest" runat="server" GridLines="None" AutoGenerateColumns="False"
           EnableEmbeddedSkins="false" >
        <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" TableLayout="Fixed">
            <Columns>
               <telerik:GridTemplateColumn DataField="ID" UniqueName="TestID" Visible="False">
                   <ItemTemplate>
                        <asp:Label ID="DisplayId" runat="server" Text="Id"></asp:Label>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="Name" UniqueName="TestName" Visible="False">
                   <ItemTemplate>
                        <asp:Label ID="DisplayName" runat="server" Text="Name"></asp:Label>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
            </Columns>    
        </MasterTableView>
    </telerik:RadGrid>
    </ContentTemplate>
</asp:UpdatePan

Display.ascx.cs
--------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using Telerik.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class Display : System.Web.UI.UserControl
    {
                
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void SetVisiblity(bool enableVisiblity)
        {
            if (enableVisiblity == true)
            {
                foreach(GridColumn gd in rgTest.Columns)
                {
                    gd.Visible = true;
                }
                lblTest1.Visible = true;
            }
            else
            {
                foreach (GridColumn gd in rgTest.Columns)
                {
                    gd.Visible = false;
                }
                lblTest1.Visible = false;
            }
        }
    }
}
Angel Petrov
Telerik team
 answered on 17 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?