Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
UltraWebGrid Event Disabling
posted

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

 

Parents
No Data
Reply
  • 28464
    posted

    Hello Akshay,

    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,

Children