Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
344 views

I have an issue with a Radcombobox. I am trying to set the height of the radcombobox on ClientSelectedIndexChanged, but I am getting a rendering issue and I cannot see where the problem is.

 Below, you will find my code;

 CSS:

div.RadComboBox_Windows7 .rcbInputCell INPUT.rcbInput

{

height: 37px;

}

ASPX:

<telerik:RadComboBox ID="RCB_Test" runat="server" Width="340px" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedHandler">

<Items>

<telerik:RadComboBoxItem runat="server" Text="Testing please" Value="Testing please" />

<telerik:RadComboBoxItem runat="server" Text="Testing please" Value="Testing please" />

<telerik:RadComboBoxItem runat="server" Text="Testing please" Value="Testing please" />

</Items>

</telerik:RadComboBox>

 

JavaScript:

function OnClientSelectedIndexChangedHandler(sender, eventArgs) {

var item = sender.get_inputDomElement();

item.style.height = "37px";

 

I have also attached an image of the problem.

 

Any help would be appreciated.

}

 

 

Magdalena
Telerik team
 answered on 04 May 2015
1 answer
169 views

Hi,
I've implemented the imagegallery in lightbox mode on one of our site and it work fine except when I click on the same image twice, then the image just won't load. 

I went to look if it was working on your demo and it doesn't work either.

- Go to : http://demos.telerik.com/aspnet-ajax/image-gallery/examples/functionality/modes/defaultcs.aspx

- Select the LightBox mode. 

- Click on an image

- Close the lightbox window with the X in the top right corner

- Click on the same image

The image just don't show up and the loading take forever.

 

 

Dimitar
Telerik team
 answered on 04 May 2015
2 answers
282 views

I just want to set the Cache Header "max-age" of ".axd" resources like "Telerik.Web.UI.WebResource.axd","ScriptResource.axd" etc.

So for achieving that I just implemented the IHttpModule and used corresponding Event as in the following code-

"

 So just want to know that is this the correct approach or there are some other ways to set Cache Header "max-age" of "axd" resources.

ankur
Top achievements
Rank 1
 answered on 04 May 2015
3 answers
104 views
When will be public available new Visual Style Builder tool for developers? In a few days, weeks or months?
Dimitar
Telerik team
 answered on 04 May 2015
3 answers
349 views
Typing in the RadEditor in Chrome always adds the <p></p> HTML tags to the first row.  I can remove the tags and then I am able to type in the first row. But I cannot do it by default. I have attached two screen shots that shows this behavior in chrome.

It works fine in IE and Firefox. Is there a way to remove the <p> tag inserted by default in Chrome browser?

I'm using version 2014.2.618.45


















�3�-h�
















�3�-h�

Ianko
Telerik team
 answered on 04 May 2015
3 answers
174 views
It's possible this should go under the RadSpell control, but...

In IE11, if the next wrong word doesn't have any suggestions, the spell check doesn't open the commands window (the one with Ignore/Ignore All/Change Manually/etc), and the spell check can't continue.  This happens in both iframe and div modes.  No errors are thrown.

Also, in IE11, when the RadEditor is set to ContentAreaMode="Div" and contained inside an iframe, clicking on the spell check commands window for the first misspelled word results in the following JavaScript error:

Object doesn't support property or method 'createTextRange'.

Screenshot attached.
Ianko
Telerik team
 answered on 04 May 2015
3 answers
177 views
Hi All,

I have a RadEditor on my ASP.NET page.
I want to get the number of lines users have entered and want to restrict users to enter more than X lines.

Is there are property of RADEditor using which I can achieve this ?

Thanks
Bharani
Top achievements
Rank 1
 answered on 03 May 2015
2 answers
234 views

Wanted to make you aware of an issue with radscheduler,24hr view and the bootstrap skin.  It seems with that skin that you are not able to vertically scroll past 10pm (11pm is entirely cut out).  You can view this yourself in either Chrome or Firefox on your own examples (didn't check IE).

 

If you are aware do you have a workaround prepared or anyone else who's encountered the same?

Jon
Top achievements
Rank 1
 answered on 01 May 2015
4 answers
328 views

I want to create a multilevel list with RadFlowDocument, like this : 

  1. level 1.

    1.1. level 1.1.

      1.1.1. level 1.1.1.

      1.1.2. level 1.1.2.

    1.2. level 1.2.

    1.3. ...

What should I write to the property NumberTextFormat?

Dim list As New Telerik.Windows.Documents.Flow.Model.Lists.List()
document.Lists.Add(list)
list.MultilevelType = Telerik.Windows.Documents.Flow.Model.Lists.MultilevelType.Multilevel

Dim i As Integer = 0
While i < list.Levels.Count
    list.Levels(i).StartIndex = 1
    list.Levels(i).NumberingStyle = Telerik.Windows.Documents.Flow.Model.Lists.NumberingStyle.Decimal
    list.Levels(i).NumberTextFormat = ??????
    i = i + 1
End While

Stéphane
Top achievements
Rank 1
 answered on 01 May 2015
5 answers
251 views
Hello,

I am having a problem with a RadEditor thats in the EditTemplate of a RadGrid that is using the Batch edit mode. All HTML tags are lost after the row loses focus.

Steps to reproduce the issue on the sample below:
1. Click one of the rows to enter edit mode
2. Add a hyperlink using the richtexteditor or make a text bold. Anything that adds one or more HTML tags.
3. Exit edit mode, by clicking a different row.
4. All HTML tags are now lost.

See the code sample below:
Markup:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCase.aspx.cs" Inherits="Test.TestCase" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" />
        <telerik:RadGrid ID="gvFactors"
                         runat="server"                         
                         AutoGenerateColumns="false"                           
                         AllowAutomaticInserts="true"
                         AllowAutomaticUpdates="true"   
                         AllowAutomaticDeletes="true" 
                         Skin="Metro"                     
                         OnNeedDataSource="gvFactors_OnNeedDataSource">     
            <MasterTableView TableLayout="Auto" EditMode="Batch" CommandItemDisplay="Top">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="Text" DataField="Text" ColumnEditorID="tbText">
                        <ItemTemplate>
                            <%# Eval("Text") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                                <telerik:RadEditor ID="tbText"
                                                    runat="server"                         
                                                    Skin="Metro"                                                                                    
                                                    Content='<%#Eval("Text")%>'                                      
                                                    MaxHtmlLength="4000"
                                                    EditModes="Design"/>                                         
                        </EditItemTemplate>                               
                    </telerik:GridTemplateColumn>
                </Columns>               
            </MasterTableView>
        </telerik:RadGrid>      
    </div>
    </form>
</body>
</html>

Code behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace Test {
    public partial class TestCase : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
 
        }
 
        protected void gvFactors_OnNeedDataSource(object sender, EventArgs e) {
            IList<DataItem> items = new List<DataItem>();
            items.Add(new DataItem() { Text = "test1" });
            items.Add(new DataItem() { Text = "test2" });
            items.Add(new DataItem() { Text = "test3" });
 
            this.gvFactors.DataSource = items;
        }
    }
 
    public class DataItem {
        public String Text { get; set; }
    }
}

Marin Bratanov
Telerik team
 answered on 01 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?