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

RadEditor in GridTemplateColumn

5 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SonicImaging
Top achievements
Rank 1
SonicImaging asked on 05 May 2008, 01:26 PM
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

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

5 Answers, 1 is accepted

Sort by
0
Kiara
Top achievements
Rank 1
answered on 05 May 2008, 03:02 PM
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
0
SonicImaging
Top achievements
Rank 1
answered on 05 May 2008, 03:19 PM
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


0
Accepted
Prangadj
Top achievements
Rank 1
answered on 05 May 2008, 03:26 PM
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
0
SonicImaging
Top achievements
Rank 1
answered on 05 May 2008, 03:43 PM
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
0
SonicImaging
Top achievements
Rank 1
answered on 05 May 2008, 05:15 PM
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
Tags
Grid
Asked by
SonicImaging
Top achievements
Rank 1
Answers by
Kiara
Top achievements
Rank 1
SonicImaging
Top achievements
Rank 1
Prangadj
Top achievements
Rank 1
Share this question
or