|
Datagrid Example
(RadEditor placed within an EditItemTemplate)
You can easily integrate the RadEditor directly in a
datagrid, using the standard framework provided by the datagrid control.
<EditItemTemplate>
<rade:radeditor id="Editor"
Runat="server"
Width="570px"
ToolsWidth="570px"
HasPermission="true"
Editable="true"
ToolsHeight="60px"
Height="100px"
ImagesPaths="~/Img"
ShowHtmlMode="false"
ShowSubmitCancelButtons = "false"
SaveInFile="false"
Html='<%# DataBinder.Eval(Container.DataItem, "NewsText")
%>'
>
</rade:radeditor>
</EditItemTemplate>
Note that while the datagrid has built-in support for the
Delete, Edit, and Update commands, it does not have support
for Insert. Therefore, if you want to insert a new item (not implemented in
this example), you will have to write additional code that is not a part of the
datagrid as such.
Important Properties: ShowSubmitCancelButtons = false
, SaveInFile=false, HasPersmission=true, Editable=true, Html
|