Hi,
I am working with UltraWebGrid. There are a number of events which I am not using so I want to switch them off and enable them only if I need them. Is there any EventManager for UltraWebGrid also like we have for WinGrid which can do this?
There is one link in your site but that is for WinGrid.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.Shared.v8.1~Infragistics.Shared.EventManagerBase.html
Can we disable client side events also from happening in UltraWebGrid ?
Regards,
Akshay
Hello Akshay,
Yep - I do not really think that client-side events are the bottle-neck in performance in this case. Please, check out the following thread for performance tips:
http://forums.infragistics.com/forums/t/14306.aspx
Hi Sofia,
You mean to say events get fired and the corrosponding code written for them gets executed only when we have some handler. That means simply having an event cannot cause any performance issue.
UltraWebGrid and ASP.NET components in general treat event a little bit differently from thrier Winforms counter-parts. You only get notifications from the client event if you have subscribed to them. By default, they are not fired (not affect functionality or speed in any way) if there is no respective handler assigned.
For client events, we have a special collection on the DisplayLayout called ClientSideEvents and you can subscribe to them there, for example:
<DisplayLayout BorderCollapseDefault="Separate" Name="UltraWebGrid1" RowHeightDefault="20px" Version="4.00"> <ClientSideEvents DblClickHandler="dblClick" />
More info on each client-side event and how it works can be found here:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WebGrid_Client_Side_Events_CSOM.html
And in general, I recommend reading the whole CSOM (Client Side Object Model) section of the grid in our online help.
HTH,