Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
257 views
In our RadHtmlChart BarSeries we are providing custom series labels as you can see highlighted in green in the attached picture.

We are doing this by simply setting the series LabelAppearance DataField property to a different database field which has the series data formatted the way we want to display it:
 
<Series>        
    <telerik:BarSeries Name="CategoryText"  DataFieldY="SeriesValue" >
        <LabelsAppearance Visible="true" DataField="SeriesValueFormatted"  />                            
    </telerik:BarSeries>
</Series>

Basically the SeriesValueFormatted field is taking numbers in the thousands, dividing them by 1000, and showing a "K" on the end.  Numbers in the millions are divided by a million and displayed with an "M" on the end, and so on. (See green highlighted values on the attached picture).

We need to do the same thing for the y-axis labels (See the yellow highlighted area on the attached picture).  In this example, our y-axis labels would be "0.00M", "4.00M", "8.00M", "12.00M", and "16.00M".  

 I do not see a DataField property in the y-axis LablesAppearance tag (as exists in the BarSeries) nor do I see a way of providing a custom template OR a way to call a method as the y-axis is being built/bound.

How can we go about doing this? 

Courtney

p.s.  I THINKsomeone was trying to ask the same question 2 years ago:
YAxis DataLabelsField?
But it seems there was no resolution at the time but the support rep did same this would be added in the future.  2 years later is this now possible?



















Danail Vasilev
Telerik team
 answered on 18 Jun 2014
1 answer
219 views
Hi,

I have a RadButton in the master page of my web application and I want to access it directly from JavaScript inside one of the content pages.

I tried with $('#<%=Master.FindControl("RadButton1").ClientID %>') as well as $find('<%=Master.FindControl("RadButton1").ClientID %>'); but both returned an error where as the first statement works well for asp.net controls.

Thanks,
Vishnu.
Danail Vasilev
Telerik team
 answered on 18 Jun 2014
2 answers
84 views
Yesterday I update my telerik controls to Telerik_UI_for_ASP.NET_AJAX_2014_1_403_Dev, I wonder all of the radtabstrip have a layout issue
I can generate this issue in the below demo

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/functionality/server-templates/defaultcs.aspx

In the attach screen note how the tab width change after we change the selected tab if we change the tab align to left this issue will not happened
ADAWi
Top achievements
Rank 1
 answered on 18 Jun 2014
6 answers
190 views

I would like to display real-time message from database on top of main page in my project so that I can view it anytime when I navigate other webpages. I manage to bind the updated message in dataset but the RadTicker is missing from the page. Below is the workaround that I have done in my project.

 

Currently, I'm using RadAjaxTimer to trigger RadTicker to update the message when there is any new message added into database. I created these 2 controls and script manager in ascx page as global user controls in my project. Then, I'll call these reference controls in a RadAjaxPanel on the main page and bind the updated message in RadTicker on ascx page Page_Load event and RadAjaxTimer_Tick event. I only see AjaxLoadingPanel displays during data binding and the RadTicker is missing from the main page after it is done. What happens to the RadTicker? Does it cause by System.Threading.Thread.Sleep(5000) that I configured in RadAjaxTimer_Tick event? Is it used to control the AjaxLoadingPanel display time?

 

 

Below is the ascx page that I created in my project.

 

<%

@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>

 

<%

@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>

 

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="Ticker.ascx.cs" Inherits="ACE.ACETM.GlobalWebUI.Ticker" %>

 

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

 

 

Namespace="System.Web.UI" TagPrefix="asp" %>

 

 

 

 

<

 

div style="COLOR: crimson; BACKGROUND-COLOR: black">

 

 

    <asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

    </asp:ScriptManager>    

 

 

    <telerik:RadTicker id="RadTicker1" runat="server" AutoStart="true" loop="true" AutoAdvance="true" AutoPostBack="true">

 

 

    </telerik:RadTicker>

 

 

 

    <radA:RadAjaxTimer ID="RadAjaxTimer1" runat="server" Interval="10000" OnTick="RadAjaxTimer1_Tick" />

 

</

 

div>

 

public

 

partial class Ticker : System.Web.UI.UserControl

 

 

 

 

{

 

    public MessageCenterDS msgCenterDS;

 

 

    protected void Page_Load(object sender, EventArgs e)

 

    {

 

        if (!IsPostBack)

 

        {

 

            MessageCenterBR BF = new MessageCenterBR();

 

            msgCenterDS = BF.GetTestMessages(

"ABC");

 

            RadTicker1.DataSource = msgCenterDS.MC_MESSAGES;

            RadTicker1.DataTextField =

"MC_MESSAGE";

 

            RadTicker1.DataBind();

        }
    }

 

    protected void RadAjaxTimer1_Tick(object sender, Telerik.WebControls.TickEventArgs e)

 

    {

        System.Threading.

Thread.Sleep(5000);

 

 

        MessageCenterBR BF = new MessageCenterBR();

 

        msgCenterDS = BF.GetTestMessages(

"ABC");

 

        RadTicker1.DataSource = msgCenterDS.MC_MESSAGES;

        RadTicker1.DataTextField =

"MC_MESSAGE";

 

        RadTicker1.DataBind();

    }

}

 

Below is the main page that I created in my project.

 

 

 

 

<%

@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>

 

<%

@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>

 

<%

@ Register TagPrefix="uc2" TagName="Ticker" Src="~/common/usercontrols/Ticker.ascx" %>

 

 

 

<

 

table border="0" cellpadding="0" cellspacing="0" width="100%" style="height:100%" class="tblBackground">

 

    <

 

tr>

 

 

        <td colspan="3" align="center"> 

 

 

            <div>

 

 

                <radA:RadAjaxPanel ID="RadAjaxPanel1" Visible="true" runat="server" LoadingPanelID="AjaxLoadingPanel1" EnableAJAX="true">

 

 

                        <uc2:Ticker id="Ticker1" runat="server" OnLoad="Timer1_Load" />
                 </radA:RadAjaxPanel>
                 <
radA:AjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Height="75px" Width="75px">

 

 

                     <img alt="loading..." src="RadControls/AjaxTimer/Skins/Default/loading.gif" />

 

 

 

                 </radA:AjaxLoadingPanel>

 

 

             </div>
        
</td>
    
</tr>

 

 

</

 

table>

 

protected

 

void Timer1_Load(object sender, EventArgs e)

 

{

}

Please advice if I have done anything wrong in the coding. I need a solution urgently. I appreciate if you may provide a sample project for me. Thank you.

Regards,
Emily.

Slav
Telerik team
 answered on 18 Jun 2014
1 answer
347 views
I am trying to change change axis, chart title and points from client side but i can't able to  find any properties for this from client side. Is this possible to change these values from client side?
Danail Vasilev
Telerik team
 answered on 18 Jun 2014
4 answers
87 views
Hi.

I've developed a page with a RadGrid, sourced by a List of POCO's, using an EditFormType of WebUserControl.  My user control handles the DataBinding event (attaching to it in the control's Page_Load(), if that's important).  I click my edit button in the grid... the control pops up, mostly with populated data.  I seem to at least be doing something right...

The one input in the user control I can't seem to get populated is the drop-down, which I've tried implementing as both a plain old ASP.NET DropDownList or a RadComboBox.  If I debug and step through my DataBinding handler.  I can see that it's been properly selected.  But sometime between the end of the DataBinding() call and rendering, the list has lost its selection, and renders showing the first item in the dropdown.

The grid itself is inside a RadAjaxPanel, but I it doesn't appear to be an ajax issue because the problem persists when I set the panel's EnableAjax=false.

All I'm doing to select an item is:

public void SelectBU(string s)
{
    lstBU.ClearSelection();
    lstBU.FindItemByValue(s).Selected = true;
}

The function that databinds the list itself checks the item-count of the list, and skips the data binding if there are already items.  So it's not losing the selection due to an extra bind.

If I just throw this control on a blank page and call SelectBU() from the .aspx codebehind, it works fine.

I'm on 2014.1.225.40 in ASP.NET 4.0, and I'm targeting IE9 primarily.  (I've seen this same behavior in the versions of Chrome and Firefox I have installed on my box.)

Thanks for any guidance anyone can provide.



Princy
Top achievements
Rank 2
 answered on 18 Jun 2014
10 answers
105 views
I'm using OLAP connection to pivot grid. I have noticed that all of my attributes in dimensions are listed in "more fields" group. i don't want that grouping. (excel it doesn't group that way)

Regards,
Yohan
Maria Ilieva
Telerik team
 answered on 18 Jun 2014
4 answers
162 views
I am using this code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadComboBox1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel" />
            <telerik:AjaxUpdatedControl ControlID="Label1" />
        </UpdatedControls>
    </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">
    
    <telerik:RadComboBox ID="RadComboBox1" runat="server"
        onselectedindexchanged="RadComboBox1_SelectedIndexChanged" AutoPostBack="True">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="item1"
                Value="RadComboBoxItem1" />
            <telerik:RadComboBoxItem runat="server" Text="item2"
                Value="RadComboBoxItem2" />
            <telerik:RadComboBoxItem runat="server" Text="item3"
                Value="RadComboBoxItem3" />
            <telerik:RadComboBoxItem runat="server" Text="item4"
                Value="RadComboBoxItem4" />
            <telerik:RadComboBoxItem runat="server" Text="item5"
                Value="RadComboBoxItem5" />
            <telerik:RadComboBoxItem runat="server" Text="item6"
                Value="RadComboBoxItem6" />
        </Items>
    </telerik:RadComboBox>
 
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
 
</telerik:RadAjaxPanel>

inside a .ascx file and I keep getting the 'The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>) ' error.  Any suggestion on how to fix this?


Maria Ilieva
Telerik team
 answered on 18 Jun 2014
1 answer
158 views
Hi,

I updated my RadTabStrip and RadMultiPage controls ajax manager per this - http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/ajax-enabled-tabstrip-and-multipage/defaultcs.aspx

But now on one of the .ascx pages where I have several Ajaxified RadGrids the controls in the grid won't post? The ajaxmanager on the page is question looks like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
             <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
                                <telerik:AjaxUpdatedControl ControlID="RadGrid3" />  
                                <telerik:AjaxUpdatedControl ControlID="RadGrid4" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="RadGrid4">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadWindow1" />
                    <telerik:AjaxUpdatedControl ControlID="RadWindow2" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadWindow2" />
                    <telerik:AjaxUpdatedControl ControlID="Label1" UpdatePanelCssClass="" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
Maria Ilieva
Telerik team
 answered on 18 Jun 2014
7 answers
291 views
Dear All,

I've been struggling to make RadGrid work with UseStaticHeaders and FrozenColumnsCount properties set. It was working yesterday before we introduced any client-side functionality and today we realized that it wasn't working correctly.

With hours of research in Google, we were not able to find any remedy for the behaviour.

Issue
Column headers won't scroll horizontally in RadGrid although following parameters are set :
AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" FrozenColumnsCount="1"

Remedy
During our development, we have assigned grid's ClientIDMode="Static". Having a static ClientID was the cause of this wierd problem. Once removed, horizontal scrolling was back to normal (as well as frozen columns).

Maybe it will help someone with similar issue.

Kind Regards,

OZAN GUNCELER
Vasil
Telerik team
 answered on 18 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?