Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Setting EnableViewState="false" removes the event handlers

Last post 05-19-2008 21:55 by shihalv. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-16-2008 0:07

    • shihalv
    • Not Ranked
    • Joined on 05-14-2008
    • Points 25

    Setting EnableViewState="false" removes the event handlers

    I wanted to use the OnSortColumn event handler.

    However by setting the EnableViewState="false" in the webgrid, the event does not get fired.

    Any alternative way?

    I am doing custom sorting with paging that is why I need custom server side logic to pull the data.

    • Post Points: 20
  • 05-19-2008 11:18 In reply to

    • WombatEd
    • Top 10 Contributor
    • Joined on 10-30-2007
    • Culver City, CA
    • Points 6,547

    Re: Setting EnableViewState="false" removes the event handlers

    I don't know if this will help, but:

    Are you putting "OnSortColumn="MyEventHandler()"" in your markup, or are you relying on "Handles MyGrid.OnSortColumn" in your code?"  Be sure to try the "OnSortColumn="MyEventHandler()"" approach.

    HTH

    Let me know if my post is a "hit" or a "miss" - use the "Answer" button and the star ratings.

    Edward McCarroll
    Applications Developer
    (Available for Hire - Contact Me)

    • Post Points: 20
  • 05-19-2008 21:55 In reply to

    • shihalv
    • Not Ranked
    • Joined on 05-14-2008
    • Points 25

    Re: Setting EnableViewState="false" removes the event handlers

    Hi,

    I have tried both approach but to no avail.  Both didn't work.

    I think for some reason the UltraWebGrid handles its viewstate differently.  I also have problems extending the control and adding controls to it.

    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems