Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
I have a radpanelbar that I use as a navigation menu, it works great, but on one of the items there are subitems, if the subitems fill the area I need a scrollbar to appear.  A scroll bar does appear but only when you click in the area of the subitems, I need the scrollbar to always be there if the area is filled with subitems.  I see no scrollbar property, how can I achieve this?

Thanks
Jim
Jim
Top achievements
Rank 2
 answered on 26 Aug 2008
5 answers
195 views
Dear All!

I have a big problem with the GridTemplateColumn. I've created grid in the PageInit at code-behind. Everything works fine except one thing.
I have a Template Column with different running number. Means every time I need to create different pieces of  (Template) Columns. At first 5 pieces, after a button postback 2 pieces (depends on _numberOfMD), etc. :

protected void Page_Init(object sender, EventArgs e)
{
    RadGrid _grdEval = new RadGrid();
    ....
    for (int i = 0; i < _numberOfMD; i++)
    {
      GridTemplateColumn tmplColumn = new GridTemplateColumn();
      tmplColumn.HeaderText = "ESY<BR />OK";
      tmplColumn.UniqueName = "EasyChkTempColumn" + i.ToString();
       tmplColumn.ItemTemplate = new MDTemplate("MD");
       tmplColumn.AllowFiltering = false;
       this._grdEval.Columns.Add(tmplColumn);
    }
}

But the error: At the first load (not postback) five columns created successfully and after postback (with button press) if I want to create only 2 columns (the _numberOfMD will be 2 instead of 5), the following exception thrown:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

How can I do that every time
with different _numberOfMD the Grid works well without exception and create and bind number of columns as I want.

thanks
alsi
Top achievements
Rank 1
 answered on 26 Aug 2008
1 answer
132 views
Hi,

I have a RadMenu control which I have customised the styling of, by extending the "Outlook" skin

It works fine in IE7, Firefox, Opera and Safari, but is showing some very weird behaviour in IE6.  When you hover over any top level (horizontal) menu item, that item expands to fill the full width of the page, pushing all items to the right of it down to the next line.
The bottom border on the horizontal separators is also not lining up with the bottom borders on the main horizontal items.

When I remove my customisations it works fine in IE6. 

I have included my customised styles below, any help you could offer would be appreciated.

The menu is declared on the page as follows
<telerik:RadMenu ID="mainMenu"
            runat="server"
            Skin="Outlook"
            OnItemClick="menuItem_ItemClick">
            <ExpandAnimation Type="Linear" Duration="100" />
            <CollapseAnimation Type="Linear" Duration="100" />
         </telerik:RadMenu>


.RadMenu a.rmLink
{
    cursor:pointer;
}

.RadMenu_Outlook .rmHorizontal .rmItem
{
    border-right: 1px solid #7AA5D6;
    border-left: 1px solid #7AA5D6;
    border-top: 1px solid #7AA5D6;
    border-bottom: 1px solid #7AA5D6;
    height: 24px;
}

.RadMenu_Outlook .rmVertical .rmItem
{
    border-right: none;
    border-left: none;
    border-top: none;
    border-bottom: none;
}   
   
.RadMenu_Outlook
{
    background: #E5ECF9 none repeat scroll 0 0;
    height: 24px;
}

.RadMenu .rmLink:hover
{
    text-decoration: none;
}

.RadMenu_Outlook .rmHorizontal .rmExpanded,
.RadMenu_Outlook .rmHorizontal .rmExpanded:hover
{
    background:#FFFFFF;
    border: 1px solid white;
    height:24px;
}

.RadMenu_Outlook .rmRootGroup .rmFocused,
.RadMenu_Outlook .rmRootGroup .rmLink:hover
{
    background:#FFFFFF none left top repeat-x;
    height: 24px;
    border: 1px solid white;
}

.RadMenu_Outlook .rmRootGroup .rmVertical .rmFocused,
.RadMenu_Outlook .rmRootGroup .rmVertical .rmLink:hover
{
    background:#FFFFFF none left top repeat-x;
    border: 1px solid #7AA5D6;
}

.RadMenu_Outlook .rmGroup
{
    border: 1px solid #7AA5D6;
    border-top: none;
    padding-top: 0;
    margin-top:0;
}


.RadMenu_Outlook .rmHorizontal .rmSeparator .rmText
{
    background:#FFFFFF none left top repeat-x; 
    width: 5px;
    height: 24px;
    padding: 0px;
    border: none;
}

.RadMenu_Outlook .rmHorizontal .rmSeparator
{
    height: 25px;
    border: none;
    border-bottom: 1px solid #7AA5D6;
}

.RadMenu_Outlook .rmText
{
    padding: 0 0 0 0;
    /*line-height: 18px;*/
    font-size: 85%;
}
   

.RadMenu_Outlook .rmHorizontal .rmItem .MenuHeaderSelected
{
    background-color: #FFFFFF;
    border-bottom: 1px solid white;
}   
   

Yana
Telerik team
 answered on 26 Aug 2008
6 answers
108 views
Hi guys,

I'm struggling with little problem now - how to prevent Enter hitting. For example such piece of code
function onEditorClientLoad(editor, args) 
    editor.attachEventHandler("onkeydown"
        function(e) 
        { 
            if (document.all) 
            {   
                e.cancelBubble = true;   
                e.returnValue = false;   
                return false;   
            }   
            else   
            {   
                e.preventDefault();   
                return false;   
            }   
        } 
    ); 
helps us to discard any symbol key hitting, but not Enter, or Ctrl-A, and so on.
But in my case I really want to cancel Enter, if it is done inside link, and thus prevent creating two separate links.
Any help would be appreciated. Thanks in advance.

Sergey.
QualiWareUA
Top achievements
Rank 1
 answered on 26 Aug 2008
15 answers
2.1K+ views
Hey all,

When I put a RadTextBox into MultiLine mode, it seems to ignore the value that I've put in the MaxLength field, if I paste text into a box.  (Typing one character at a time retains the MaxLength restriction

For example, in the following aspx page, if I type, I'm limited to 10 character.  If I cut and paste text, it ignores that limitation

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TetxareaLength.aspx.cs" Inherits="TetxareaLength" %> 
 
<%@ 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>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
     
    </div> 
        <br /> 
        <br /> 
        <telerik:RadTextBox ID="RadTextBox1" runat="server" Columns="120" MaxLength="10" 
            Rows="5" TextMode="MultiLine"
        </telerik:RadTextBox> 
    </form> 
</body> 
</html> 





Pavel
Telerik team
 answered on 26 Aug 2008
6 answers
341 views
I am trying to add buttons dynamically in the code-behind using the Insert method to a toolbar that already has buttons, which were added in the ASP.  When the toolbar renders for the first time, the toolbar looks exactly as I would expect.  However, when a postback occurs, the buttons that were added in the ASP do not show up, but the dynamic buttons do.

Does the Insert method not really work on postbacks?

I tried the same scenario, but instead I used the Add method.  Everything works fine in that instance.

I did notice that it appeared that the toolbar was rendered with the UL and LI tags for the buttons that were not displaying, but the text was not set.

Any help will be much appreciated.
Erjan Gavalji
Telerik team
 answered on 26 Aug 2008
6 answers
187 views
Hello,

I am having an issue regarding recurring appointments.  I can create a series, and it displays recurring appointments fine.  However, when I attempt to edit an occurrence, that occurrence remains active and another is created with the new information.  How do you configure the new occurrence so that the initial series will ignore the one you are attempting to replace?
Peter
Telerik team
 answered on 26 Aug 2008
11 answers
356 views
I have encountered three issues with RadToolBar, all demonstrated with the code below:

1. In IE7 the RadToolBarDropDown is displayed shifted to the right. In Firefox the menu displays directly underneath dropdown but in IE7 it is too far to the right.

2. RadToolBarButton does not self uncheck if specified as such (IE7 and Firefox). To uncheck you must click on it to check, then click again to "uncheck" and then click away from the toolbar (blur) to uncheck. Shouldn't it uncheck immediately after the second click on the checked button?

3. As noted in a previous post, the RadToolBarDropDown menu, in IE7 , displays in "halves", you can see the effect in the code below.

<%@ Page  
    Language="C#" 
    AutoEventWireup="true" 
    CodeBehind="WebForm1.aspx.cs" Inherits="WebForm1" %> 
 
<!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>RadToolBar Issues</title> 
    </head> 
    <body> 
        <form id="form1" runat="server">  
            <div> 
                <asp:ScriptManager ID="scriptManager" runat="server">  
                </asp:ScriptManager> 
                <div style="float:left;">  
                    <telerik:RadToolBar  
                        ID="RadToolBar1" 
                        Skin="Web20" 
                        runat="server" 
                        Width="965px">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        <Items>             
                            <telerik:RadToolBarButton runat="server">  
                                <ItemTemplate> 
                                    <asp:Label  
                                        ID="lblSearch" 
                                        runat="server" 
                                        Text="I am a label!" /> 
                                </ItemTemplate> 
                            </telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton runat="server" CheckOnClick="true" AllowSelfUnCheck="true" Text="Button 1" /> 
                            <telerik:RadToolBarDropDown runat="server" Text="Group Menu">  
                                <Buttons> 
                                    <telerik:RadToolBarButton runat="server" CheckOnClick="true" AllowSelfUnCheck="true" Group="Group" Text="I like this menu" Checked="true" /> 
                                    <telerik:RadToolBarButton runat="server" CheckOnClick="true" AllowSelfUnCheck="true" Group="Group" Text="but in IE" Checked="false" /> 
                                    <telerik:RadToolBarButton runat="server" CheckOnClick="true" AllowSelfUnCheck="true" Group="Group" Text="it displays in halves" Checked="false" /> 
                                    <telerik:RadToolBarButton runat="server" CheckOnClick="true" AllowSelfUnCheck="true" Group="Group" Text="and too far to the right!" Checked="false" /> 
                                </Buttons> 
                            </telerik:RadToolBarDropDown>                        
                        </Items> 
                    </telerik:RadToolBar> 
                </div> 
            </div> 
        </form> 
    </body> 
</html> 
 




Peter
Telerik team
 answered on 26 Aug 2008
1 answer
116 views
When using the Default skin,  a single child tab with spaces in the name does not seem to render properly in FF.

Steps to reproduce:
1. create new web site
2. add RadTabStrip
3. Set default skin
4. Use the built in editor to add 1 parent tab and add 1 child tab .
Leave the child tab text as "Child RadTab 1".

Run the website and view it in FF, click on the parent tab. The "Child RadTab 1" is rendered on 3 separate rows.

Any idea how to correct this?

Thanks
Paul
Telerik team
 answered on 26 Aug 2008
2 answers
252 views
I have a hopefully a simple question now that we have purchased your product.

In my RadGrid I have three columns one is a checkbox, the other two are GridBoundColumns. 

Above the grid is a RadComboBox that has a dropdown for COOL  with values of "Yes" or "No".  If I check one of the checkboxes and select "No" in my deopdownlist for Britney Spears is there a way I can have an alert say.....
"Currently she is Cool, are you sure you want to make her Not Cool?"

DropDownList[Yes-No] [submit button]
ChxBox        NAME                        COOL
[ ]                 James Brown                     Yes                 
[x]                 Britney Spears                   Yes  <-- Need to Change to No
[ ]                 Roy Orbison                      Yes
[ ]                 Robert Smith                      Yes

Thank You!

                                            
Mike
Top achievements
Rank 1
 answered on 26 Aug 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?