Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
196 views
Hi,

I have this issue. I have a table1 with column Info (Ntext).
And aspx page with RAD EDITOR.

I am using UPDATE operation with N for special character and RADEDITOR.TEXT property, which will save entered text to my table.

But I want  to load that saved data back to RAD EDITOR on other page, but to keep the formatting, because after saving with
RADEDITOR.TEXT property the text displayed on RADEDITOR is in flat format - all loaded text from database is appear on one row only?

I don't want to use here radeditor.content property, because i am using that column after that to generate some reports on word and i will need data in this way for generating special symbols on word, and i need to use RADEDITOR.TEXT property instead of .CONTENT property. But after that i have loading issue on radeditor- evrtng is appearing on one row?
How can i avoid this?

Is it possible using RadEditor.Content property to save ™ as ™ in datatable instead of &trade?

Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 10 May 2011
2 answers
251 views
I have a few rad panels on the same page, and i keep getting the same errors when i try and update the panels. I am attaching my solution for your review.

Here is the code for the page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

<!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>Newstream Shopfloor Realtime Web</title>
    <link rel="stylesheet" type="text/css" href="screen.css" />
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <!--
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    !-->
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>

    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Office2007">
    </telerik:RadSkinManager>
    <div id="wrapper">
            <div>
                <div style="float: left;"><img src="images/nse.jpg" alt="" /></div>
                <div style="float: inherit;"><h3>NSE RealTime Web</h3></div>
            </div>
            <hr />
            <br />
            <br />

            <div id="container">
            <table width="100%">                    
                    <tr>
                        <td valign="top" width="33%">
                            <div>
                                <fieldset class="login">
                                <legend>Part# / Build# Search</legend>
                                <div>
                                    <label for="partnum">Part# or Build#</label>
                                    <asp:TextBox ID="txPart" runat="server"></asp:TextBox>
                                </div>
                                <div>
                                    <label for="partnum"></label>
                                    <asp:TextBox ID="TextBox1" runat="server" Visible="false"></asp:TextBox>
                                </div>
                                <div>
                                    <label for="partnum"></label>
                                    <asp:Button ID="btSearch" runat="server" Text="Search" onclick="btSearch_Click" />
                                </div>
                                <div>
                                    <label for="partnum"></label>
                                    <asp:Label ID="lbSearch" runat="server"></asp:Label>
                                </div>
                            </fieldset>
                            </div>
                        </td>
                        <td valign="top" width="33%">
                            <div>
                                <fieldset class="login">
                                <legend>W/O Clock In/Out</legend>
                                <div>
                                    <label for="partnum">Build Number</label>
                                    <asp:TextBox ID="txBuild" runat="server"></asp:TextBox>
                                </div>
                                <div>
                                    <label for="partnum">Clock Number</label>
                                    <asp:TextBox ID="txClock" runat="server"></asp:TextBox>
                                </div>
                                <div>
                                    <label for="partnum"></label>
                                    <asp:Button ID="btClock" runat="server" Text="Clock In/Out"
                                        onclick="btClock_Click" />
                                        <br />
                                    <asp:Label ID="lbClock" runat="server"></asp:Label>
                                </div>
                                </fieldset>
                            </div>
                        </td>
                        <td valign="top" width="33%">
                            <div>
                                <fieldset class="login">
                                <legend>Messages</legend>
                                <div>
                                <telerik:RadAjaxLoadingPanel ID="lpmessages" runat="server" Skin="Office2007">
                                    <div>Information loading Please Wait ....</div>
                                </telerik:RadAjaxLoadingPanel>
                                <telerik:RadAjaxPanel ID="pnlmessages" runat="server" LoadingPanelID="lpmessages" RenderMode="Inline" EnableAJAX="true" EnableViewState=true>
                                    <telerik:RadGrid ID="rgmessages" runat="server" Skin="Office2007" GridLines="None" />
                                    <asp:Label ID="lbmessages" runat="server"></asp:Label>
                                    <telerik:RadButton ID="btMessageUpdate" AutoPostBack="true" runat="server" Text="Check For Messages" OnClick="btMessageUpdate_Click">
                                    </telerik:RadButton>
                                </telerik:RadAjaxPanel>
                                </div>
                                </fieldset>
                            </div>
                        </td>
                    </tr>
                </table>
                <telerik:RadAjaxLoadingPanel ID="lp1" runat="server" Skin="Office2007" DefaultButton="btSearch">
                    <div>Information loading Please Wait ....</div>
                    </telerik:RadAjaxLoadingPanel>
                   <telerik:RadAjaxPanel ID="p1" runat="server" Width="850px" Height="650px" RenderMode="Block" EnableAJAX="true" EnableHistory="true" Visible="False">

                    <div>                
                    <table width="100%">
                      <tr>
                        <td>
                            <telerik:RadGrid ID="gridInformation" runat="server" Skin="Office2007" GridLines="None" Visible="false">
                            </telerik:RadGrid>
                            <asp:Label ID="lbInfo" runat="server"></asp:Label>
                        </td>
                      </tr>
                    </table>
                    </div>
                <div>
                    <telerik:RadTabStrip ID="ts1" runat="server" Skin="Office2007"
                        MultiPageID="mp1" SelectedIndex="0" >

                        <Tabs>
                            <telerik:RadTab runat="server" Text="BOM">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Work Instructions">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Build Schedule">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Inventory Information">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Open Orders" Selected="True">
                            </telerik:RadTab>
                        </Tabs>

                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="mp1" runat="server" SelectedIndex="0">
                        <telerik:RadPageView ID="pv1" runat="server">
                            <telerik:RadGrid ID="gridbom" runat="server" Skin="Office2007" GridLines="None" />
                            <asp:Label ID="lbBOM" runat="server"></asp:Label>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pv2" runat="server">
                            <p><asp:Label ID="lblWI" runat="server"></asp:Label></p>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pv3" runat="server">
                            <telerik:RadAjaxLoadingPanel ID="bslp" runat="server" Skin="Office2007">
                            </telerik:RadAjaxLoadingPanel>
                            <telerik:RadAjaxPanel ID="bspnl" runat="server" LoadingPanelID="bslp" RenderMode="Inline">
                            <asp:Timer ID="Timer1" runat="server" Interval="60000" ontick="Timer1_Tick" Enabled="false" />
                            <telerik:RadGrid ID="gridbs" runat="server" Skin="Office2007" GridLines="None" />
                            <asp:Label ID="lbBS" runat="server"></asp:Label>
                            </telerik:RadAjaxPanel>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="pv4" runat="server">
                            <asp:Label ID="Label1" runat="server">Not Yet Implemented</asp:Label>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView1" runat="server">
                        <telerik:RadGrid ID="gridOrders" runat="server" Skin="Office2007" GridLines="None"
                                AutoGenerateColumns="False" ShowFooter="true">
                            <MasterTableView>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Order#" HeaderText="ORDER#" />
                                    <telerik:GridBoundColumn Aggregate="Sum" DataField="QtyOrderd" HeaderText="QTY ORDERED" FooterText="Total Ordered: " />
                                    <telerik:GridBoundColumn DataField="OrderDate" HeaderText="OrderDate" DataFormatString="{0:MM/dd/yyyy}"  />
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                            <asp:Label ID="lbOrders" runat="server"></asp:Label>
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </div>
                </telerik:RadAjaxPanel>
            </div>
        </div>
    </form>
</body>
</html>

This is the error that is being returned:

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 405
Line: 6
Char: 84093
Code: 0
URI: http://localhost/ShopfloorNew/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2
Tsvetina
Telerik team
 answered on 10 May 2011
3 answers
258 views
Hi,

 Am using radgrid.I need to show more than 5 fields in the UI.so I want to warp the text of some fields like email,name etc

i have tried by using
HeaderStyle-Wrap="true" DataFormatString="<br>{0}</br>" HeaderStyle-Width ="40px"  itemStyle-Width="80px"  ItemStyle-Wrap="true"

and also used

 <table  style="table-layout:fixed; overflow:hidden">

But the contents are not wrapped. Anyone can help me to solve this isue

Thanks for your help

Dhana
Pooya
Top achievements
Rank 1
 answered on 10 May 2011
1 answer
63 views
Can you implement animations for the Ended (or ending) methods please?

I've done this so many times myself I really would like to save some time\code in the future :)

So on callback completed, have the resulting string rendered with a jQuery fade or slide animation after it's rendered in the panel so it doesn't just "pop" in

So again, I don't need the code to do this, I just would like a PITS item to get it added for a future release please :)
Pero
Telerik team
 answered on 10 May 2011
3 answers
35 views
I have a two grids to do drag drop with. One grid contains child view. If I select more than one child items (from different views) and drage them, the destination gets only one item dragged and not other.

  For example, I have products Like this

 Product A
            child 1
            Child 2
Product B
           Child 3
           Child 4

If I select Child 1 and Child 3, and drag them, I only get either Child1 or Child 3, not both.

Is that by design? Or there is something I might be missing? If I select Product A and Product B, both are dropped fine on destinaion grid.

   thanks
   Sameers
Veli
Telerik team
 answered on 10 May 2011
1 answer
105 views
I have looked thorough some info for this editor tools and knowing that ..there is no header and footer section . But I notice that when we print the contents of the editor , print with page no at header section and site info and date at footer section. So is there anyway that we can replace with some text with those info? Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 10 May 2011
1 answer
111 views

I use RadMenu:

<telerik:RadMenu EnableSelection="true" Skin="" OnItemDataBound="SiteMenu_databound" EnableViewState="false"
ID="SiteMenu" DataSourceID="SiteMapDataSource" runat="server">
</telerik:RadMenu>

I tried to reduce my pages' size so I am disabling ViewState on controls. I tried disabling RadMenu's viewstate but it does not work

Here are viewstate size stats:

Control Id    Type    ViewState Size

ctl00$ctl00$ContentPlaceHolder1$SiteMenu Telerik.Web.UI.RadMenu 0
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i0 Telerik.Web.UI.RadMenuItem 300
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i1 Telerik.Web.UI.RadMenuItem 244
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i1$i0 Telerik.Web.UI.RadMenuItem 200
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i1$i1 Telerik.Web.UI.RadMenuItem 184
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2 Telerik.Web.UI.RadMenuItem 244
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i0 Telerik.Web.UI.RadMenuItem 228
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i1 Telerik.Web.UI.RadMenuItem 180
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i2 Telerik.Web.UI.RadMenuItem 208
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i3 Telerik.Web.UI.RadMenuItem 188

You see that RadMenu viewstate is 0 but RadmenuItems not. Why is that?

Veronica
Telerik team
 answered on 10 May 2011
1 answer
84 views
Hello,

I want to change the raddock title runtime from the code behind. It would be dynamic dependeing upon the data from the database.

How is it achievable ? Most of the time docktile will be set from the user control.
Pero
Telerik team
 answered on 10 May 2011
3 answers
76 views
I just read through the Q2 2011 roadmap article, and I was disappointed that Telerik is not planning to improve the filtering features on rad grid.

The lack of a really good filtering capabilitiy, such as found in Excel or Telerik's WPF grid, is the single most glaring drawback of this otherwise excellent control.  I get negative feedback on the subject from users, which prompts me to look elsewhere, e.g. WPF, when developing a data visualization tool.

I know, there is an artcle that shows you how to customize the grid for filtering, and the effect is not bad.  But it is too much work for a feature that ought to be built-in.  If they can make it work in custom code, why can't they just make it a property of the grid?
Tsvetoslav
Telerik team
 answered on 10 May 2011
2 answers
107 views
I want to add a dropdown for tokens to a radeditor.  However, when I do this

<telerik:RadEditor runat="server" ID="BodyEditor" >
                    <Tools>
                        <telerik:EditorToolGroup>
                             <telerik:EditorDropDown Name="Tokens" Text="Tokens">
                             </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                    <Content>
                    </Content>
                </telerik:RadEditor>

the formatting toolbar and others no longer appears.  I only want to add my custom dropdown, not replace the default toolbar.
Rumen
Telerik team
 answered on 10 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?