changing font

 grid = $find("<%=RadGrid1.ClientID %>");
               
                if (grid.get_masterTableView().get_selectedItems().length == 0)

.length gives me the length of the selected items... how can I change the font of the selected items to not bold ??
1jawsAsked:
Who is Participating?
 
pritamduttCommented:
If your intent is to change font on RowSelection you should use OnRowSelected Event option available for RADGrid

For further reading see ... http://www.telerik.com/help/aspnet-ajax/grid-onrowselected.html
0
 
pritamduttCommented:
You could make a choice between using inline CSS or CSS class
Here is an example for inline CSS

<p style="font-style:normal"> Some Normal Text </p>

Open in new window


Here is an example for using CSS class
<style type="text/css">
p.normal {font-style:normal}
</style>

<p class="normal">Normal Text </p>

Open in new window


Hope this helps
0
 
1jawsAuthor Commented:
actually my question was
    if (grid.get_masterTableView().get_selectedItems(). ?????
comes after that ().  on above ... length gives me lenght but .font doesnt for example...
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
pritamduttCommented:
Based on code snippet provided by you I understand that you are using RadGrid Control!

But I am unable to understand what you actually desire considering the get_selectedItems() function returns an array of the grid rows selected on the client (and all sub levels in hierarchical grid structure).


0
 
1jawsAuthor Commented:
when I debug and see those, I see like
 _element,
 attributes,
 style,
 font

after that get_selectedItems()...
but stil having hard time to write those out...I did like that didnt work..
grid.get_masterTableView().get_selectedItems()._element.attributes.style.font = bold;
0
 
1jawsAuthor Commented:
yes, I am doing this on function onGridRowSelected(sender, args)  event already, but can you be able help me how to change the font?
         
0
 
1jawsAuthor Commented:
I just did on server side... thanks for trying to help...
0
 
pritamduttCommented:
I am glad you found the solution!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.