RadEditor in GridTemplateColumn

6 posts, 1 answers
  1. SonicImaging
    SonicImaging avatar
    88 posts
    Member since:
    Jan 2007

    Posted 05 May 2008 Link to this post

    Ive been using a radeditor inside a GridTemplateColumn using a EditItemTemplate so I can have full access to all the tools.   This was working fine then all of a sudden The editor inst showing the content of the database and the buttons and edit area do nothing.  there seems to be no events happening for the editor.  the other text columns in the editor work fine and I can update the values fine.  Im using all automatic operations with a linq datasource.

    Any thoughts on how to debug this.  I cant figure out what I changed to make it stop working.  If I toss a radeditor on a single page it works fine so the installation seems to be ok.

    Thanks
        -Keith

    1                 <telerik:GridTemplateColumn HeaderText="Main Content" SortExpression="mainContent" 
    2                     UniqueName="mainContent" Display="false" ForceExtractValue="None"
    3                     <EditItemTemplate> 
    4                         <telerik:RadEditor ID="RE1" runat="server" Content='<%# Bind("mainContent") %>' ToolsFile="~/SI-Admin/Editors/ToolsFile.xml" 
    5                             Height="600" Width="600px" Skin="Telerik"
    6                         </telerik:RadEditor> 
    7                     </EditItemTemplate> 
    8             </telerik:GridTemplateColumn> 

  2. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 05 May 2008 Link to this post

    Does the issue persist if you bind the Text property of the editor instead of its Content property? I learned that one can troubleshoot the automatic operations execution wiring the ItemUpdated/ItemInserted/ItemDeleted events of the grid:

    Document

    Kiara
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. SonicImaging
    SonicImaging avatar
    88 posts
    Member since:
    Jan 2007

    Posted 05 May 2008 Link to this post

    I do have error checking in the ItemCreated, updated and inserted, but the issue is even before any automatic operations are used.

    As soon as I hit the edit button for the record the other fields show and can be edited (just text fields) but the editor shows all the correct tools but no value for the mainContent field in the database.

    I just tried something and removed the bind in the content tag of the radeditor to Content="this is a test" and still that doesn't even show up and the editor doesn't respond to clicking or editing.  Im guessing the binding isnt a issue,  its running the editor inside the grid.

    I have a scriptmanager so everything works fine

    -Keith


  5. Answer
    Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 05 May 2008 Link to this post

    Do you get javascript errors for the editor when loaded? This can make it unresponsive, I had such case a couple of days ago. Fixed it by checking the path to the tools file and the rest of the editor properties.

    Prangadj
  6. SonicImaging
    SonicImaging avatar
    88 posts
    Member since:
    Jan 2007

    Posted 05 May 2008 Link to this post

    Thx,  I re-checked the properties and removed some tools from the tools file and the editor in the grid changed also so that seems ok.

    I get one JS error but its even before I hit the edit button and the editor is displayed which is.

    GridCreated is not defined I dont have any editor type errors.  I figured I would since even the pulldown menus in the editor tools dont work

    Thx
    -Keith
  7. SonicImaging
    SonicImaging avatar
    88 posts
    Member since:
    Jan 2007

    Posted 05 May 2008 Link to this post

    Prangadj

    It did have to do with the js error GridCreated,  stopping the editor from working.

    a bit ago I was messing around with getting 100% height from the grid in edit mode, but it wasnt working so I removed the added code and forgot to remove this <ClientEvents OnGridCreated="GridCreated" /> Inside the client settings

    I did a project search in VS for GridCreated and there it was!  Its removed and working now

    Thanks for the help!!!

    -Keith
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017