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

Mouse Hover over the Grid Items causes high CPU usage

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avi
Top achievements
Rank 1
Avi asked on 23 Sep 2009, 06:59 AM
Hi,

I have used RadGrid with custom skins.
The problem is  if i start hovering the mouse over the grid, the CPU usage drastically

Please help me out.

The custom skin i am using is :
/* r.a.d.menu Web 2.0 skin */ 
 
.RadMenu_Blue  
    backgroundurl(Menu/MenuItemBackground.gif); 
    border-leftsolid 1px #617fb5
 
.RadMenu_Blue_Context 
    backgroundnone
    border:0; 
 
.RadMenu_Blue .rmLink 
    text-decorationnone
    color#fff
    border-leftsolid 1px #c2cfe3
    border-rightsolid 1px #617fb5
    backgroundtransparent
 
.RadMenu_Blue .rmLink:hover, 
.RadMenu_Blue .rmFocused, 
.RadMenu_Blue .rmExpanded 
    color:Black; 
    backgroundtransparent url(Menu/MainItemBackgroundHover.gif) no-repeat center
 
.RadMenu_Blue .rmText 
    /*background: transparent url(Menu/RootGroupArrowDown.gif) no-repeat right center;*/ 
    padding-left22px/* should be adjusted to the size of the images, if they are larger than 16x16px */ 
    margin-right4px
    font:10px "segoe ui",arial,sans-serif
    line-height20px
    padding-right24px
    background-image:none
 
 
.RadMenu_Blue .rmRootGroup .rmText .rmLeftImage 
    margin3px 1px 0; /* should be adjusted to the size of the images, if they are larger than 16x16px */ 
 
.RadMenu_Blue .rmHorizontal .rmExpandBottom,   
.RadMenu_Blue .rmHorizontal .rmExpandTop   
{   
  backgroundtransparent url(Menu/RootGroupArrowDown.gif) no-repeat rightright center;   
}  
 
.RadMenu_Blue .rmVertical .rmExpandLeft, 
.RadMenu_Blue .rmVertical .rmExpandRight   
{   
  backgroundtransparent url(Menu/invertedGroupImage.gif) no-repeat rightright center;   
}  
 
 
.RadMenu_Blue .rmSlide 
    margin-top:-1px
 
.RadMenu_Blue .rmGroup 
    bordersolid 1px #6788be
    backgroundwhite
 
.RadMenu_Blue .rmGroup .rmLink 
    backgroundwhite
    border0px
    border-bottomsolid 1px #f0f2f3
    color#333
 
.RadMenu_Blue .rmGroup .rmText 
    font-weightnormal !important; 
    backgroundnone
    margin-right: 0 !important; 
    padding-left30px
    padding-right40px
    font-size10px
 
.RadMenu_Blue .rmGroup .rmLink:hover, 
.RadMenu_Blue .rmGroup .rmFocused, 
.RadMenu_Blue .rmGroup .rmExpanded 
    background#c7d9ef
    border: 0; 
    border-bottomsolid 1px #d8dde0
 
.RadMenu_Blue .rmLeftArrow, 
.RadMenu_Blue .rmRightArrow, 
.RadMenu_Blue .rmTopArrow, 
.RadMenu_Blue .rmBottomArrow, 
.RadMenu_Blue .rmLeftArrowDisabled, 
.RadMenu_Blue .rmRightArrowDisabled, 
.RadMenu_Blue .rmTopArrowDisabled, 
.RadMenu_Blue .rmBottomArrowDisabled 
    background#e7f1ff url(Menu/left.gif) center center no-repeat
    width15px
    text-decoration:none
    color:#e7f1ff
 
.RadMenu_Blue .rmTopArrow, 
.RadMenu_Blue .rmTopArrowDisabled 
    background-imageurl(Menu/top.gif); 
    width: 100%; 
    height15px
 
.RadMenu_Blue .rmBottomArrow, 
.RadMenu_Blue .rmBottomArrowDisabled 
    background-image:url(Menu/bottombottom.gif); 
    width: 100%; 
    height15px
 
.RadMenu_Blue .rmRightArrow, 
.RadMenu_Blue .rmLeftArrow 
    height: 100%; 
 
.RadMenu_Blue .rmRightArrow, 
.RadMenu_Blue .rmRightArrowDisabled 
    background-imageurl(Menu/rightright.gif); 
 
.RadMenu_Blue .rmVertical .rmSeparator 
    padding-top2px
    background#6788be
    font-size1px
    line-height1px
 
.RadMenu_Blue .rmSeparator .rmText 
    displaynone
 
.RadMenu_Blue .rmExpandLeft, 
.RadMenu_Blue .rmExpandRight, 
.RadMenu_Blue .rmFocused .rmExpandLeft, 
.RadMenu_Blue .rmFocused .rmExpandRight, 
.RadMenu_Blue .rmExpanded .rmExpandLeft, 
.RadMenu_Blue .rmExpanded .rmExpandRight 
    backgroundtransparent url(Menu/invertedGroupImage.gif) rightright center no-repeat
 
.RadMenu_Blue .rmGroup .rmExpandLeft, 
.RadMenu_Blue .rmGroup .rmExpandRight, 
.RadMenu_Blue .rmGroup .rmFocused .rmExpandLeft, 
.RadMenu_Blue .rmGroup .rmFocused .rmExpandRight, 
.RadMenu_Blue .rmGroup .rmExpanded .rmExpandLeft, 
.RadMenu_Blue .rmGroup .rmExpanded .rmExpandRight 
    backgroundtransparent url(Menu/groupImage.gif) rightright center no-repeat
 
/*right-to-left support*/ 
 
.RadMenu_Blue_rtl, 
.RadMenu_Blue_rtl * 
    text-align:rightright
 
.RadMenu_Blue_rtl .rmRootGroup .rmText 
    padding-left24px
    padding-right8px
    margin-right: 0; 
    margin-left4px
 
.RadMenu_Blue_rtl .rmGroup .rmText 
    margin-left: 0 !important; 
    padding-left40px
    padding-right30px
 
.RadMenu_Blue .rmLeftImage  
    margin5px 2px 0; 
 
.RadMenu_Blue_rtl .rmHorizontal .rmExpandBottom,   
.RadMenu_Blue_rtl .rmHorizontal .rmExpandTop   
{   
  background-position:left center;   
}  
 
.RadMenu_Blue_rtl .rmVertical .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmExpandRight   
{   
  backgroundtransparent url(Menu/invertedGroupImageRTL.gif) no-repeat left center
 
.RadMenu_Blue_rtl .rmGroup .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmExpandRight   
{   
  backgroundtransparent url(Menu/groupImageRTL.gif) no-repeat 5px center;   
 
.RadMenu_Blue_rtl .rmVertical .rmLink:hover .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmLink:hover .rmExpandRight, 
.RadMenu_Blue_rtl .rmVertical .rmFocused .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmFocused .rmExpandRight, 
.RadMenu_Blue_rtl .rmVertical .rmExpanded .rmExpandLeft, 
.RadMenu_Blue_rtl .rmVertical .rmExpanded .rmExpandRight 
    backgroundtransparent url(Menu/invertedGroupImageRTL.gif) left center no-repeat
 
.RadMenu_Blue_rtl .rmGroup .rmLink:hover .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmLink:hover .rmExpandRight, 
.RadMenu_Blue_rtl .rmGroup .rmFocused .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmFocused .rmExpandRight, 
.RadMenu_Blue_rtl .rmGroup .rmExpanded .rmExpandLeft, 
.RadMenu_Blue_rtl .rmGroup .rmExpanded .rmExpandRight 
    backgroundtransparent url(Menu/groupImageRTL.gif) 5px center no-repeat
 
.RadMenu_Blue .rmRootGroup .rmItem .rmDisabled, 
.RadMenu_Blue .rmRootGroup .rmItem .rmDisabled:hover 
    -moz-opacity: 0.8; 
    opacity: 0.8; 
    color#ccc
    backgroundnone
    border-bottom-color#f3f5f5

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 23 Sep 2009, 03:04 PM
Does this occur for every item in the Grid or is it only specific items? I noticed that you are using .RadMenu_Blue - are you using any other skins for  the RadGrid? I wasn't able to see the behavior on my side, so just making sure there's no details missing.
You could also try to see what happens (in terms of CPU usage) if you take out all hovering references in your custom skin.
0
Avi
Top achievements
Rank 1
answered on 01 Oct 2009, 05:18 PM
Hi, Schlurk

Yes, this occurs every time.

I have used the exact css that i have posted here.


Thanks,
Avi
Tags
Grid
Asked by
Avi
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Avi
Top achievements
Rank 1
Share this question
or