wwWebHoverPanel::IsCallback

Determines whether this control is in a callback if the call is going back to the same page.

This property is useful if you are making callbacks to the current page and you want to handle the callback as opposed to handle normal processing. Typically you'll handle the callback, use Response.Write() to output the HTML and then call Response.End() to complete the request.

In OnLoad():

IF this.MyPanel.IsCallback
    this.ShowCustomerOrders()
    RETURN
ENDIF

Then the actual handler function talks to the invisible wwWebDataGrid that lives on the page:

FUNCTION ShowCustomerOrders

SELECT InvNo,InvDate,InvTotal FROM Orders ;
	ORDER BY InvDate DESC ;
	INTO CURSOR TQuery

this.dgOrders.Visible = .T.
this.dgOrders.DataSource = "Tquery"
this.dgOrders.DataBind()

lcHtml = this.dgOrders.Render()

Response.Write(lcHtml)
Response.End()

ENDFUNC

Default Value

Initial value: .f.

See also:

Class wwHoverPanel |

© West Wind Technologies, 1996-2022 • Updated: 10/05/08
Comment or report problem with topic