Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
Hi,
Is there any way to open the RadEditor in Popup in moss 2007.

I am using RadEditor's Licence version but not getting any property in configFile.xml.

This is the client's requirement to show the RadEditor in popup window. So early response is appreciated.


Thanks
Rajesh Soni
Stanimir
Telerik team
 answered on 05 Oct 2010
1 answer
127 views
I have an application that has multi-line text box.  When I press the Insert button, it opens a RadWindow with the Rad Editor.  I want save the database and send the text back to the page with the text box.

Main Page
  
<head runat="server">
    <title>Testing</title>
   <link href="StyleSheet1.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript">
       
     function OnClientClose(radWindow1, args) {
         var arg = args.get_argument();
         var text = document.getElementById('txtConclusion');
         text.value = arg.result;
           
     }
     function openWin() {
         var oWnd = radopen("insertcomments.aspx", "RadWindow2");
     }
  
     </script>
  
  
  
  
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="Webform3.aspx" 
            ReloadOnShow="True" Top="60px" onclientclose="OnClientClose">
                </telerik:RadWindow>
                <telerik:RadWindow ID="RadWindow2" runat="server" NavigateUrl="insertcomments.aspx" 
             ReloadOnShow="True" Top="60px" onclientclose="OnClientClose" Width="660" Height="500px">
                </telerik:RadWindow>
        </Windows>
        </telerik:RadWindowManager>
        <table >
            <tr valign="top">
                <td>
                    <table >
                    <thead>
                        <tr>
                            <th scope="col">Conclusion</th>
                        </tr>
                        </thead>
                        <tr>
                            <td>    
                                <asp:TextBox ID="txtConclusion" runat="server" Height="249px" 
    style="margin-bottom: 72px" TextMode="MultiLine" Width="138px" ReadOnly="True"></asp:TextBox>
                       <br /> 
                              <button onclick="openWin(); return false;">Insert</button>
  
                                          </td>
                        </tr>
                          
                    </table></td>
                <td>
                   <table class="section">
                    <thead>
                        <tr>
                            <th scope="col">Current News</th>
                        </tr>
                        </thead>
                        <tr>
                            <td><asp:TextBox ID="txtCurrentNews" runat="server" Height="160px" 
    style="margin-bottom: 72px" TextMode="MultiLine" Width="138px"></asp:TextBox>
                            </td>
                        </tr>
                    </table></td>
            </tr>
            <tr>
                <td>
                     </td>
                <td>
                     </td>
            </tr>
        </table>
    </div>
      
  
  
  
    </form>
</body>
</html>
  
Popup Page
Pop Page
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
   <title>Investment Web Site</title>
   <link href="StyleSheet1.css" rel="stylesheet" type="text/css" />
     
   <script type="text/javascript">
         function GetRadWindow() {
             var oWindow = null;
             if (window.radWindow)
              oWindow = window.radWindow;
          else if (window.frameElement.radWindow)
              oWindow = window.frameElement.radWindow;
             return oWindow;
         }
       function CloseWindow() {
             var currentWindow = GetRadWindow();
             var oarg = new Object();
             oarg.result = document.getElementById("RadEditor1").content;
              //var result = document.getElementById("RadioButtonList1_0").checked;
             //currentWindow.argument = arg;
             currentWindow.Close(oarg);
         }
          
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
          
        <br />
            <table style="width: 680px" cellspacing="3" cellpadding="5">
               <tr>
                   <td style="width: 100%"><asp:Image ID="imgTitle" runat="server" />
                   <p><asp:Label ID="lblMessage" runat="server" Visible = "false" CssClass ="red" ></asp:Label></p></td>
               </tr>
               <tr>
                   <td >
                       <telerik:RadEditor ID="RadEditor1" Runat="server" ToolsFile="~/BasicTools.xml" Width="600px">
                           <Content>
                          </Content>
                       </telerik:RadEditor>
                   </td>
               </tr>
               <tr>
                   <td style="width: 100%; margin-top: 6px;" align="center"></td>
               </tr>
          </table>
      <div style="margin-left: 450px"
                                            <asp:ImageButton ID="imgAddComment" runat="server" 
                                                ImageUrl="~/images/btnAddComment.gif" />
                                                </div>
      </div>
      
    </form>
</body>
</html>
  
  
Code Behind
  
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
          
    End Sub
  
        Protected Sub imgAddComment_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgAddComment.Click
        Dim ReturnMsg As String = ""
  
        Try
            If RadEditor1.Content <> "" Then
                If LCase(RadEditor1.Content).EndsWith("<br />") Then
                    RadEditor1.Content = RadEditor1.Content.Substring(0, Len(RadEditor1.Content) - 6)
                End If
  
                'ReturnMsg = InvestSupProviders.InsertConclusionComment(Session("CompanyID"), "", Session("UserSession").ID_User, Now, RadEditor1.Content)
                ReturnMsg = InvestSupProviders.InsertConclusionComment(21, "", 5, Now, RadEditor1.Content)
  
                If ReturnMsg = "" Then
                    lblMessage.Text = "Message added"
                    lblMessage.Visible = True
                    'RadEditor1.Content = "  "
                Else
                    lblMessage.Text = ReturnMsg
                    lblMessage.Visible = True
                End If
            Else
                lblMessage.Text = "There is no Content"
                lblMessage.Visible = True
            End If
  
        Catch ex As Exception
            'Page_Error(ex, "Page_Load")
        End Try
    End Sub
End Class
Dobromir
Telerik team
 answered on 05 Oct 2010
3 answers
68 views
Running in SharePoint 2010.

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" OnClientTabSelected="ClientTabSelectedHandler"
                SelectedIndex="1">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Map" PageViewID="radPageMapView" PostBack="false" Selected="True">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="List" PageViewID="radPageListView" PostBack="false">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>

.RadTabStripTop_Default .rtsLink
    {
        background: url(/SiteAssets/images/Navigation/Sub1/sub1_back_off.png) top right !important;
    }
    .RadTabStripTop_Default .rtsSelected
    {
        background: url(/SiteAssets/images/Navigation/Sub1/sub1_back_on.png) top right !important;
    }


Works great in IE8 and Chrome. Neither background image display in IE7.
Yana
Telerik team
 answered on 05 Oct 2010
5 answers
378 views
Hi,
After I upgraded to version 2009_2_826_dev_hotfix,
my pages started to show the error for tabstrip and other controls as well:

            BC30002: Type 'Telerik.Web.UI.RadTabStrip' is not defined.

The error will show randomly and sometimes it will load properly.
It was working fine before the upgrade. Is there something I can do?
Peter
Telerik team
 answered on 05 Oct 2010
9 answers
319 views
I have a set of RadDocks with the handle set to none and using a custom handle.  When one of these docks is dropped into an empty RadDockZone there is no dotted line shown for the Drop Zone.

I noticed this behavior on your online examples as well:
to reproduce, empty a dock zone and then drag a RadDock into the emptied zone, you will notice that no indication of the drop zone is visible.

Is there a way to force the dotted border for the drop zone to show while dragging on top of the zone?

Thank you.

Fernando Mayorga
Pero
Telerik team
 answered on 05 Oct 2010
1 answer
114 views
Hello,

The following bug occurs only in the first time ever you enter the rad editor. In order to reproduce it, you need to clear the internet temporary files in the browser and then enter the page.

The bug is simple: Create a wizard. Put the editor in the second step of a wizard and put the wizard inside UpdatePanel. When you click next to move from the first step to the second step (where the editor is), the editor width becomes huge and the tool buttons are spread all over it.
If you try do it again without clearing the temporary files cache, the editor is fine.

Any ideas to solve it will be appreciated (I'm using 2010 SP1).

The code:
<%@ Page Language="VB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  
<script runat="server">
</script>
  
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
  <asp:ScriptManager ID="ScriptManager1" runat="server" />
  <asp:UpdatePanel runat="server">
   <ContentTemplate>
    <asp:Wizard runat="server" ID="w" DisplaySideBar="False" DisplayCancelButton="True" >
        <WizardSteps>
            <asp:WizardStep Title="Step 1" ID="WizardStep1" runat="server">
                    step 1
            </asp:WizardStep>
            <asp:WizardStep Title="Step 2" ID="WizardStep2" runat="server">
                    step 2
                    <telerik:radeditor runat="server">
                        <Content>
                            Sample Content 
                        </Content>
                    </telerik:radeditor>
            </asp:WizardStep>
            <asp:WizardStep Title="Step 3" ID="WizardStep3" runat="server">
                    step 3
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
   </ContentTemplate>
  </asp:UpdatePanel>
</form>
</body>
</html>

Rumen
Telerik team
 answered on 05 Oct 2010
1 answer
169 views
We are using Telerik for ASP.Net Ajax Q1 2008.

I have the following code:

<telerik:RadEditor ID="RadEditorIncompleteComment" runat="server" Width="550px" Height="200px" EditModes="Design" Skin="Outlook" ToolbarMode="ShowOnFocus" EnableResize="False">
 <Tools>
   <telerik:EditorToolGroup>
      <telerik:EditorTool Name="Bold" />
      <telerik:EditorTool Name="Italic" />
      <telerik:EditorTool Name="Underline" />
      <telerik:EditorTool Name="AjaxSpellCheck" />
    </telerik:EditorToolGroup>
  </Tools>
</telerik:RadEditor>

When the page is loaded and I click in the RadEditor editing space the toolbar does pop up but it comes up with a minimal width and looks like a thick line. All the tools are hidden.  I can drag the right boundary of this thick line and make the tools visible but that's not user-friendly.

Strangely, the first time I used the Rad Editor, a few days ago, it and its toolbar worked perfectly but I found that recommended script for making the Editor look like a textbox was throwing off other code on this page so I unchecked it all out and rebuilt the Rad Editor, resulting in the toolbar issue described above.  Does the script control the appearance of the toolbar?

My version of the Rad Editor control does not appear to have a property for controlling toolbar size.

Anyone have any thoughts on this or a recommendation?   Thanking you in advance...
Rumen
Telerik team
 answered on 05 Oct 2010
4 answers
1.2K+ views
Hello

With the latest internal build my Windows 2008 Server Machine is displaying following error. Surprisingly the error does not show on my development machine Windows 7 with VS 2010 Pro Beta 2. This error did not show up with the internal build before the latest one, it did show up with the 2010 Q1 though. I am not sure what is going on here. I did not want to downgrade to previous internal build because that causes RadCombo to have 2 drop down arrows instead of one as I noticed on one other forum posting as well. Which has been fixed in this build.

Here is an overall view.

2010-1-309 Both Server and Development Machines Show Error, RadCombo has 2 drop down arrows problem
2010-1-316 No error on either machine, RadCombo has 2 drop down arrows problem
2010-1-325 Error on Server but not on Development Machine, RadCombo problem fixed

Any insight would be greatly appreciated.

Thanks
Imran

 

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request.
Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Cannot create an object of type 'System.Type' from its string representation
'System.Decimal' for the 'DataType' property.

Source Error:

Line 881:                                            </td>
Line 882:                                            <td>
Line 883: <telerik:RadNumericTextBox ID="RadNumericTextBoxType" runat="server" DbValue='<%# Bind( "HoursWorked") %>'
Line 884: DataType="System.Decimal"> Line 885: </telerik:RadNumericTextBox>

Source File: /DesktopModules/PO/POEdit.aspx    Line: 883


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3601 





Pavel
Telerik team
 answered on 05 Oct 2010
2 answers
293 views
Hi EveryBody,

                  I have a Radgrid control on my .aspx page which has ten  telerik:GridTemplateColumn's.
                  I had set the visible property of all the ten columns to false.
                  Based on some conditions I want to make the columns visible and invisible.
                  I want to make some columns visible at a time and some columns at some other time in some case i'll show only one column.

                 How to do this visibility operation for telerik:GridTemplateColumn through c#.
                 Is it possible. If So, Anyone Please help me achieve this.

Thank you,
Anto.

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 05 Oct 2010
2 answers
171 views
Hello telerik team.

In some of our projects, we implement the extension from DelphicSage featured on this blog: http://www.delphicsage.com/home/blog.aspx?d=545 to enhance the aesthetics and usability of our websites. However, on one project we have used the Catcha control and noticed that it causes some sort of "conflict" with the extension and hinders it from running properly.

What could be done about this? Thanks much.
jkregala
Top achievements
Rank 2
 answered on 05 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?