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

set_activeRow and clearActiveRow not working for me

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hendrik
Top achievements
Rank 1
Hendrik asked on 07 Feb 2011, 06:21 PM
hello everyone :)

under which circumstances are the client-side js methods set_activeRow and clearActiveRow working ??

i tried to hook up to OnRowSelected and to OnActiveRowChanged but to no success :(
When i look up the grid's dom properties, always _activeRow is emtpy (even when more than row is active/selected) and calling set_activeRow won't change that.

<ClientEvents OnGridCreated="OnGridCreated" OnRowClick="OnGridRowClick"  OnRowSelected="EventTest" />

within the handler "EventTest":
sender.clearActiveRow();
var element = sender.MasterTableView.get_dataItems()[1].get_element();
sender.set_activeRow(element);
sender.repaint();

thanks for your help,
hendrik
 

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 10 Feb 2011, 01:26 PM
Hello Hendrik,

Could you please try setting the ClientSettings.AllowKeyboardNavigation to true and let me know if the issue still exists:
  <telerik:RadGrid runat="server" ID="RadGrid1" ...>
        <ClientSettings AllowKeyboardNavigation="true">
            <Selecting AllowRowSelect="true" />
...

Regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Hendrik
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or