Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
270 views
Hi there,

I've already mentioned in the previous thread about my problem: http://www.telerik.com/community/forums/aspnet-ajax/editor/formatting-within-conten.aspx.   But I thought I start a new thread as the problem has gone beyond Telerik editor randomly adding in spaces.   Basically I just converted my website from a very old version of CuteEditor to Telerik RadEditor.  There are thousands of documents in the database that were created by this old CuteEditor and have very very badly formatted HTML.   At first when I put in Telerik editor, the first symptoms were tables getting random spaces put into table cell everytime when the user is switching from design view to html view.   Weird syntax which I already described in my previous thread's comments.  So then I tried removing the ConvertToXHTML filter, seems to stop adding in pages and pages of space.  But then in other documents it was still adding in spaces in between list items and table cells.   I tried removing all filters except for IndentHTML filter and still I find the RadEditor is still trying to messing with the HTML somehow.   

For example:

Badly formatted HTML like this: 
<p><a href="#17">17. Can you help me interpret and operationalize the nutrition standards
           of the food and beverage policy?
       </p>
       <p>
           </a><a href="#18">18. EXAMPLES</a>
       </p>

is turning into this:

<P><A href="#17">17. Can you help me interpret and operationalize the nutrition standards of the food and beverage policy? </A></P>
    </P>
    <P>
    <P>
    <DIV _rdEditor_temp="1"><A href="#17"></DIV>
    </A></P>
    <A href="#17"></A></P>
    <A href="#17">
    <P><A href="#18">18. EXAMPLES</A> </P>
    </A></A>
    <P></A></P>

Is this a bug?  Also random </o:p> are getting inserted into the code.  I know that RadEditor requires xhtml compliant HTML to work well but I have thousands of documents in the database and my users do not know HTML.  Is there a solution you can recommend?  I looked at stuff like HTMLPurifier and I used the example above on their demo and it seems to clean the HTML quite well.   Problem is HTMLPurifier is a php product.  Does anyone have any experience with this or any suggestions?  Any help or tips at all would be greatly appreciated.

Thanks.
Rumen
Telerik team
 answered on 17 Apr 2012
3 answers
275 views
I'm really struggling with how to just change the font to Arial and the pt size for all nodes.   I'm using the Default skin.  What is the simplest way to do this?
Kevin
Top achievements
Rank 2
 answered on 17 Apr 2012
1 answer
102 views
I use RadGrid with «auto» export to csv and excel.
It work fine when the grid doent have huge amount of records.
But when its binded to 1M+ records linq datasource (with paging) and you would try to export data then it would hang on

Is it possible to override exporting process and somehow optimize it manually (like, create middle-step dump file then zip it and return url on zip file)?
Daniel
Telerik team
 answered on 17 Apr 2012
17 answers
303 views
Localized possible this control there؟؟؟
Tsvetina
Telerik team
 answered on 17 Apr 2012
5 answers
108 views
So, I have somewhat specific situation... I have 2 grids on the page with 2 virtual scrolls enabled. One is working perfectly... and the other is showing only the first page. When I try to scroll or anything I get a blank page and I have 6000 items on 300+ pages.

The code is the same for both of the grids (only the page size is different and RadGrid names, of course). What am I doing wrong? :) If I am. :)
Pavlina
Telerik team
 answered on 17 Apr 2012
2 answers
29 views
Hi All

I've got a strange problem which I cannot seem to solve.

We use RadWindows heaving throughout our application. To date, we've never had a problem. Im in the process of introducing a splitter bar with 2 panels and a sliding zone on our master page. I've got this working and everything is great, with one exception. On one particular page, any RadWindow opened shows with no visible borders. You can see the title text, but no border, the the X close button is invisible (but can still be clicked if you guess where it is).

RadWindows opened from other pages (which inherit the same master page) are working fine.

I've tried setting Overlay="true" on the window but this had no effect. If i remove the splitter bar setup on the master page, it goes back to normal on the broken page.

Any thoughts at all? Has anyone seen this before? What could be the potential causes?

The implementation on the master page is as follows:

<telerik:RadSplitter ID="rsMain" runat="server" Width="100%" OnClientLoad="OnSplitterLoad">
    <telerik:RadPane ID="LeftContentPane" runat="server">
        <div id="contentcontainer">
            <asp:ContentPlaceHolder ID="cphMain" runat="server">
            </asp:ContentPlaceHolder>
        </div>           
    </telerik:RadPane>
    <telerik:RadPane ID="RightSubPane" runat="server" Width="25">
        <telerik:RadSlidingZone ID="rszSlider1" runat="server" Width="25" ClickToOpen="false" SlideDirection="Left">
            <telerik:RadSlidingPane ID="ActiveTime" Title="Active Time" runat="server" Width="250" MinWidth="250">
                This is where the active and inactive timing will be shown.
            </telerik:RadSlidingPane>
        </telerik:RadSlidingZone>
    </telerik:RadPane>
</telerik:RadSplitter>
Marin Bratanov
Telerik team
 answered on 17 Apr 2012
7 answers
276 views
I looking for a way to make my panel bar menu have rounded corners to match aspects of my website.
From what I read I need to create a custom skin but I can't find a link to the tutorial or for a description of how to make this happen.

If anyone can give me any advice it would be appreciated.

Thank you
Peter
Telerik team
 answered on 17 Apr 2012
1 answer
468 views
When using RadWindows we always have KeepInScreenBounds = "True".

I work on a desktop machine with 2 monitors. If I set the browser to fullscreen mode, then open a RadWindow in my app and move it off to the far right of the screen, then take the browser out of fullscreen mode the RadWindow is completely off the screen and inaccessible.

I'm not sure if you can do anything about this, but it would be nice to ensure that, at least when KeepInScreenBounds=true, that the RadWindow moves  when this happens.

--
Stuart
Marin Bratanov
Telerik team
 answered on 17 Apr 2012
1 answer
124 views
I have a RadComboBox which is setup as follows

 

 

 

<telerik:RadComboBox ID="radcombo_1" AutoPostBack="true" runat="server" 
    onselectedindexchanged="radcombo_1_SelectedIndexChanged" OnClientSelectedIndexChanging="SelectionChange" >
</telerik:RadComboBox>

My goal is to prevent a selection change in certain scenarios.  Currently, I enforce this using good ole'
js window.confirm as follows

function SelectionChange(sender, eventArgs) {
    try {                
        var text = "";                
        text = sender.get_text();
        if (text != "Select") {
            var allow = false;
            allow = TheConfirm();
            if (allow == true) {
                eventArgs.set_cancel(false);
            }
            else {
                eventArgs.set_cancel(true);
            }
        }
    }
    catch (errA) {
                    }
}

function TheConfirm() {
     return confirm("Change?");                     
}

However, I would like to change this to utilize radconfirm with a <ConfirmTemplate>.  Yet, radconfirm does not appear to be a blocking call...

Can anyone provide an example of how to prevent the RadComboBox selection change with a blocking radconfirm that uses a custom <ConfirmTemplate>???

Any help would be greatly appreciated. 

Marin Bratanov
Telerik team
 answered on 17 Apr 2012
1 answer
306 views

Hello,

I'm experiencing weird behavior from the RadComboBoxSelectedIndexChangedEventArgs EventArgs. When loading my aspx page and checking one item in the RadComboBox, the SelectedIndexChanged event fires. So far all good, but when I take a look at the OldValue, Value, OldText and Text properties, I noticed something strange. The OldText property is empty but the OldValue is set? I've attached a screenshot showing the properties and values ("oldvalue oldtext.jpg")

This becomes a problem when having two RadComboBoxes with both having the SelectedIndexChanged event set. In this example I check an item in the first RadComboBox and the SelectedIndexChanged event fires. After it has been fired the SelectedIndexChanged event from the cblEmployees RadComboBox also fires! It believes the SelectedIndex has changed while it hasn't. I've attached a screenshot ("two radcbb.jpg")

Here is the code I have:

One RadComboBox:

<asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadComboBox ID="cblFases" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" AutoPostBack="true"
    OnSelectedIndexChanged="cblFases_SelectedIndexChanged" />

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        for (int i = 0; i < 5; i++)
        {
            cblFases.Items.Add(new RadComboBoxItem { Text = "F" + i.ToString(), Value = "V" + i.ToString() });
        }
    }
}
 
protected void cblFases_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
}

Two RadComboBoxes:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadComboBox ID="cblFases" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" AutoPostBack="true"
OnSelectedIndexChanged="cblFases_SelectedIndexChanged" />
<telerik:RadComboBox ID="cblEmployees" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" AutoPostBack="true"
OnSelectedIndexChanged="cblEmployees_SelectedIndexChanged" />

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        for (int i = 0; i < 5; i++)
        {
            cblFases.Items.Add(new RadComboBoxItem { Text = "F" + i.ToString(), Value = "V" + i.ToString() });
        }
 
        for (int i = 0; i < 10; i++)
        {
            cblEmployees.Items.Add(new RadComboBoxItem { Text = "Employ" + i.ToString(), Value = "Val" + i.ToString() });
        }
    }
}
 
protected void cblFases_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
}
 
protected void cblEmployees_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
}

I was hoping to be able to attach a project, but I'm not sure if that's possible, so here's the project on mediafire:
http://www.mediafire.com/?g7ynn4a2l3bydid
Or here: http://www.mirrorcreator.com/files/0NSRKAED/

I'm working with version 2011.3.1305.40 of Telerik.Web.UI
Is this a bug or just an error from my side?

Greetings, Brian
Brian
Top achievements
Rank 1
 answered on 17 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?