User Profile & Activity

Handy Surya Support
Page
of 223

Hi Eric,

I still need a little time to investigate the issue. I will let you know asap.

Regards,
Handy

Hello,

AddStyle() would not be used if you customize all your style with CSS. WebToolBar/WebMenuBar provides properties which can be configured for its style. I already sent you the sample which I include all the style  in CSS and set it in those properties.

 <MenuStyleSettings BackgroundStripColor2="" MenuDropShadow="True" MenuAnimation="True"
  MenuWindowType="Normal" BackgroundStripColor="#E3EFFF">
 <CustomStyle CssClass="CustomStyle">
 </CustomStyle>
 <DisabledItemStyle>
 <Over CssClass="DisabledItemStyle-Over">
 </Over>
 <Normal CssClass="DisabledItemStyle-Normal">
 </Normal>
 </DisabledItemStyle>
 <CheckedItemStyle>
 <Over CssClass="CheckedItemStyle-Over">
 </Over>
 <Normal CssClass="CheckedItemStyle-Normal">
 </Normal>
 </CheckedItemStyle>
 <SeparatorStyle CssClass="SeparatorStyle"></SeparatorStyle>
 <FrameStyle CssClass="FrameStyle">
 </FrameStyle>
 <ItemStyle>
 <Over CssClass="ItemStyle-Over">
 </Over>
 <Normal CssClass="ItemStyle-Normal">
 </Normal>
 </ItemStyle>
 </MenuStyleSettings>
 <HeaderButtonStyle>
 <Active CssClass="HeaderButtonStyle-Active">
 </Active>
 <Over CssClass="HeaderButtonStyle-Over">
 </Over>
 <Normal CssClass="HeaderButtonStyle-Normal">
 </Normal>
 </HeaderButtonStyle>
 <BodyStyle BackColor="#BFDBFF"></BodyStyle>
 <CommandStyle>
 <Active CssClass="CommandStyle-Active">
 </Active>
 <Over CssClass="CommandStyle-Over">
 </Over>
 <Normal CssClass="CommandStyle-Normal">
 </Normal>
 </CommandStyle>
 <CommandDisabledStyle CssClass="CommandDisabledStyle">
 </CommandDisabledStyle>
 <SeparatorStyle CssClass="SeparatorStyle1"></SeparatorStyle>
 <HandleStyle BackColor="#BFDBFF"></HandleStyle>
 <OptionStyle BackColor="#C4C4AD"></OptionStyle>
 <HeaderCaptionStyle CssClass="HeaderCaptionStyle">
 </HeaderCaptionStyle>

I will need to discuss with our developer about AutoFitColumn property. But after configure CSS, without AutoFitColumn, the performance works well.

Regards,
Handy

Posted: February 10, 2011 4:42 AM

Hi Eric,

Ok. Thank you for your understanding.

Regards,
Handy

Posted: February 10, 2011 12:50 AM

Hi,

Yes. All the style should be customized in CSS. If you don't use CSS, WebToolBar/WebMenuBar would use AddStyle() (default mechanism). As I said before, somehow this method is not functioning in IE.
If you run the sample in other browser, the performance would not slow.
Also, In your sample, I didn't touch anything about AutoFitColumn

Regards,
Handy

Posted: February 10, 2011 12:16 AM

Hello Shawn,

Basen on another thread, I already explained about the issue. Perhaps, my previous explanation wasn't good enough.
This performance issue is caused by WebToolBar or WebMenuBar and only shows at IE.
WebToolBar or WebMenuBar use AddStyle() method to customize theirstyle. Somehow, AddStyle() method is not functioning in IE (browser limitation).
In order to avoid this issue, we suggest to customize the style with CSS, include the standard style.
When using standard style, AddStyle() method would be automatically activated to retrieve/set the standard style.

E.g 
Your current simple sample.

I applied the CSS into WebToolBar and the performance works well.

Regards,
Handy


Hello Maged,

I am sorry that I was not being detail in my previous post. You can change the DataKeyField with ItemID, but you also need to add ItemID in your column. This the one that caused the error.
If you don't like to show ItemID column, you can set Visible false properties in that column.
When you specify a datakeyfield, It must be need also added into your column. Otherwise, you will face the error.

Regards,
Handy

Posted: February 9, 2011 4:38 AM
Hello Eric,

We will let you know when the enhancement has been made. The nightly build shoud be sent to you.
But just for your information, We are talking enhancement for WebGrid 7, not WebGrid 6 because WebGrid 6 has been discontinued.

Regards,
Handy

Hello Jean,

I got a response from our developer teams. This issue happens only when you resize the window.
 Our WebTextEditor has its own logic mechanism to resize the toolbar. When the size is getting reduced, some of command would be hidded into "more options"dropdown button. Or, it will moved into the bottom.
In other words, your scenario messed up with our resize and hide scenario.
Is it possible for not using hide?
Such as switch the current image with your custom image. You can also override the command.
Or you can use disable command instead of hiding the command.

Regards,
Handy  

Hello,

Would you mind to provide us a simple runable sample which can show us the issue? We need to see the comparasion result with previous version. 

http://www.intersoftpt.com/Community/WebGrid/WebGrid-7---Render-Performance-Extremely-Slow-When-WebMenuBar-On-Page/
This customer has confirmed that the workaround resolve performance issue. So, if you said the issue has surfaced, we need more details to help you fix this issue.

Regards,
Handy

Hello Maged,

Based on Martin sample, there is no field "ItemID" in his database. Also, DataKeyField is necessary to be filled. Otherwise, you will find some issue in insert, update and delete. Please fill DataKeyField properties with your current Primary key in database.

Regards,
Handy

All times are GMT -5. The time now is 10:28 PM.
Previous Next