To achieve the desired behavior you can attach to the OnRowClick
client event of RadGrid and get the content of the clicked cell (eventArgs.get_itemIndexHierarchical().toString()
). Then, you can use the pasteHtml()
method of the Editor which will paste the cell's content at the last cursor position in the control (0 if not otherwise initialized).
I have prepared and attached a sample project for illustrative purposes, which you can freely extend to fit you requirements.
Should you want to change the cursor's position dynamically you can refer to the getRange() and selectRange()
client functions of the Editor.
The pasteHtml() method for pasting in the cursor posoition has already been discussed in your other thread with the same question: Paste the Content at the Cursor point
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 the blog feed