Hi
My work includes design a web application with RadGrid Control.
Earlier the Grid implementation was done using Infragistics.
The application contains a column of type 'GridTemplateColumn' with 4 different images to perform edit(1), delete(2) and redirections(3,4).
On clicking the edit image, the grid should show a pop-up form to edit the current row.
I havent been able to find any code in your samples section to do this.
Here is the snippet of my code for reference.
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<!--script --> <script language="javascript" type="text/javascript"> function showEditPopup(gridName) { __doPostBack(gridName,''); } </script><!--grid code-->telerik:RadGrid ID="grdWatches" Skin="MyCustomSkin" runat="server" EnableViewState="true" EnableEmbeddedSkins="false" GridLines="Both" ShowFooter="false" AutoGenerateColumns="False" VirtualItemCount="50000" HorizontalAlign="Left" PageSize="5" AllowSorting="True" AllowPaging="True" OnNeedDataSource="grdWatches_InitializeDataSource" OnUpdateCommand="grdWatches_UpdateCommand"> <itemstyle wrap="true" verticalalign="Top" /> <headerstyle wrap="True" verticalalign="Middle" horizontalalign="Center" /> <footerstyle wrap="True" /> <alternatingitemstyle wrap="True" verticalalign="Top" /> <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" /> <mastertableview name="vwCaseWatches" commanditemdisplay="None" allowcustomsorting="false" allownaturalsort="false" EditMode="PopUp" allowsorting="true" DataKeyNames="WatchID"> <Columns> <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditImageUrl="~/images/editwatch.gif" visible="true" > </telerik:GridEditCommandColumn> <telerik:GridTemplateColumn HeaderText="Manage" UniqueName="TemplateColumn1"> <ItemTemplate> <table class="customTable"> <tr> <td align=center> <asp:imagebutton id="btnUpdate" ImageUrl="~/images/editwatch.gif" style="color:green;" runat="server" commandname="Update"></asp:imagebutton> </td> <td align="center"> <a href="showEditPopup('<%=grdCaseWatches.ClientID%>')"> <img SRC='images/editWatch.gif' border="0" width="23" height="23" title='Edit Watch'> </a> </td> <td align="center"> <a href='#'> <img SRC='images/Delete.gif' border="0" width="23" height="23" title='Delete' onclick="ShowModalPopUp('<%# Container.DataItem("WatchID")%>', '<%# Container.DataItem("STATUSDESCRIPTION")%>')"> </a> </td> <td align="center"> <a href='~/InformParty.aspx?Watch= <%# Container.DataItem("WatchID")%>'> <img SRC='images/listview.gif' border="0" width="17" height="17" title='View InformParty'/> </a> </td> <td align="center"> <a href='~/DoTransact.aspx?Watch=<%# Container.DataItem("WatchID")%>'> <img SRC='images/DollarSymbol.gif' border="0" width="16" height="16" title='View Charges'/> </a> </td> </tr> </table> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <EditFormSettings InsertCaption="Edit Case Details" CaptionFormatString="<b>Case Name:</b>" EditFormType="Template" PopUpSettings-Modal="true" > <FormTemplate> <asp:RequiredFieldValidator ID="rfvannotation" runat ="server" Text ="Please enter the Case Name." EnableClientScript ="true" ControlToValidate ="txtCaseName" ValidationGroup ="rvfAnnotation" Display ="Dynamic"> </asp:RequiredFieldValidator> <table id="Table1" cellspacing="1" cellpadding="1" border="0" width="250"> <tr> <td> <b>Case Name:</b> </td> <td> <asp:TextBox ID="txtCaseName" runat="server" Text='<%# Bind("Case_Name") %>'> </asp:TextBox> </td> </tr> <tr> <td> FILE NUM: </td> <td> <asp:TextBox ID="txtClientMatter" runat="server" Text='<%# Bind("FILENO") %>' TabIndex="1"> </asp:TextBox> </td> </tr> </table> <table style="width: 100%"> <tr> <td align="left"> <asp:Button ID="Button1" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>' runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'> </asp:Button> <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"> </asp:Button> </td> </tr> </table> </FormTemplate> </EditFormSettings> </mastertableview></telerik:RadGrid><!--misc code--><telerik:RadRating runat="server" ID="rating" Value='<%# Eval("Score") %>' ReadOnly="true" Skin="Default" Precision="Exact" EnableToolTips="false"/><telerik:RadToolTip runat="server" TargetControlID="rating" Text='<%# Eval("Score","{0:#.##} / 5.0 - ") + Eval("votes","{0:n0} votes") %>' Skin="Sunset" />If I copy "日本語" from a rich text editor (e.g. Character Map, Wordpad) and paste it into a RadEditor, the following is pasted instead:
Z
If I paste it into a plain text editor (e.g. Notepad), re-copy, and paste into a RadEditor, it pastes correctly. I have observed this under XP and Vista IE7, and Win7 IE8. It works ok in Firefox and Safari. I used your demo page at http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx to confirm the issue.

This is My ClientSide code ,I am planing to sort the Tree items using MoveUp and move down option in Context menu
function RadTreeView1_ClientContextMenuItemClick(sender, eventArgs) {
//to get the direction
var Direction = eventArgs._menuItem.get_text();
//to get the position clicked
var Index = eventArgs._node.get_index();
//to get the lenght of the tree node
var length = eventArgs._node._parent._children._array.length;
//to get all siblings
var nodes = eventArgs._node._parent._children._array;
var counter;
if (Direction == "Move Up") {
temp = eventArgs._node.get_text();
eventArgs._node.set_text(eventArgs._node.get_previousSibling().get_text());
eventArgs._node.get_previousSibling().set_text(temp)
}
else if (Direction == "Move Down") {
temp = eventArgs._node.get_text();
eventArgs._node.set_text(eventArgs._node.get_nextSibling().get_text());
eventArgs._node.get_nextSibling().set_text(temp)
}
eventArgs._node.get_treeView().commitChanges();
var tree = document.getElementById("ctl00_TreeContentPlaceHolder_RadPanelBar1_i0_RadTreeView1");
tree.commitChanges();
}
Move up and down is achived in the code but still i can not able to retain the sorted order of the Treeview using the code
In tree object i can not able to find any method like commitChanges()
it thoroughs an error says it can not contain any method,
please help me out to complete the task as soon as possible,this is urgent.
Thanks in advance
<telerik:RadEditor ContentAreaMode="Div" ExternalDialogsPath="~/EditorDialogs/" ID="txtSmallDescription" Runat="server" Height="350px" Width="680px" EnableResize="false" Skin="Windows7" MaxTextLength="150" ContentAreaCssFile="~/Style/EditorContentArea_RTL.css" StripFormattingOptions="All"> <CssFiles> <telerik:EditorCssFile Value="~/Style/EditEvent.css" /> </CssFiles> <Content></Content> </telerik:RadEditor>
Best Regards,
Guy
<telerik:RadCodeBlock ID="ExplorerCodeBlock" runat="server"> <script language="javascript" type="text/javascript" src="scripts/editPage.js"></script> <script type="text/javascript"> //<![CDATA[ function handleHyperlink(target) { /* ... do some processing... */ explicitCallBack(target); } function explicitCallBack(arg) { var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); ajaxManager.ajaxRequest(arg); } //]]> </script></telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="tvExplorer"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="tvExplorer" /> <telerik:AjaxUpdatedControl ControlID="pnlDetailWrapper" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="pnlDetailWrapper"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlDetailWrapper" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager> <telerik:RadSplitter ID="RadSplitter1" CssClass="grid_12" Height="650" Width="100%" LiveResize="true" runat="server"> <telerik:RadPane ID="paneExplorer" CssClass="grid_6 alpha" runat="server"> <telerik:RadTreeView ID="tvExplorer" runat="server" TabIndex="1" AccessKey="m" OnClientNodeClicked="OnClientNodeClicked" OnClientKeyPressing="OnClientKeyPressing" OnClientNodeDataBound="OnClientNodeDataBound" OnClientContextMenuItemClicking="OnClientContextMenuItemClicking" OnContextMenuItemClick="tvExplorer_ContextMenuItemClick" OnNodeClick="tvExplorer_NodeClick"> <WebServiceSettings Path="DataSvcProxy.asmx" Method="GetRadTreeViewNodes" /> <Nodes> <telerik:RadTreeNode runat="server" Text="My Project" Value="0" ClassID="0" PermClasses="0" ExpandMode="WebService" /> </Nodes> </telerik:RadTreeView> </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitBar1" CollapseMode="Forward" runat="server" /> <telerik:RadPane ID="paneDetail" CssClass="grid_6 omega" runat="server"> <asp:Panel ID="pnlDetailWrapper" runat="server"> <asp:HiddenField ID="hdnOperationType" runat="server" /> <asp:HiddenField ID="hdnOperationSource" runat="server" /> <asp:Panel ID="pnlDetail" runat="server"> </asp:Panel> </asp:Panel> </telerik:RadPane></telerik:RadSplitter>