Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
89 views
On our webpage we have RadEditor control. RadEditor contains RealFontSize dropdown.
Problem:

<td align="center" style="width: 98%;"><img alt="" style="border: 0px solid;" src="/Images/1fc47641-aa90-466b-bcab-1df6b0a0bf5d.gif" />                    <span style="font-family: arial black; font-size: 18px;"><br />
            <br />
            Company Name </span></td>

Browser: IE 8
1. User selects text "Name"
Text in fontsize dropdown - "4"
2.User changes font size to 18px.
Text in dropdown changes to 18px.

In lower rows of that table there is different problem. I select text in a cell - fontsize combo says "2". I'm changing the value - font size changes, the value in combo remains the same ("2").  But what's more interesting - when i select text in more than one cell - the fontsize combo shows value in points (!) - 9pt. When i change the value - fontsize changes, the text value of combo stays the same. In FF4 it acts a little better. We would like to have one type of measure unit. It's not so important to have in every browser the same unit. In FF we have pixels and it's ok. But we can't have 3 types of units in IE8, because it's confusing for our clients. I can deliver html content of radeditor if that's necessary.
Rumen
Telerik team
 answered on 10 May 2011
1 answer
121 views
Hi,

Since the latest release (Q1 sp1) we have sometimes the following error:

Only items of type Telerik.Web.UI.IRadToolBarButton can initiate postbacks


We use just a toolbar, static populated  and no ajaxmanager on that page.

Thanks in advance,
Koen
Helen
Telerik team
 answered on 10 May 2011
5 answers
152 views
Hi,

I am using a sql dataset and binding to the scheduler fine including several appointments that recur. However, on more than one occasion, I have used the recurrence editor to set a weekly or monthly event and I get

A circular reference was detected while serializing an object of type 'System.Data.DataView'.



The specific item where recurrence was just set is this

ID 210
Subject 'whatever'
Description 'whatever'
Start 2010-07-06 07:00:00.000
End 2010-07-06 08:00:00.000
RecurrenceRule DTSTART:20100706T070000Z  DTEND:20100706T080000Z  RRULE:FREQ=WEEKLY;UNTIL=20110701T000000Z;INTERVAL=

If I clear out the recurrence rule, all is well.

In the recurrence editor, am I skipping/not setting something properly? I edited the entire series, specified weekly recurrence on Tuesday, and set the end by to June 30 2011 and saved. after the save, the calendar displays fine. It is when I close the browser and revisit this same data, that I get the error, i.e. on initial binding. Any help appreciated.
Veronica
Telerik team
 answered on 10 May 2011
1 answer
72 views
Hi Friends,

I want to display lots of data in RadGrid in which there will be some child controls in the grid which are having some events.
My point is here.. with this huge data if I call those events from server side it will definitely takes some time. I want a solution to
reduce the time using any client side techniques.
How to call events using Javascript client side techniques?
If anyone of you know help please help me in this connection.

Thanking you,
Bharath
Princy
Top achievements
Rank 2
 answered on 10 May 2011
1 answer
221 views
How do you use RadSyncUpload with MVC? Do you have any example code that I can look at? I took a look at the images uploader demo, but I'm not sure how to apply that to MVC.
Sebastian
Telerik team
 answered on 10 May 2011
1 answer
360 views
I would like to create a RadMaskedTextBox for Date of Birth Entry.  However, if I simply use a mask of ##/##/####, this will allow values which are potentially invalid numbers.  Is there a mask that I can use for a Date of Birth entry like <1..12>/<1..31>/<1920..DateTime.Now.Year>?

Thanks.  
Sebastian
Telerik team
 answered on 10 May 2011
1 answer
87 views
in  command one or more check box are checked
i check going to insert the record
i fill the record first time. that record only stay for last time it's self .
how i solve this
which record selected that record going to saved but one condition
that already check in and  save .


select a.Contract_Description from Asset_Service_Contracts a, Asset_Service_Contracts b " +
                                             " where a.Contract_AssetID is null and a.Contract_Description = '" + name + "' and " +
                                             " a.Contract_Description=b.Contract_Description



else if (e.CommandName == "RowClick")
            {
                DataTable dt1 = new DataTable();
                DataTable dt2 = new DataTable();

                GridDataItem item = (GridDataItem)e.Item;
                ContractID = item["ContractID"].Text;


                foreach (GridDataItem item1 in RadGrid_ServiceContracts.SelectedItems) // Loop through each selected items
                {
                    Response.Write(item1["ContractID"].Text.ToString());  // Where ID is the ColumnUniqueName                     
                    Response.Write(item1["Contract_Description"].Text.ToString());  // Where ID is the ColumnUniqueName       
                    string ID = item1["ContractID"].Text;
                    string name = item1["Contract_Description"].Text;                    
                    try
                    {
                        string selectQuery = " select a.Contract_Description from Asset_Service_Contracts a, Asset_Service_Contracts b " +
                                             " where a.Contract_AssetID is null and a.Contract_Description = '" + name + "' and " +
                                             " a.Contract_Description=b.Contract_Description ";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, sqlconn);
                        sqladp.Fill(dt1);
                        int i = dt1.Rows.Count;
                        dt1 = null;
                        if (i == 0)
                        {

                        }
                    }
                    catch (Exception ex)
                    {
                        RadGrid_ServiceContracts.Controls.Add(new LiteralControl("Unable to delete Id. Reason: " + ex.Message));
                        e.Canceled = true;
                    }
                }
            }


thanks,
mohamed
mohamed
Top achievements
Rank 1
 answered on 10 May 2011
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
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?