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

Client Side Selected Row Not Highlighted Correctly

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jim
Top achievements
Rank 1
jim asked on 20 Apr 2016, 09:15 PM

I am using the java script function below to highlight a row on the client side once a control in the row was selected.   It appears to be working but the the styles look like the picture below..  a very thin border around the row that is barely noticeable is selected.   How can I made it so the whole row will change color when the row is selected

 

           var grid = $find("<%=GridView_InboxDocuments.ClientID %>");
            var masterTable = $find("<%=GridView_InboxDocuments.ClientID%>").get_masterTableView();
            var dataItems = masterTable.get_dataItems();
            var count = dataItems.length;
            var link;
                       
            for (var i = 0; i < count; i++) {
                link = dataItems[i].findElement(controlName);
                if (link.text == eFilingId) {
                    grid.set_activeRow(dataItems[i].get_element());              
                }                
            } 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Apr 2016, 12:02 PM
Hi Jim,

Try using the following methods instead:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/griddataitem-object/properties/set_selected%28%29
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/selectitem

Hope this helps.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
jim
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or