This is a migrated thread and some comments may be shown as answers.

Why editor now working with toolbarmode=ribbonbar ?

1 Answer 31 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
aykut asked on 19 Jul 2012, 11:01 AM
below code is simple radgrid with editor support.

there's ragdrid, it open pop edit form, inside edit form there's  radeditor... I  isolated problem by removing all other stuff.

 when I write ToolbarMode="RibbonBar" then even edit form window does not shown. when I delete it, it works perfectly. there's no vb code in code file. here's the aspx page:
any suggestions ?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head id="Head1" runat="server">
    <style type="text/css">
            width: 7px;
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <div id="acContainer">
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                var popUp;
                function PopUpShowing(sender, eventArgs) {
                    popUp = eventArgs.get_popUp();
                    var gridWidth = sender.get_element().offsetWidth;
                    var gridHeight = sender.get_element().offsetHeight;
                    var popUpWidth =,"px"));
                    var popUpHeight =,"px"));
           = parseInt(((gridWidth - popUpWidth) / 2) + sender.get_element().offsetLeft).toString() + "px";
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
                AllowPaging="True" AllowSorting="True" CellSpacing="0" Width="1392px">
                <GroupingSettings CaseSensitive="false" />
                    <Selecting CellSelectionMode="None"></Selecting>
                <MasterTableView DataKeyNames="ID" DataSourceID="SqlDataSource1" CommandItemDisplay="Top"
                    <CommandItemSettings ExportToPdfText="Export to PDF" ShowRefreshButton="False"></CommandItemSettings>
                        <HeaderStyle Width="20px"></HeaderStyle>
                        <HeaderStyle Width="20px"></HeaderStyle>
                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" ReadOnly="True"
                            SortExpression="ID" UniqueName="ID" Visible="false">
                        <telerik:GridBoundColumn DataField="guidid" HeaderText="guidid" ReadOnly="True" SortExpression="guidid"
                            UniqueName="guidid" Visible="false">
                        <telerik:GridTemplateColumn DataField="news" DataType="System.String" AllowFiltering="false"
                            HeaderText="news" SortExpression="news" UniqueName="news">
                                <asp:Label ID="newsLabel" runat="server" Text='<%# bind("news")%>'></asp:Label>
                        <telerik:GridEditCommandColumn EditText="edit">
                        <telerik:GridButtonColumn CommandName="Delete" Text="delete" UniqueName="column"
                            ConfirmDialogHeight="200px" ConfirmDialogType="RadWindow" ConfirmDialogWidth="350px"
                            ConfirmText="are you seure ?" ConfirmTitle="confirm">
                    <EditFormSettings EditFormType="Template" PopUpSettings-Width="850px" PopUpSettings-Height="500px">
                        <EditColumn UniqueName="EditCommandColumn1">
                            user edit tex:
                            <telerik:RadEditor ID="txtNews" runat="server" Content='<%# bind("news") %>' Height="287px"

                            <asp:Button ID="Button1" runat="server" Height="26px" Width="81px" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'
                                Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "add", "save") %>' />
                            <asp:Button ID="Button2" runat="server" CausesValidation="False" Text="cancel" CommandName="Cancel"
                                Height="26px" Width="81px" />
                        <PopUpSettings Modal="True" />
                <FilterMenu EnableImageSprites="False">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringNET %>"
            ProviderName="<%$ ConnectionStrings:ConnectionStringNET.ProviderName %>" SelectCommand="SELECT * FROM [newstable]"
            DeleteCommand="DELETE FROM [newstable] WHERE [ID] = @ID" InsertCommand="INSERT INTO [newstable] ([news]) VALUES (@news)"
            UpdateCommand="UPDATE [newstable] SET [news] = @news  WHERE [ID] = @ID">
                <asp:Parameter Name="ID" Type="Int32" />
                <asp:Parameter Name="news" Type="string" />
                <asp:Parameter Name="news" Type="string" />

sql code:
CREATE TABLE [dbo].[newstable](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [news] [nvarchar](500) NULL

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 23 Jul 2012, 05:15 PM

We are aware of this problem and it is already fixed in the latest version of RadControls - you can verify this with the latest internal builds available for download.

In addition, the official release containing this fix (Q2 2012 SP1) is planned to be released later this week.

All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question