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

RadEditor and Radgrid

3 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sumit
Top achievements
Rank 1
Sumit asked on 01 Jul 2013, 07:19 AM
Hi I am using radGrid and radEditor in my application.
   I have a button in radGrid onclick i am changing the content of radEditor.

  Please send me some sample code that when we click on grid Button the content on rededitor should change without page reload.

Thanks
Sumit
  

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 01 Jul 2013, 08:07 AM
Hi,

Please try changing the content of the RadEditor in the client side click event of the Button inside the RadGrid.

Javascript:
<script type="text/javascript">
    function onButtonClick() {
        $find("<%=RadEditor1.ClientID%>").set_html("your text");
    }
</script>

Thanks,
Shinu.
0
Sumit
Top achievements
Rank 1
answered on 01 Jul 2013, 08:58 AM
Hi Shinu,

I tried your code but I am not using Button I am using GridBindColumn. I want to do Find and Replace.


</
telerik:GridBoundColumn>
     <telerik:GridButtonColumn HeaderText="Action" Text="Find & Replace" CommandName="Find&Replace">
</telerik:GridButtonColumn>
0
Sumit
Top achievements
Rank 1
answered on 01 Jul 2013, 11:17 AM
Hi Shinu,

I have placed radgrid and radeditor in one RadPanel.
and my problem is solved.
Thanks
Sumit
Tags
General Discussions
Asked by
Sumit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Sumit
Top achievements
Rank 1
Share this question
or