Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
234 views
Is it possible to have YAxis labels that are string/text instead of just numeric?  I know you can do this on the XAxis, but what about the YAxis?  I am trying to construct a bar chart that represents the current status of the production of a digest of articles.  What I am thinking I want to do is show the percentage complete using a horizontal display (from 0 to 100), but I would also like to show each of the various stages that go into producing the digest.  Each stage (for instance, "Proof Editing") would show as a separate label along with the YAxis.  That way, our staff can look at the chart and see not only the % complete, but see what steps still have to be completed and what steps have already been done.  Any suggestions?
Ves
Telerik team
 answered on 05 Nov 2008
2 answers
146 views
I was looking for some working examples in the demo section of your site and noticed some runtime errors when trying to get to the Menu.

http://demos.telerik.com/ASPNET/Prometheus/Menu/Examples/Overview/DefaultVB.aspx
http://demos.telerik.com/ASPNET/Prometheus/Menu/Examples/Overview/DefaultCS.aspx
Paul
Telerik team
 answered on 05 Nov 2008
4 answers
162 views
I am setting  <GroupSettings Height="100px"></GroupSettings> to enable scrolling and it' not working. Instead the menu height grows to the height of the screen, no matter what value is set for "Height". I have version 2008.2.804.20

Here's my code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MenuTest2.aspx.cs" Inherits="MenuTest2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Menu Test 2</title>
</head>
<body>
    <form id="form1" runat="server">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
    <div>
           <telerik:RadMenu ID="RadMenu1" runat="server" EnableAutoScroll="True"
               Height="20px" Skin="Outlook" Font-Bold="True" EnableEmbeddedSkins="True" >
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
               <Items>
                   <telerik:RadMenuItem runat="server" Text="Home" OnItemClick="RadMenu1_ItemClick" NavigateUrl="MenuTest.aspx">
 <GroupSettings Height="100px"></GroupSettings>
                       <Items>
                           <telerik:RadMenuItem runat="server" Text="Blah"  NavigateUrl="TabTest.aspx">
                         
                               <Items>
                                   <telerik:RadMenuItem runat="server" Text="More Blah Blah" NavigateUrl="#">
                                   </telerik:RadMenuItem>
                               </Items>
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blah Blah" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blah Blah Blah" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blah Blah Blah Blah" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blip Blip" NavigateUrl="#">
                               <Items>
                                   <telerik:RadMenuItem runat="server" Text="More Blip Blip" NavigateUrl="#">
                                    <Items>
                                       <telerik:RadMenuItem runat="server" Text="Blop" NavigateUrl="#"></telerik:RadMenuItem>
                                       <telerik:RadMenuItem runat="server" Text="Blop Blop" NavigateUrl="#"></telerik:RadMenuItem>
                                       <telerik:RadMenuItem runat="server" Text="Blop Blop Blop" NavigateUrl="#"></telerik:RadMenuItem>
                                   </Items>
                                  
                                  
                                   </telerik:RadMenuItem>
                               </Items>
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Bleep Bleep" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Bleep Bleep Bleep" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Bleep Bleep Bleep Bleep" NavigateUrl="#">
                           </telerik:RadMenuItem>                          
                       </Items>
                   </telerik:RadMenuItem>
                   <telerik:RadMenuItem runat="server" Text="About Us" NavigateUrl="#">
                       <Items>
                           <telerik:RadMenuItem runat="server" Text="Blah" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blah Blah" NavigateUrl="#">
                               <Items>
                                   <telerik:RadMenuItem runat="server" Text="More Blah Blah" NavigateUrl="#">
                                   </telerik:RadMenuItem>
                               </Items>
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blah Blah Blah" NavigateUrl="#">
                           </telerik:RadMenuItem>
                           <telerik:RadMenuItem runat="server" Text="Blah Blah Blah Blah" NavigateUrl="#">
                           </telerik:RadMenuItem>
                       </Items>
                   </telerik:RadMenuItem>
                   <telerik:RadMenuItem runat="server" Text="Services" NavigateUrl="#">
                   </telerik:RadMenuItem>
                   <telerik:RadMenuItem runat="server" Text="Case Studies" NavigateUrl="#">
                   </telerik:RadMenuItem>
               </Items>
           </telerik:RadMenu>  
    </div>
    </form>
</body>
</html>

If I leave out the  <GroupSettings Height="100px"></GroupSettings>, the menu height is the height required to display the items in the menu.

How to I get scrolling to work???

Thanks in advance.




Peter
Telerik team
 answered on 05 Nov 2008
2 answers
109 views
Would I be able to get an example of the following:

I have a master table called contacts. One field is contact_type_id. In the master table I would like to display the contact_type_name which resides in the contact_type table. So rather than just displaying the contact_type_id which is in the master contacts table, I would like to show the name of the contact type to be more explicit.

Thanks in advance,
Laura
rtk
Top achievements
Rank 1
 answered on 05 Nov 2008
3 answers
145 views
Hi..
I have  masterpage with a menu.. on page load I dynamically load an item. But on PostBack or navigating to other page I loose the MenuItem...
what's wrong.. thanks!

 

// CHECK IF ADMIN

 

 

RadMenuItem NewUser= new RadMenuItem();

 

NewUser.Text =

"Add User";

 

NewUser.ImageUrl =

"img\\user_new.png";

 

NewUser.Value =

"AddUser";

 

 

RadMenuItem admin = this.RadMenu.FindItemByText("Admin");

 

admin.Items.Add(NewUser);

o

Jon
Top achievements
Rank 1
 answered on 05 Nov 2008
1 answer
90 views
Hi,

I am using 3 RadEditor controls in my page with IDs:

1-SummryRE: to enter news summary
2-ImagePathRE: to paste image
3-ContentRE: to paste news content

Now, I would like that when the 'Insert Image' button is clicked in the ImagePathRE editor control, the image manager (and then the image editor) receives a param, so I can do image cropping programatically in my custom FileSystemContentProvider when an image is uploaded.The reason I am passing a param is that I only want to do cropping if the parent rad editor of the Image Editor is ImagePathRE.

Can I pass this param from server side code or query string ?

Thanks in advance

Madani
Rumen
Telerik team
 answered on 05 Nov 2008
5 answers
578 views
I let the smart tag add the handler and got this message so I used the short version 

<

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false" />

still the same problem, the other handlers refer to the 2008.1.415.35 version which is correct so I shouldnt have had to do that anyways.

thoughts, suggestions?

thanks

david

Rumen
Telerik team
 answered on 05 Nov 2008
2 answers
189 views
Can someone tell me why this doesn't work? 

            function GetSelectedIDs() {  
                var cell;  
                var grid = $find("rgEmpTable");  
                var MasterTable = grid.get_masterTableView();  
 
                var selectedRows = MasterTable.get_selectedItems();  
                for (var i = 0; i < selectedRows.length; i++) {  
                    var row = selectedRows[i];  
                    var cell = MasterTable.getCellByColumnUniqueName(row, "empid")  
                }  
                var oWnd = radopen("SubmitResume.aspx?PosIDs=" +cell, "SubmitResume");  
                oWnd.center();  
                return false;                  
            } 

What is supposed to happen is that all selected grid items get sent to my radWindow as a querystring.  What happens is that cell is returned as "undefined" and no matter how I tweak it (declare var cell at top) etc it still returns nothing.  Also, this is attached to an asp button using OnClientClick="return GetSelectedIDs();" and I use the return false; to crush the postback.

For the record, the radWindow opens fine but has a querystring PosIDs=undefined.

Sam
Sebastian
Telerik team
 answered on 05 Nov 2008
3 answers
87 views
I have code:
 void tradeRadGrid_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridDataItem) 
            { 
                DataRowView drv = e.Item.DataItem as DataRowView; 
                if (drv != null
                { 
                    if (drv["Difference"] != DBNull.Value) 
                    { 
                        int dif; 
                        int.TryParse(drv["Difference"].ToString(), out dif); 
                        TableCell tc = (e.Item as GridDataItem)["Difference"]; 
                        if (dif > 0) 
                        { 
                            tc.BackColor = Color.FromArgb(176, 251, 159); 
                        } 
                        else if(dif < 0) 
                        { 
                            tc.BackColor = Color.FromArgb(255, 176, 159); 
                        } 
                    } 
                } 
            } 
        } 
My question:
How Can I distinguish MasterTableViewitems from DetailTables items durring ItemDataBound? I would like to chnage data for MasterTableView item, not for DetailTables item.


Shinu
Top achievements
Rank 2
 answered on 05 Nov 2008
1 answer
139 views
I have two questions regarding the client side API of the RadColorPicker.

1.  How am I supposed to know what is avaliable in the eventArgs of the OnClientColorChanged client side event handler?  The documentation sample http://www.telerik.com/help/aspnet-ajax/color_clientonclientcolorchange.html references the use of eventArgs.get_oldColor() but the documentation of the client object http://www.telerik.com/help/aspnet-ajax/color_clientobject.html does not talk about the "get_oldColor()".

2.  How can I add items to the client side event args?  What I would like to add is the client id of a textbox that should be updated when the selected color is changed.  More specifically I would like to set the client id of the textbox to update from the server (c# code) so I can reference the passed in eventArgs to get the id of the textbox to update.
Tsvetie
Telerik team
 answered on 05 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?