Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Hello.
I have a problem when I tried to print generated html.
All elements in HTML has top and left attributes and in editor they looks good, but when I tried to print it all pages after first was overlaped.
I attached example pdf (printing result) and screenshot (from two parts) of the editor.
Thanks.

Attached printed pdf
Rumen
Telerik team
 answered on 28 Aug 2012
14 answers
393 views
I've been trying to use radeditor as an email editor and although most of my experience has been smooth I have a couple of issues as below:

a) when using any theme and I have a custom button I cannot get it to display the button normally without a problem with the background. I have added the below to my stylesheet as per the instructions but to no avail:
        .reTool .CRMTemplate<br>        {<br>            background-image: none !important;<br>        }<br>
This is my button definition:
                    <telerik:EditorTool Name="CRMTemplate" ImageUrl="/Images/insertField.png" ShowIcon="false"<br>                        ImageUrlLarge="/Images/insertField.png" Text="Insert CRM Template" Visible="true"<br>                        Enabled="true" ShowText="true" /><br>
The only way I have found to fix this was to add this in my page stylesheet:
        .reButton_text<br>        {<br>            background-image: none !important;<br>        }<br>
I don't know if that's normal behavior or an issue. You can find a sample of the problematic buttons at http://www.dotcy.com.cy/downloads/InvalidButtonBackground.png

b) the second problem I'm facing is with horizontal scrollbars when there is an image in the editor. It appears that automatically the minimum width of the editor becomes the width of the image. Even if I forcefully add a horizontal scrollbar it has no effect. You can find sample images at:
http://www.dotcy.com.cy/downloads/EditorScrollbar1.png and http://www.dotcy.com.cy/downloads/EditorScrollbar2.png

If anyone can help me solve these two issues I'd greatly appreciate it.

It appears issue b) is only occurring with full screen mode but I have to have it at full screen mode. I've been playing with the online demo and got very similar behavior. Please see the 2 attached image files.
Rumen
Telerik team
 answered on 28 Aug 2012
27 answers
830 views
I've got a radGrid that allows in-place editing.   After the user makes changes to the row, and presses the CommandButton.Update button to commit the change, the following error message displays:

Sys.WebForms.PageRequestManagerServerErrorException:  An item with the same key has already been added.

I don't think we were getting this error until we replaced our demo version of Telerik asp.net controls with the purchased version this week. 

Interestingly, the row does in fact get persisted to the database.  However, this error is causing the row to stay in Edit mode.

Anyone else have this problem?  Any suggestions as to what I may be doing wrong?

Thanks!
Eyup
Telerik team
 answered on 28 Aug 2012
4 answers
376 views
If I include jQuery in a RadScriptManager like this (ignore the fact that I'm loading a different version, that just makes the problem easier to spot):

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true">
<CompositeScript>
<Scripts>
    <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" Path="~/SCRIPTs/jquery-1.8.0.min.js" />
</Scripts>
</CompositeScript>
</telerik:RadScriptManager>

And then add a Telerik control to the page:

<telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
</telerik:RadDateTimePicker>

Then if you search among the files loaded (I used search in the Firebug script tab with the multiple files option ticked - search for 'jquery.org') then you'll see that there are two copies of jQuery loaded - the 1.8.0 one in a ScriptResource.axd file and the 1.7.2 one in a Telerik.Web.UI.WebResource.axd file.

If you turn script combining off then only one version of jQuery is loaded, the 1.8.0 one, however you then of course see about 12 separate script requests.

I'd like to use script combining, but I'd like to only load jquery once, how can I do this?
Dev
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
100 views
Hello,

This bug seems to be specific to Chrome. I'm currently using Chrome version 21.0.1180.79 m. RadEditor seems to be hijacking event handling to cause an exception in RadSplitter. The error that I'm getting is "Uncaught TypeError: Cannot read property 'tagName' of null". It's taken me a bit to narrow it down, but the following code reproduces. I'm using Telerik.Web.UI version 2011.3.1115.35

Steps to reproduce this error:
1. Click on the RadEditor to give it focus.
2. Try to slide the RadSplitter

Results: The split bar moves faster than your cursor. See stack trace below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadSplitter ID="pageSplitter" runat="server" LiveResize="True" Height="800px" Width="1200px">
          
            <telerik:RadPane ID="RadPane1" runat="server" Width="250px" MinWidth="250">
                <asp:Panel ID="pnlNavTree" runat="server">                     
                     
                </asp:Panel>                       
            </telerik:RadPane>
       
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" />
       
            <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None">
                <asp:Panel ID="pnlRightPane" runat="server">
                    <telerik:RadEditor runat="server" ID="Editor"></telerik:RadEditor>
                </asp:Panel>
            </telerik:RadPane>
         
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

Stack Trace:
Uncaught TypeError: Cannot read property 'tagName' of null Telerik.Web.UI.WebResource.axd:9418
Telerik.Web.UI.Editor.Selection.getParentElement Telerik.Web.UI.WebResource.axd:9418
a.RadEditor.getSelectedElement Telerik.Web.UI.WebResource.axd:9896
a.RadEditor.getToolValue Telerik.Web.UI.WebResource.axd:9928
Telerik.Web.UI.Editor.DefaultToolAdapter.setToolState Telerik.Web.UI.WebResource.axd:6740
Telerik.Web.UI.Editor.DefaultToolAdapter._onEditorSelectionChange Telerik.Web.UI.WebResource.axd:6891
(anonymous function) Telerik.Web.UI.WebResource.axd:6
(anonymous function) Telerik.Web.UI.WebResource.axd:6
Telerik.Web.UI.RadWebControl.raiseEvent Telerik.Web.UI.WebResource.axd:778
Type.callBaseMethod Telerik.Web.UI.WebResource.axd:6
a.RadEditor.raiseEvent Telerik.Web.UI.WebResource.axd:9661
a.RadEditor.set_html Telerik.Web.UI.WebResource.axd:10229
a.RadEditor.onParentNodeChanged Telerik.Web.UI.WebResource.axd:9884
a.RadEditor.repaint Telerik.Web.UI.WebResource.axd:10489
window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.repaintChildren Telerik.Web.UI.WebResource.axd:96
a.RadPane.set_width Telerik.Web.UI.WebResource.axd:2411
a.RadSplitter._resizeTwoPanesWithDelta Telerik.Web.UI.WebResource.axd:1664
a.RadSplitter._resizeAdjacentPane Telerik.Web.UI.WebResource.axd:1669
a.RadSplitter._resizePanes Telerik.Web.UI.WebResource.axd:2056
a.RadPane.resize Telerik.Web.UI.WebResource.axd:2421
a.RadSplitBar.onDrag Telerik.Web.UI.WebResource.axd:2819
a.ResizeExtender._raiseDragEvent Telerik.Web.UI.WebResource.axd:3526
a.ResizeExtender._resize Telerik.Web.UI.WebResource.axd:3608
a.ResizeExtender._onDocumentMouseMove Telerik.Web.UI.WebResource.axd:3675
(anonymous function)
Rumen
Telerik team
 answered on 28 Aug 2012
1 answer
76 views
Using InputType ="Text" mode it automatically allows adding new entries that don't exist in the datasource.
How do I turn this off?

In the documentation (http://www.telerik.com/help/aspnet-ajax/autocompletebox-items-selection.html) it talks about it being off automatically for InputType="Token", but no help for InputType ="Text" 
.
Ivana
Telerik team
 answered on 28 Aug 2012
2 answers
106 views
Hi, I have a RadGrid bringing data back from the database. When I add a new Item I have several ComboBoxes. The first is populated when the EditForm opens. I next want to bind the next ComboBox with the selected value of the first ComboBox when the selected value changes. How do I do it?

I have another 3 ComboBoxes (not shown yet) that will continue in the same way as each selected value changes.

    <telerik:RadGrid DataSourceID="dsActionList" ID="rdgActions" runat="server" CellSpacing="0"
        GridLines="None" AllowPaging="True" PageSize="10" EnableHeaderContextMenu="True"
        AutoGenerateColumns="False" ShowStatusBar="True">
        <ItemStyle CssClass="ItemStyle" />
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <ClientSettings EnableRowHoverStyle="True">
        </ClientSettings>
        <AlternatingItemStyle CssClass="AlternatingItemStyle" />
        <MasterTableView GridLines="None" CellSpacing="0" runat="server" DataKeyNames="PlanTestActionID"
            CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Action">
            <Columns>
                <telerik:GridTemplateColumn UniqueName="ViewEdit">
                    <ItemTemplate>
                        <asp:LinkButton Text='<%# Bind("ViewEditText") %>' runat="server" ID="btnViewEdit"
                            CommandName="Edit" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn HeaderText="Business Area" UniqueName="BusinessArea" DataField="BusinessAreaDesc">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Plan Description" UniqueName="PlanDescription"
                    DataField="PlanDescription">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Actual Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="ActualDate" DataField="ActualDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Action Title" UniqueName="ActionTitle" DataField="ActionTitle">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Target Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="TargetDate" DataField="TargetDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Action User" UniqueName="ActionUser" DataField="ActionUser">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Originator" UniqueName="Originator" DataField="Originator">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Completed Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="CompletedDate" DataField="CompletedTime">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Approved Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="ApprovedDate" DataField="ApprovedTime">
                </telerik:GridBoundColumn>
                <%--Hide the next 3 checkboxes and Date but give them a default insert value--%>
                <telerik:GridBoundColumn HeaderText="Cancelled Date" DataFormatString="{0:dd MMM yyyy}"
                    UniqueName="CancelledDate" DataField="CancelledDate" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DefaultInsertValue="false" DataField="Cancelled" DataType="System.Boolean"
                    UniqueName="hCancelled" Visible="False">
                </telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn DefaultInsertValue="false" DataField="Completed" DataType="System.Boolean"
                    UniqueName="hCompleted" Visible="False">
                </telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn DefaultInsertValue="false" DataField="Approved" DataType="System.Boolean"
                    UniqueName="hApproved" Visible="False">
                </telerik:GridCheckBoxColumn>
            </Columns>
            <EditFormSettings EditFormType="Template" PopUpSettings-Modal="True">
                <FormStyle BackColor="#E0ECFE"></FormStyle>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
                <FormTemplate>
                    <asp:HiddenField ID="hdnPlanTestActionID" runat="server" Value='<%# Bind("PlanTestActionID") %>' />
                    <asp:HiddenField ID="ViewEdit" runat="server" Value='<%# Bind("ViewEdit") %>' />
                   
                    <table>
                        <tr runat="server" id="trOriginatorDetails">
                            <td>
                                <asp:Label ID="Label34" runat="server" Text="Created By:"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblOriginatorUserID" runat="server" Text='<%# Bind("Originator") %>'></asp:Label>
                            </td>
                            <td width="50px">
                            </td>
                            <td>
                                <asp:Label ID="Label50" runat="server" Text="Create Time:"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblCreateTime" runat="server" Text='<%# Bind("CreateTime", "{0:dd MMM yyyy}") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr runat="server" id="trDropDowns">
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Select Business Area:"></asp:Label><br />
                                <asp:Label ID="Label3" runat="server" Text="Select Business Component:"></asp:Label>
                            </td>
                            <td>
                                <telerik:RadComboBox ID="ddlBusinessArea" runat="server" DataSourceID="dsBusinessAreaList"
                                    DataTextField="BusinessAreaDesc" DataValueField="BusinessAreaID" AppendDataBoundItems="True"
                                    AutoPostBack="True">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="" Value="0" />
                                    </Items>
                                </telerik:RadComboBox>
                                <br />
                                <telerik:RadComboBox ID="ddlBusinessComponent" runat="server" DataSourceID="dsBusinessComponentList"
                                    DataTextField="ProcessDesc" DataValueField="ProcessID" AppendDataBoundItems="True"
                                    AutoPostBack="True">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="" Value="0" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        .
                        .
                        .
                        <tr>
                            <td height="50">
                            </td>
                            <td>
                                <asp:LinkButton ID="btnUpdate" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                                    runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'></asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                    CommandName="Cancel"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
        </MasterTableView><HeaderStyle Font-Bold="True" />
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Outlook">
        </HeaderContextMenu>
    </telerik:RadGrid>

Tom
Top achievements
Rank 1
 answered on 28 Aug 2012
1 answer
120 views
Hi,

I want a RadGrid with expand/collapse functionallity.
When expanding a selected row, I want to display another RadGrid with the same functionallity, but I want to display image or some data (not a table or grid).

I read about hirarchical grids, and I need something like a grid with detailtable that has nestedview template.
Is it possible to do something like this?
Is there an implementation for expand/collapse in DetailTable?
How can I call itemcreated function for the DetailTable?

Is there any example for something like this?

Thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 28 Aug 2012
4 answers
74 views
Hi,
 I've added the spell checker to the tool bar and can see the function working normally except for when adding a word to the dictionary, I get the following error :-

RadSpell error. Server returned error: 403

 

Please, see the help for more details: RadSpell 3.x - Configuration - SpellCheckHandler.

 

/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Spell/Telerik.RadSpellCheckHandler.ashx

 

Forbidden

 

403 FORBIDDEN

 I've seen the same error responded to in the full version, and have set the network service with the relevant write permissions, but I'm still seeing a problem with this. Can you advise?

Thanks,
Jason.

Jason Brownhill
Top achievements
Rank 1
 answered on 28 Aug 2012
3 answers
369 views
Team,

I am removing all data rows of grid from client side.
I wanted to show 
"No records to display."
in grid.
But it does not shows empty row which contains "No records to display".
Please let me know from where I can set this empty row message from clientside?
Following is my code. 
This code works if grid doesn't contain any data but if grid contains the data then it removes the row from the grid but doesn't show
 "No records to display". 

var mastertableview = objgrid.get_masterTableView();
mastertableview.set_dataSource({});
mastertableview.set_virtualItemCount(1);
mastertableview.dataBind();

Regards,
Sampada
Radoslav
Telerik team
 answered on 28 Aug 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?