Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
188 views
Hi everyone,
I have a problem with formatting negative values. 
    I have number :   1234567,892 and I need format it:   12,334,567.892  
    I have number : - 1234567,892 and I need format it: - 12,334,567.892 
But my result when I use DataFormatString "###,###,###.###":
     1234567,892    => 12,334,567.892  : Correct
   - 123,892            => - ,123,892            : Not correct   (I need -123,892)
     123,892            =>    ,123,892            : Not correct   (I need  123,892)
Have you any ideas ?
Thanks you very much !

P/s: My code
 <telerik:RadHtmlChart runat="server" ID="rcProfile" Height="380px" PlotArea-Appearance-Visible="false">                                                
                                                <PlotArea>
                                                    <Appearance>
                                                        <FillStyle BackgroundColor="White" />                                                        
                                                    </Appearance>
                                                    <Series>
                                                        <telerik:ColumnSeries DataFieldY="VAL_P" Name="Công suất" Stacked="false" ColorField="Blue"
                                                            Spacing="0" Gap="0">
                                                            <Appearance>
                                                                <FillStyle BackgroundColor="#F0AD4E" />                                                                
                                                            </Appearance>
                                                            <LabelsAppearance Visible="false">
                                                                <TextStyle Color="Red" />
                                                            </LabelsAppearance>
                                                            <LabelsAppearance DataFormatString="###,###,###,###.###"></LabelsAppearance>
                                                            <TooltipsAppearance BackgroundColor="White" DataFormatString="###,###,###,###.###" />
                                                        </telerik:ColumnSeries>
                                                    </Series>
                                                    <XAxis DataLabelsField="GIO_HTHI" >
                                                        <MajorGridLines Visible="false" Color="Blue" />
                                                        <MinorGridLines Visible="false" Color="Blue" />
                                                        <LabelsAppearance RotationAngle="75">
                                                        </LabelsAppearance>
                                                        <TitleAppearance Text="Thời gian">
                                                            <TextStyle FontFamily="Time new roman"  />
                                                        </TitleAppearance>
                                                    </XAxis>
                                                    <YAxis>
                                                        <MinorGridLines Visible="false" />
                                                        <MajorGridLines Color="WhiteSmoke" />
                                                        <TitleAppearance Text="kWh">
                                                            <TextStyle FontFamily="Time new roman" />
                                                        </TitleAppearance>
                                                    </YAxis>
                                                </PlotArea>
                                                <Legend>
                                                    <Appearance Visible="false">
                                                    </Appearance>
                                                </Legend>
                                                <ChartTitle Text="BIỂU ĐỒ PHỤ TẢI">
                                                    <Appearance>
                                                        <TextStyle Bold="true" FontFamily="Time new roman" Color="Blue" />
                                                    </Appearance>
                                                </ChartTitle>
                                            </telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 06 Oct 2014
1 answer
106 views
Hi,

I am working on telerik rad grid and relatively new using it in asp.net platform.

I have a command button called 'delete' in my grid, which allows users to delete rows from the grid which internally sets a flag indicating that those rows are the deleted ones.

There is a checkbox outside the grid which allows the users to include both deleted and active rows. So when the check box is clicked, I want the "delete" command column to display as "undelete" for the deleted rows and "delete" for the active rows.

Clicking on "undelete" will set the flag as active in the database and the command text should change back to "delete".

How can I achieve this?

Appreciate your replies.
Thanks
Amy
Radoslav
Telerik team
 answered on 06 Oct 2014
3 answers
209 views
I'm new to the radchart databinding process and after spending an excessive amount of time trying to figure out why I'm not showing any return when I bind to the database I thought I'd ask the sea of experts. I'm sure this has been discussed but when I searched on databinding I only got three posts so please excuse if I am repeating something previously shown.

Attached is a screen shot of what I see currently. The XAxis labels (2008 2009 2010...) are pulled from the database and are displaying as I expected. What isn't showing are the values reflected in the rest of the table. This is pretty straightforward and I'm positive it is something exceptionally simple I'm overlooking but can anyone shed some light on what that might be? I've gotten lost in the mixed examples that came with this add-on so I'm not sure where I'm crossing signals.

Below is the code for my chart.aspx page and it's code behind. The binding taking place in the code behind file is simply binding to a data object that I've created but isn't really relevant to this issue since all it does is open,get, close the database.

Thanks in advance.

Tony


Chart.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chart.aspx.cs" Inherits="myworkcalpassplus.chart" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true"  Visible="false"/>
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />

     <div style="width: 800px; height: 500px;">
          <telerik:RadHtmlChart runat="server" Width="800px" Height="500px" ID="RadHtmlChart1" >
               <PlotArea>
                    
                         <YAxis MaxValue="100" MinValue="0" Step="10" >
                              <TitleAppearance Text="Units"></TitleAppearance>
                         </YAxis>
                         <XAxis DataLabelsField="AcademicYear"></XAxis>
                         <Series>
                              <telerik:ColumnSeries Name="Average" DataFieldY="Average" >
                                   <TooltipsAppearance Color="White" BackgroundColor="Orange" DataFormatString="P"/>
                                  
                              </telerik:ColumnSeries>
                              <telerik:ColumnSeries Name="Top 10 Region" DataFieldY="Top10Region">
                                   <TooltipsAppearance Color="White" BackgroundColor="Orange" DataFormatString="P"/>
                              </telerik:ColumnSeries>
                              <telerik:ColumnSeries Name="Statewide" DataFieldY="Statewide">
                                   <TooltipsAppearance Color="White" BackgroundColor="Orange" DataFormatString="P"/>
                              </telerik:ColumnSeries>
                         </Series>
               </PlotArea>
               <Legend>
                    <Appearance Visible="false">
                    </Appearance>
               </Legend>
               <ChartTitle Text="STEM Dashboard">
               </ChartTitle>
          </telerik:RadHtmlChart>
     </div>
    </form>
</body>
</html>


Codebehind: 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;

namespace myworkcalpassplus
{
    public partial class chart : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Data chartData = new Data();
                RadHtmlChart1.DataSource = chartData.GetChartData();
                RadHtmlChart1.DataBind();
            }
        }
    }
}


Mind you I was following along with several examples and that's what I ended up with expecting just to see a simple chart display.

Thanks again!










Danail Vasilev
Telerik team
 answered on 06 Oct 2014
3 answers
188 views
Hello,

I need an argent help with the following requirement:

on each Treeview node click I need to load Grid
with different columns, headers and data .



I create a grid on Click event of the TreeView,
but the generated Grid disappears on PostBack 

 

protected void CreateGrid()

        {

           
RadGrid DataGrid = new RadGrid();

           
DataGrid.ID = "DataGrid";           

           
DataGrid.ViewStateMode = System.Web.UI.ViewStateMode.Enabled;

           
DataGrid.enablea

            DataGrid.AutoGenerateColumns
= true;

           
DataGrid.MasterTableView.AutoGenerateColumns = false;

           
DataGrid.MasterTableView.ShowHeadersWhenNoRecords = true;



           
GetGridHeader(table_name, DataGrid);

           
DataGrid.DataSource = GetData(table_name);

           
DataGrid.DataBind();

           
PlaceHolder1.Controls.Add(DataGrid);



}


Please advise what is the best way to do it, and
what is the problem with my approach.

Thank you,
Vadim


















































Viktor Tachev
Telerik team
 answered on 06 Oct 2014
2 answers
199 views
Hello everyone!

I has a problem with input data for radtextbox - What happens when i input text as "</script>" on radtextbox?
Current i have a error when input data as "</script>". Control Telerik default encode for tags html as: <br/>, <html>, <h1>....???

Please help me explain when input a data not validate as "</script>".

Thanks a lot for all help!


chammua
Top achievements
Rank 1
 answered on 06 Oct 2014
6 answers
251 views
When i use a RadNumericTextBox inside an InsertItemTemplate of a TreeListTemplateColumn the spin buttons are not rendered completely, just a half of the buttons. Moreover, the width of the textbox is adjusted to 100% independently of the width i specify.


Sonia
Top achievements
Rank 1
 answered on 06 Oct 2014
1 answer
228 views
Has anyone figured out a way to change the orientation of a rad tabstrip from vertical to horizontal from javascript?  I'm trying to change the orientation if the width of the window is less than 800px and would like for it to be responsive to the size of the window changing.
Magdalena
Telerik team
 answered on 06 Oct 2014
1 answer
285 views
Hi ,

Q1. Is it possible to change the arrow images of RadlistBox buttons(please find enclosed snapshot)?

Q2. In IE 10, arrow images are not visible for RadListBox buttons, and its an intermediate issue. Please suggest ?

Thanks
P
Magdalena
Telerik team
 answered on 06 Oct 2014
1 answer
66 views
Hey there
i have the same problem width a radgrid table.

http://www.telerik.com/forums/rating-values-are-changed-after-postback-in-radgrid#6cgoTX65P0Czh2A0lY6QBw


Look at this 4 Year old problem ... i have the same.

Thanks Noel

http://www.telerik.com/clientsfiles/8f5363ec-c6ef-44e4-b634-3ebda76f23b4_after.png?sfvrsn=0
http://www.telerik.com/clientsfiles/1fec41ea-4d8e-4438-90d8-ad537a9c29c5_culture.png?sfvrsn=0
http://www.telerik.com/clientsfiles/bf741171-148b-4a30-956f-ba352b27d592_before.png?sfvrsn=0
Kostadin
Telerik team
 answered on 06 Oct 2014
1 answer
120 views
Hi,

I've got something like this:

var myControl = $find('ctl00_PageContent_RadComboBox2');
var comboBoxItems = myControl.get_checkedItems();
alert(comboBoxItems);


and when I select 3 items, I recieve: [Object object], [Object object], [Object object].

How can I extract Text or Value of these items?

For example Text1, Text2, Text3.

Regards
Dimitar Terziev
Telerik team
 answered on 06 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?