Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
121 views
I'm experiencing an issue where the formatting looks correct in the MOSSRadEditor and when I save and edit the list item again the content appears as regular text.

the SharePoint list field is set to Enhanced Rich Text.

-tom daly


Thomas
Top achievements
Rank 1
 answered on 15 Dec 2009
4 answers
197 views

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadFormDecoratorTestApp._Default" %> 
<%@ 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> 
    <style type="text/css"> 
html, body, form   
{   
    height: 100%;   
    margin: 0px;   
    padding: 0px;   
    overflow: hidden;   
}   
 
body { 
    background-color: #F2ECCA; 
    font-family: Tahoma, Verdana, Arial, Sans-Serif; 
    font-size: 14px; 
} 
 
#headpart { 
    background-color: ivory; 
} 
 
#rightcontent { 
    margin-left:0px; 
    margin-right:0px; 
    margin-bottom:5px; 
    margin-top:0px; 
} 
     
#bodypart { 
    padding: 10px; 
} 
 
#rightcontent p { 
    font-size:10px; 
    margin-left:0px; 
} 
 
.ApplyPosition   
{   
    position: relative; 
} 
    </style> 
</head> 
<body onload="setFilterMultiPageHeight();registerScroll();"> 
    <form id="form1" runat="server"> 
        <script type="text/javascript"> 
                        
            function registerScroll(){ 
                getCurrentScrollDiv().onscroll = saveScrollPos; 
            } 
             
            function getCurrentScrollDiv(){ 
                var mpEl = getMPDiv(); 
 
                var mp = $find("<%= RadMultiPage1.ClientID %>"); 
                var pv = mp.get_selectedPageView(); 
                
                var pvpvDiv = pv.get_element(); 
                 
                return pvDiv; 
            } 
             
            function getMPDiv(){ 
                var mp = $find("<%= RadMultiPage1.ClientID %>"); 
                return mp.get_element(); 
            } 
             
            function saveScrollPos(){ 
                document.getElementById("<%= hdnFilterScroll.ClientID %>").value = getCurrentScrollDiv().scrollTop; 
            } 
             
            function setScrollPos(){ 
                getCurrentScrollDiv().scrollTop = document.getElementById("<%= hdnFilterScroll.ClientID %>").value; 
            } 
 
            function resizeFilterPanel(sender, Args){ 
                if (Args.get_oldHeight() != sender.get_height()){ 
                    setFilterMultiPageHeight(); 
                    setScrollPos(); 
                } 
            } 
             
            function handleTabSelected(){ 
                setFilterMultiPageHeight(); 
                registerScroll(); 
            } 
             
            function setFilterMultiPageHeight(){ 
                var pane = $find("<%= RadPane1.ClientID %>"); 
                var fh = document.getElementById('FilterHeader'); 
 
                var panepaneHeight = pane.get_height() - fh.offsetHeight; 
                 
                document.getElementById("<%= hdnFilterHeight.ClientID %>").value = paneHeight; 
                getCurrentScrollDiv().style.height = paneHeight + 'px'; 
                 
                setScrollPos(); 
            }            
        </script> 
        <telerik:RadWindowManager ID="LocalRadWindowManager" runat="server"> 
        </telerik:RadWindowManager> 
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"> 
        </telerik:RadScriptManager> 
        <telerik:RadSplitter ID="NestedSplitter" Width="100%" Height="100%" runat="server" Skin="Outlook" LiveResize="true" 
            OnClientResized="resizeFilterPanel"> 
            <telerik:RadPane ID="LeftPane" runat="server" MinWidth="150" Height="" Index="0" 
                Scrolling="None"> 
                <!-- Place the content of the pane here --> 
                <iframe id="contentFrame" name="contentFrame" height="100%" width="100%" frameborder="0" 
                    src="http://www.google.com" runat="server" /> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Backward" /> 
            <telerik:RadPane ID="RadPane1" CssClass="ApplyPosition" runat="server" Scrolling="None" 
                MinWidth="300" Width="300px"> 
                <!-- Place the content of the pane here --> 
                <asp:HiddenField ID="hdnFilterHeight" runat="server" Value="400" /> 
                    <asp:HiddenField ID="hdnFilterScroll" runat="server" Value="0" /> 
                <asp:Panel ID="rightcontent" runat="server"> 
                    <telerik:RadFormDecorator ID="RadFormDecorator1"  DecoratedControls="All" runat="server" Skin="Web20" /> 
                    <div id="FilterHeader"> 
                        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" 
                            SelectedIndex="0" Skin="Web20" > 
                            <Tabs> 
                                <telerik:RadTab runat="server" Text="Tab1" Selected="True"> 
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Tab2"> 
                                </telerik:RadTab> 
                            </Tabs> 
                        </telerik:RadTabStrip> 
                    </div> 
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" ScrollBars="Auto"> 
                        <telerik:RadPageView ID="RadPageView1" runat="server"> 
                            <asp:RadioButtonList ID="rbl1" runat="server"> 
                                <asp:ListItem Text="blah1"></asp:ListItem> 
                                <asp:ListItem Text="blah2"></asp:ListItem> 
                                <asp:ListItem Text="blah3"></asp:ListItem> 
                                <asp:ListItem Text="blah4"></asp:ListItem> 
                                <asp:ListItem Text="blah5"></asp:ListItem> 
                                <asp:ListItem Text="blah6"></asp:ListItem> 
                                <asp:ListItem Text="blah7"></asp:ListItem> 
                                <asp:ListItem Text="blah8"></asp:ListItem> 
                                <asp:ListItem Text="blah9"></asp:ListItem> 
                                <asp:ListItem Text="blah10"></asp:ListItem> 
                                <asp:ListItem Text="blah11"></asp:ListItem> 
                            </asp:RadioButtonList> 
                            <asp:RadioButtonList ID="RadioButtonList2" runat="server"> 
                                <asp:ListItem Text="blah1"></asp:ListItem> 
                                <asp:ListItem Text="blah2"></asp:ListItem> 
                                <asp:ListItem Text="blah3"></asp:ListItem> 
                                <asp:ListItem Text="blah4"></asp:ListItem> 
                                <asp:ListItem Text="blah5"></asp:ListItem> 
                                <asp:ListItem Text="blah6"></asp:ListItem> 
                                <asp:ListItem Text="blah7"></asp:ListItem> 
                                <asp:ListItem Text="blah8"></asp:ListItem> 
                                <asp:ListItem Text="blah9"></asp:ListItem> 
                                <asp:ListItem Text="blah10"></asp:ListItem> 
                                <asp:ListItem Text="blah11"></asp:ListItem> 
                            </asp:RadioButtonList> 
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server"> 
                                <asp:ListItem Text="blah1"></asp:ListItem> 
                                <asp:ListItem Text="blah2"></asp:ListItem> 
                                <asp:ListItem Text="blah3"></asp:ListItem> 
                                <asp:ListItem Text="blah4"></asp:ListItem> 
                                <asp:ListItem Text="blah5"></asp:ListItem> 
                                <asp:ListItem Text="blah6"></asp:ListItem> 
                                <asp:ListItem Text="blah7"></asp:ListItem> 
                                <asp:ListItem Text="blah8"></asp:ListItem> 
                                <asp:ListItem Text="blah9"></asp:ListItem> 
                                <asp:ListItem Text="blah10"></asp:ListItem> 
                                <asp:ListItem Text="blah11"></asp:ListItem> 
                            </asp:RadioButtonList> 
                            <asp:RadioButtonList ID="RadioButtonList4" runat="server"> 
                                <asp:ListItem Text="blah1"></asp:ListItem> 
                                <asp:ListItem Text="blah2"></asp:ListItem> 
                                <asp:ListItem Text="blah3"></asp:ListItem> 
                                <asp:ListItem Text="blah4"></asp:ListItem> 
                                <asp:ListItem Text="blah5"></asp:ListItem> 
                                <asp:ListItem Text="blah6"></asp:ListItem> 
                                <asp:ListItem Text="blah7"></asp:ListItem> 
                                <asp:ListItem Text="blah8"></asp:ListItem> 
                                <asp:ListItem Text="blah9"></asp:ListItem> 
                                <asp:ListItem Text="blah10"></asp:ListItem> 
                                <asp:ListItem Text="blah11"></asp:ListItem> 
                            </asp:RadioButtonList> 
                            <asp:RadioButtonList ID="RadioButtonList3" runat="server"> 
                                <asp:ListItem Text="blah1"></asp:ListItem> 
                                <asp:ListItem Text="blah2"></asp:ListItem> 
                                <asp:ListItem Text="blah3"></asp:ListItem> 
                                <asp:ListItem Text="blah4"></asp:ListItem> 
                                <asp:ListItem Text="blah5"></asp:ListItem> 
                                <asp:ListItem Text="blah6"></asp:ListItem> 
                                <asp:ListItem Text="blah7"></asp:ListItem> 
                                <asp:ListItem Text="blah8"></asp:ListItem> 
                                <asp:ListItem Text="blah9"></asp:ListItem> 
                                <asp:ListItem Text="blah10"></asp:ListItem> 
                                <asp:ListItem Text="blah11"></asp:ListItem> 
                                <asp:ListItem Text="Click this one!"></asp:ListItem> 
                            </asp:RadioButtonList> 
                        </telerik:RadPageView> 
                        <telerik:RadPageView ID="RadPageView2" runat="server"> 
                            blah 
                        </telerik:RadPageView> 
                    </telerik:RadMultiPage> 
                </asp:Panel> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 

This works great in IE, but if you try in firefox 3.5.4 and click the bottom radio button titled, "Click this one!", you will notice the pane gets all messed up, with the content scrolling out of view and not able to get it back.  If I remove the RadFormDecorator it works fine.  I am already having to do some funky javascript to get the scroll bars working, but it appears in conjunction with the RadFormDecorator it seems to be messing things up.

Thanks
mzn developer
Top achievements
Rank 1
 answered on 15 Dec 2009
7 answers
184 views
Hi I am trying to implement a custom FileSystemContentProvider to access images from our db for the image picker.

I'm looking for example code.

I've seen various links to 
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/DBFileBrowserContentProvider/DefaultCS.aspx

but when I go there I can find no example code.



Fiko
Telerik team
 answered on 15 Dec 2009
1 answer
171 views
I am using 2009Q3 and when I drag a TextBox control onto a page I am unable to change the Width using the Properties panel. I can type in a value then when I tab or click out, the value disappears and the width of the TextBox does not change. Any ideas?
Hus Damen
Top achievements
Rank 1
 answered on 15 Dec 2009
0 answers
166 views
NEVER MIND - TURNED OUT TO BE SOMETHING ELSE.

I have our radupload control on an ascx and it used to work.  We consolidated projects and now RadUpload isn't working.  We can drop the control on the ascx in design and code it just fine, but if you run the app we get a javascript error:

'undefined' is null or not an object

Any help you could provide would be appreciated.

Meredith


Meredith Klinger
Top achievements
Rank 1
 asked on 15 Dec 2009
15 answers
219 views
Hi,

I'm rather new to this Telerik stuff, so please forgive me if I'm missing something obvious...

I have a "main page" with the RadSplitter and some panels, including a RadPanelBar for page navigation and a RadSkinManager for selecting the skin. From this PanelBar I'm opening RadWindows which will show the content pages (.aspx) inside the generated IFrame. Now if I change the skin with the SkinManager, how to I promote this change to the content pages in the RadWindows?

Thanks!
Jens
Top achievements
Rank 1
 answered on 15 Dec 2009
2 answers
566 views
I need to add a Template Column containing an image to a grid programmatically at Page Load time.  I have successfully added the column in the .aspx file, but do not know how to add the column in the code-behind file (using visual basic).  Here's the code for the .aspx file that I want to add:
        <MasterTableView NoMasterRecordsText="" AutoGenerateColumns="False" > 
            <Columns> 
                <telerik:GridTemplateColumn UniqueName="ImageFile" Groupable="False">  
                    <HeaderStyle ></HeaderStyle>  
                    <ItemStyle HorizontalAlign="Center" ></ItemStyle>  
                    <ItemTemplate> 
                        <asp:Image ID="ImportantImage" Height="40px" BorderWidth="0px" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImagePath") %>' AlternateText="Picture" runat="server" />                                          
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
 
Can anyone tell me how to add this same column in the Page Load event in the code behind file?  I have added data bound columns and hyperlinks (see code below), but don't know how to define the template column programmatically.
            hypercolumn = New GridHyperLinkColumn  
            Me.RadGrid1.Columns.Add(hypercolumn)  
            hypercolumn.HeaderText = "Edit Rec." 
            hypercolumn.Text = "Edit" 
            hypercolumn.DataNavigateUrlFields = New String() {"Item"}  
            hypercolumn.DataNavigateUrlFormatString = "~/ItemEdit.aspx?K={0}" 
            hypercolumn.UniqueName = "EditRec" 
            hypercolumn = Nothing 
 
Thanks in advance for any help!

Lynn
Lynn
Top achievements
Rank 2
 answered on 15 Dec 2009
2 answers
151 views
I need some assistance with the .aspx menu control, please and thank you.  I am using the standard menu item tooltips (not the Rad Tooltip control) with dynamically added menu items.  When the menus display, the tooltip text boxes cover the undelying menu items preventing the user from seeing the menu items.  See attached screen capture graphic.

I would imagine there is some method of controlling the placement of the tooltip, but after quite a bit of reading on your site, I haven't been able to find anything that describes this.  I'm probably just stupid, but could someone tell me how to move the menu items tooltip display?

Thanks very much in advance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 15 Dec 2009
7 answers
250 views
I'm trying to create "several tabled at a level" using a NestedViewTemplate; this is a permissions scenario where a User Entity has permissions to several other entity types, accounts, pages, views, etc.

The problem I'm having is that I want to have a command item template for each table at a level that will be a grant permissions link for that specific user entity.

This scenario seems problematic in that the ItemCreated event runs before the ItemDataBound event; is there some way around this?

Initially I was using DetailTables for this function but the templated display looks much better than the detail tables model.

Thanks,
Phil
Phil DeVeau
Top achievements
Rank 1
 answered on 15 Dec 2009
1 answer
66 views
We're using a RadEditor in a asp.net site which saves the content with html formating in the database. I need to do some printing operation, so I need the content in RadEditor Rich Text formating aswell. Does RadEditor have som methods for converting its content to Rich Text that I've missed? Or any other way I might solve this problem?

I know I can use a IE Object to parse the html file and print it that way but I wouldn't be able to set printing properties like papersize, pagesize, and printer, which I can do with the PrintDocument class to .NET. PrintDocument class should support printing rich text but not html sadly.

Cheers,
Arne
Rumen
Telerik team
 answered on 15 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?