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

How to find RadGrid gotfocus

2 Answers 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 02 Nov 2009, 09:04 AM
Hi All,

Have a grid with datas and a label with text "WELCOME".

When I select a row in the grid need to change the label to "In THE GRID".

Is there any option like gotfocus to solve this.

Thanking You

-Anto

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 02 Nov 2009, 06:43 PM
Hello Anto,

Try the following setup:

RadGrid markup
<ClientSettings>
    <ClientEvents OnRowSelected="rowSelected" />
</ClientSettings>

Javascript
<script type="text/javascript">
    function rowSelected(sender, args)
    {
        $get("MyLabel").innerHTML = "In THE GRID";
    }
</script>

If your label reside within RadGrid, you may use our findElement method:

Javascript
$telerik.findElement(parentElement, "MyLabel");

For more information about findElement, visit the following link:
Telerik static client library

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
answered on 03 Nov 2009, 06:04 AM
Hi Daniel

Thank You very much.

-Anto
Tags
Grid
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Share this question
or