Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
137 views
Is there any way to make the bar chartseriesitem non transparent when using the gradient fillstye?  It doesn't seem like this should be the default, and the main / second color opacity is read only.  I have a simple function that builds a couple of series for the chart, and the user wants the bars to not have transparency.

Public Sub SetChartSeries()
 
    Dim oList As New List(Of tblDashboardStat)
    Dim db As New BusIntDataContext
    Dim oSeriesPrior As New ChartSeries
    Dim oSeriesCur As New ChartSeries
 
    oList = (From d In db.tblDashboardStats
             Where d.statGroupID = 1
             Order By d.statSeriesName Descending, d.statSeriesOrder Ascending).ToList
 
    For Each item As tblDashboardStat In oList
 
        Dim oChartSeriesItem As New ChartSeriesItem((item.statSeriesValue1) / 1000000)
 
        oChartSeriesItem.Appearance.Border.Color = Drawing.ColorTranslator.FromHtml(item.statSeriesColor)
        oChartSeriesItem.Appearance.FillStyle.FillType = Styles.FillType.Gradient
        'oChartSeriesItem.Appearance.FillStyle.MainColorOpacity   --->  THIS IS READ ONLY
         
        oChartSeriesItem.Appearance.FillStyle.MainColor = Drawing.ColorTranslator.FromHtml(item.statSeriesColor)
        oChartSeriesItem.ActiveRegion.Tooltip = String.Format("{0:n1}", item.statSeriesValue1)
 
        If item.statSeriesName = "Prior" Then
            oSeriesPrior.Items.Add(oChartSeriesItem)
            hdnColor1.Value = item.statSeriesColor
        Else
            oSeriesCur.Items.Add(oChartSeriesItem)
            hdnColor2.Value = item.statSeriesColor
        End If
 
    Next
 
    rcTotalBilling.Series.Add(oSeriesPrior)
    rcTotalBilling.Series.Add(oSeriesCur)
 
End Sub
Ryan
Top achievements
Rank 1
 answered on 10 Apr 2013
6 answers
66 views
Title pretty much says it all.

Thanks!
Galin
Telerik team
 answered on 10 Apr 2013
1 answer
59 views
  • I created a table and put a dropdown
  • In the IE7 unwanted dots appear on the dropdown
Nencho
Telerik team
 answered on 10 Apr 2013
4 answers
131 views
I am getting the following error.

########################## # The endpoint used to load this resource has been deprecated. # Please update to the current Facebook JavaScript SDK. # https://developers.facebook.com/docs/reference/javascript/ ########################## FB.Share:52
The "fb-root" div has not been created, auto-creating FB.Share:52
FB.getLoginStatus() called before calling FB.init().
moegal
Top achievements
Rank 1
 answered on 10 Apr 2013
3 answers
135 views
I'm trying to have a responsive sliding pane so that when the windows shrinks below tot pixels all the panes close and their behaviour is to auto-close themselves like setting ClickToOpen="false" in the markup.
When the window is bigger instead, I want them to stay open always, exactly what happens having ClickToOpen="true" in the markup.
So I thought this was a simple matter. With JS/Jquery I dedect windows resize (and orientation change for mobiles) and when windows goes below tot pixels I set set_clickToOpen(false), when the window size gets bigger I set set_clickToOpen(true).
I check with an alert(myslidingzoneID.get_clickToOpen()) and everything is set correctly on window resizes but for some reason the auto-close behaviour won't change, it always remains the same I set in the markup (default false if I don't set it in the markup).
How can make this to work? I'm opening the panes clicking on external buttons and calling code like (it's a prototype):

function ButtonClick(x) {
    var sz = $find("RadSlidingZoneMainAdminMenu");
    alert(sz.get_clickToOpen(false));
    if (x == '1') {
        OpenPane('AdminMenuGeneral');
    }
    if (x == '2') {
        OpenPane('AdminMenuComponents');
    }
}
function OpenPane(x) {
    //ExpandSlider();
    var sz = $find("<%= RadSlidingZoneMainAdminMenu.ClientID%>");
    sz.ExpandPane(x);
}

And it work perfect so I don't use the  set_clickToOpen() method to change the opening behaviour but I need it to change the CLOSING behaviour (from auto close to manual close and vice versa).

Also a related question is... can I change the autoclose timing to make it faster when you mouseover from the opened pane?
And is it possible (in addittion to the standard autoclose with its default time) to close the pane clicking out of it? I know this is possible with a simple function like:

$('body').bind('click', function (event) {
    ' check open pane and collapse it
});

But this will collapse the pane even if I click INSIDE it, so how could I check it the click was made outside the pane to anticipate the autoclose feature?

Hoping in your always enlightning support.
Best regards
Massimiliano
Top achievements
Rank 1
 answered on 10 Apr 2013
1 answer
40 views
I've created a templated ASP.NET user control based on the RadDock control. However, when adding such a control to a RadDockZone causes a runtime error stating that it can only contain RadDock controls. Is there any way to solve this?
See here for code: RadDockzone question on Stackoverlow.
Cheers
Slav
Telerik team
 answered on 10 Apr 2013
1 answer
53 views
Is there a RadEditor that will work with mcms2002 & css3/html5? I know mcms is no longer supported but we've more than a dozen major sites (including bccdc.ca) dependent upon it. Urgently looking for any content editor that will work. Thx!! ... Chris
Rumen
Telerik team
 answered on 10 Apr 2013
2 answers
60 views
I am facing a problem.
I am currently using Telerik version 2012.2.724.40 and everything is working.
However, I am unable to upgrade to version 2013.1.326.40. 
When I do, I get the following error:
Sys is undefined
"ASP.NET Ajax client-side framework failed to load."
 

I tried everything posted on your forum with no success so I decided to narrow the bug and found the cause.

I am using a RadButton in a composite control.
Because our clients are mainly using IE7, all our applications are designed in IE7 mode.
This is the cause of the bug.  I get no error if I remove the IE7 mode.
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title></title>
</head>

I must keep the Ie7 mode.  Is there a workaround ?
Here is a code sample reproducing the bug.

MyCompositeControl.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace TestCompositeControl
{
    public class MyCompositeControl : CompositeControl
    {
        protected override void CreateChildControls()
        {
            RadButton radButtonTest = new RadButton();
            radButtonTest.ID = "radButtonTest";
            radButtonTest.Text = "Test";
            Controls.Add(radButtonTest);
             
            base.CreateChildControls();
        }
    }
}

Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestCompositeControl.Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><%--Remove this line to hide the bug.--%>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="true" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"/>
        Remove the IE=EmulateIE7 to hide the bug.<br />
        <uc:MyCompositeControl id="MyCompositeControl1" runat="server"></uc:MyCompositeControl>
    </form>
</body>
</html>

Web.Config
<configuration>
...
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
        <add tagPrefix="uc" namespace="TestCompositeControl" assembly="TestCompositeControl" />
      </controls>
    </pages>
...
 </system.web>
...
</configuration>
Veronique
Top achievements
Rank 1
 answered on 10 Apr 2013
1 answer
122 views
Hello Experts,

  I have added ComboBox in RadGrid, In ComboBox i have options : eg: 1)Cutomers 2)Managers etc.
 If i have select Customers,Rad window should open with customer items and so.
  
I want to call javascript dynamically and below is the exact post : 

   http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

(But it is working with hyperlink, when i used with RadCombo box it is not working)

Code In RadGrid ->

<telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
                    <ItemTemplate>
                      
                         <telerik:RadComboBox ID="RadComboBox2" runat="server" AutoPostBack="true" OnClientSelectedIndexChanged="SelectedIndexChanged" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged">
                            <Items>
                                <telerik:RadComboBoxItem />
                                <telerik:RadComboBoxItem Text="Customers" Value="1" />
                                <telerik:RadComboBoxItem Text="Managers" Value="2" />
                            </Items>
                        </telerik:RadComboBox>  <%--OnClientSelectedIndexChanged="SelectedIndexChanged"--%>
                    
                    </ItemTemplate>
                </telerik:GridTemplateColumn> 


Code Behind:
-------------------------
                RadComboBox RadComboBox2 = (RadComboBox)e.Item.FindControl("RadComboBox2");
                RadComboBox2.Attributes["onclick"] = String.Format("return SelectedIndexChanged('{0}','{1}','{2}','{3}');",sender,e, row.Id, e.Item.ItemIndex);


Javascript
----------------------
<script type="text/javascript">
            function SelectedIndexChanged(sender, eventArgs, id, RowIndex) {
                var item = eventArgs.get_item();
               
                var txt = $get(sender.get_id());
                txt.value = item.get_value();
                txt.text = item.get_text();
                if (txt.text == "NewText4") {
                    if (confirm('Are you sure')) {
                        var grid = $find("<%= RadGrid1.ClientID %>");

                        var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                        grid.get_masterTableView().selectItem(rowControl, true);

                        window.radopen("EditUserDetail.aspx?UserID=" + id, "UserListDialog");
                    }
                    else {

                    }
                }

            }
    </script>
           

           Here the RadWindow is not opening. Please Help with this, 

Thanks in Advance.
   
Boyan Dimitrov
Telerik team
 answered on 10 Apr 2013
5 answers
317 views

Hi there,

Below is my fine-working ExportToExcel function.

Protected Sub btnExportToExcel_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles btnExportToExcel.Click     
    
        RadGrid1.MasterTableView.DetailTables(0).Visible = False ' purposely make DetailTable invisible but it shows us BLANK row in Excel..  
        RadGrid1.ExportSettings.ExportOnlyData = True    
        RadGrid1.ExportSettings.IgnorePaging = True    
        RadGrid1.ExportSettings.OpenInNewWindow = True    
        RadGrid1.MasterTableView.ExportToExcel()     
    
End Sub    
 

I am using a RadGrid attached with a DetailTable.
The only problem I am facing is when it come to Excel exporting, and I was trying to make the DetailTable not visible in Excel report.. but it was like a BLANK row appears alternately in between every data row. (refer to attached screenshot excel.jpg)

It causing problems when we doing data analyzing and formating. Would it be any solution for this issue?

Thank you very much. :)
waiwai
Peter
Top achievements
Rank 1
 answered on 10 Apr 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?