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

Change color of font color radgrid items on client row click event.

4 Answers 313 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 13 Jun 2013, 05:04 PM
Hi,
       Change color of font color radgrid items on client row click event on client side.




Thanks

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 14 Jun 2013, 04:36 AM
Hi,

I guess you want to change the color of selected row. Please try the code below.

ASPX:
<ClientSettings>
  <Selecting AllowRowSelect="true" />
    <ClientEvents  OnRowSelected="RowClick" />
</ClientSettings>

JS:
function RowClick(sender, eventArgs)
{
 var grid = sender;
 var MasterTable = grid.get_masterTableView();     
 MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()].get_element().style.color = "red";
}

Thanks,
Princy
0
Dhamodharan
Top achievements
Rank 1
answered on 14 Jun 2013, 08:02 AM
Hi Princy,
Thank you very much for ur Quick Reply. I have implemented your code, It works perfectly in IE browsers , But does not work in Mozilla and Chrome. Could you please provide solution for this issue that works in all browser.






Thanks
0
Princy
Top achievements
Rank 2
answered on 17 Jun 2013, 03:30 AM
Hi Dhamodharan,

This code works well in all browsers for me.May be the difference in version is causing the issue.
I'm using the version 2013.1.417.35.

Thanks,
Princy
0
Dhamodharan
Top achievements
Rank 1
answered on 25 Jun 2013, 04:40 PM
Hi Princy,
                It works fine in updated version. Thanks






Tags
Grid
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dhamodharan
Top achievements
Rank 1
Share this question
or