4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 25 Jun 2009, 04:12 AM
Hi Adi,
Try setting the Font style for the Selected row in the aspx and see if it meets your requirement.
ASPX:
Thanks
Shinu
Try setting the Font style for the Selected row in the aspx and see if it meets your requirement.
ASPX:
| <SelectedItemStyle Font-Names="Garamond" Font-Size="Medium" /> |
Thanks
Shinu
0
adi
Top achievements
Rank 1
answered on 25 Jun 2009, 06:59 AM
This will change the style for the selected item in general. I'd like to change the font-style according to the selection of the user. Maybe it will be bold, normal or italic. I tried to use the selected row item, which I get with grid.get_masterTableView().get_selectedItems(). But did not solve it.
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Jun 2009, 07:43 AM
Hello Adi,
You can try out the following code to set the style of the selected items in the grid:
js:
Hope this helps..
Princy.
You can try out the following code to set the style of the selected items in the grid:
js:
| var selectedRows = $find("<%=RadGrid1.ClientID%>").get_masterTableView().get_selectedItems(); |
| for (var i = 0; i < selectedRows.length; i++) |
| { |
| var row = selectedRows[i]; |
| row._element.style.fontStyle = "italic"; |
| } |
Hope this helps..
Princy.
0
adi
Top achievements
Rank 1
answered on 25 Jun 2009, 10:38 AM
Hi Princy,
that is it. Works fine. Thank you.
Adi
that is it. Works fine. Thank you.
Adi