Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
274 views

Hi,
Im using Promethus RAD chart. In my user control, I have three charts which are dynamically binding and im having different legend for different charts.

In my ascx, i have this much code and im doing all the things in code behind.

<telerik:radchart ID="RadChart1" SkinsOverrideStyles="false" runat="server" Width="600px" Height="430px" seriespalette="" visible="false" >

<PlotArea>

<Appearance dimensions-width="470" > </Appearance>

</PlotArea>
</telerik:radchart>
Legend Creation in code behind:

Dim lbl1 As New LabelItem

With RadChart1.Legend.Items(0)

.TextBlock.Text =

"81 to 100% - Appraisal criteria fully met"

.Marker.Appearance.FillStyle.MainColor = Drawing.Color.Green

.Marker.Appearance.FillStyle.SecondColor = Drawing.Color.GreenYellow

.TextBlock.Appearance.TextProperties.Color = Color.Black

End With

Dim lbl2 As New LabelItem

With RadChart1.Legend.Items(1)

.TextBlock.Text =

"41 to 80% - Appraisal criteria partially met"

.Marker.Appearance.FillStyle.MainColor = Drawing.Color.Yellow

.Marker.Appearance.FillStyle.SecondColor = Drawing.Color.Silver

End With

With RadChart1.Legend

.AddLabel(lbl1)
 .AddLabel(lbl2)

.Appearance.Position.AlignedPosition = Styles.AlignedPositions.BottomLeft

.Appearance.Location = Styles.LabelLocation.OutsidePlotArea

RadChart1.Legend.Visible =

True

End With

IN the ascx control, i have combo box with the chart types... when the user changes the chart type and click refresh , then the next chart is loaded. but when the user just changes the chart type alone, then nothing should happen.

actual result :  when the user changes the chart type, chart remains the same..but legend text and marker diasppears completely leaving blank white space. but when i click refresh, then legend comes properly.

Is there a way to keep the legend as it is when the user changes the chart type in combo box.

Could you pls.

Thanks

Ves
Telerik team
 answered on 09 Feb 2010
1 answer
297 views
Let me explain, what I need to perform, I've parent page, on button click show radwindow, I've written the javascript window.radopen("url", null); script. Rad window is opened, and it contains two buttons, undo and continue. When undo button is clicked, it has to close the radwindow and continue button is clicked, it has to close the rad window and redirect to the parent page and update the grid which is there on the parent page. 

    I've used all the possible code snippets which are posted related to closing of radwindow such as the one shown here : http://www.telerik.com/community/forums/aspnet-ajax/window/radwindow-close-on-server-side.aspx

    To be more clear, I've attached the screen shot of the code snippets which I've written to implement it.
Georgi Tunev
Telerik team
 answered on 09 Feb 2010
1 answer
155 views
Hi, what I am trying to do is create a time slot context menu based upon the selected value of a radcombobox. What I see happening is that the scheduler is bound once but never server-bound again unless I change the selected date or otherwise do some action on the scheduler.

I have tried to fire rebind() and select a date but the binding (whether inside _databound, _init) does not fire. 

functionschedule.rebind(); 
functionschedule.set_selectedDate("2/3/2010"); //rs.get_selectedDate()); 
alert('rebinded'); 

Am I going to need to build the context menu on the client? Does client "rebind()" require a web services datasource?

Thanks, Chip
T. Tsonev
Telerik team
 answered on 09 Feb 2010
1 answer
97 views
Hi Telrik

i am using telerik 2009. and i want to create chart for below table example.
billable nonbillable
Novartis Binod 32 8
Jaswanth 12 23
Sudhanva 34 6
KOL Binod 22 18
Harish 39 1
Sudhanva 35 5
and chart should be like attached picture here. please guide me how to achive chart like this using above type of datatset.
Ves
Telerik team
 answered on 09 Feb 2010
1 answer
81 views
I am running MOSS 2007 Enterprise and WSS 3.0. IIS shows that my sites are running with ASP.NET 2.0 (and no other framework options). Can I just follow the instructions here, http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html and then my SharePoint sites will run the RadGrid for ASP.NET 3.5? 
Sebastian
Telerik team
 answered on 09 Feb 2010
2 answers
193 views
Hi,

I need to localize the FileExplorer on server side because translations should be user-customizable and therefore are loaded from a database. That works fine except for one problem:

Except for the last item (Upload) in the Toolbar, all other items have the css class: rtbIconOnly set on them. This results in the Text being displayed with 17px height instead of the default and without a space between the icon and the text.

I could work around this issue by applying some custom css, but the 'clean' way would be to remove the .rtbIconOnly css class from the first menu items. Where is this defined, because I can't find out where this is set to change it.

The css I used is this:
/* hack for Telerik file explorer .rtbIconOnly css class to look like normal icon+text buttons: */ 
.RadFileExplorer .RadToolBar .rtbIconOnly .rtbText { 
    font-size12px !important; 
    padding:0 2px 0 22px !important; 
 

Thanks in advance,

  Sebastian
Sebastian
Top achievements
Rank 2
 answered on 09 Feb 2010
9 answers
172 views

Hi,

I have a problem using the RadCombo with IE8.  The list of items exceeds the height of the control (see attached file).

How could i fix this issue?

I'm using version 2009.2.826.

Thank You!

Hans Gunnar
Top achievements
Rank 1
 answered on 09 Feb 2010
1 answer
127 views
 

Protected Sub BtnInsert_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnInsert.Click
following is my code and the radwindow is not closing while website hosted in IIS
by directly running from visual studio its working

''''''' client side
   function CloseAndRebind(args) {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.refreshGrid(args);
            }

            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)

                return oWindow;
            }



''''''server side      
Try
 
                If Not ViewState("FileName") Is Nothing Then
                    sSql = " insert into Images(Name, Description, ImageName) values('" & DoInsertable(txbName.Text.Trim) & "','" & DoInsertable(txbDescription.Text.Trim) & "','" & DoInsertable(ViewState("FileName")) & "')"
                    ExecuteQuery(sSql)
                    ViewState("FileName") = Nothing
                    ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind('navigateToInserted');", True) ''check here
                Else
                    ScriptManager.RegisterStartupScript(Me, Me.GetType(), "newkey", "<script>alert('No File Exists');</script>", False)
                End If
          

        Catch ex As Exception
            ScriptManager.RegisterStartupScript(Me, Me.GetType(), "mykey", "<script>alert('" & Err.Description & "');</script>", False)
        End Try
    End Sub
Georgi Tunev
Telerik team
 answered on 09 Feb 2010
3 answers
130 views
I used RadWindow in ASP.NET and I am now trying to convert to ASP.NET AJAX and I cannot get it to work. Here is my code:

    <asp:ScriptManager runat="server" ID="scriptManagerCLProxy">
  <Services>
    <asp:ServiceReference
       path="~/WebServices/CheckFileStatus.asmx" />
  </Services>
</asp:ScriptManager>
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow
                    id="RadWindow1"
                    runat="server"
                    showcontentduringload="false"
                    width="400px"
                    height="400px"
                    title="Critical Comments"
                    behaviors="Default">
                </telerik:RadWindow>
            </Windows>
            </telerik:RadWindowManager>
<script language="javascript" type="text/javascript">
    function CheckCriticalComments() {
        var oWindow = null;
        var CCFlag = document.getElementById("txtCCFlag").value;
        alert("CCFlag=" + CCFlag);
        if (CCFlag == "Y") {
            CCFlag = "N";
            radopen("CriticalComments.aspx", "RadWindow1");
        }
    }
</script>

All I get is an "object required" error message on the "radopen" statement.

Please help.

Thanks,
Georgi Tunev
Telerik team
 answered on 09 Feb 2010
1 answer
113 views
Hi,

I need to close a rad window after making an ajax call.

 
            function closeandredirect() { 
                GetRadWindow().BrowserWindow.location.href = '/main/sdfds_Select.aspx'
                GetRadWindow().close();       //closes the window      
            } 
            function GetRadWindow() { 
                var oWindow = null
                if (window.radWindow) 
                    oWindow = window.radWindow; 
                else if (window.frameElement.radWindow) 
                    oWindow = window.frameElement.radWindow; 
                return oWindow; 
            }  

                lblCloseWindow.Text = "<script type='text/javascript'>closeandredirect();</script>"
                lblCloseWindow.Visible = true

I tried using the above code. and did not work for me.
But it does work if i change the EnableAJAX  property of radajaxmaanger to false.


Georgi Tunev
Telerik team
 answered on 09 Feb 2010
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?