• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

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 ??
0
1jaws
Asked:
1jaws
  • 4
  • 4
1 Solution
 
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
 
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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
 
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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now