GoDiagram Web Reference
HandleClientRequest Method

the string that was passed to RaisePostBackEvent
a Hashtable that holds name/value pairs from parsing the evtargs string
This is called by GoView.RaisePostBackEvent for handling both postback and NoPost queries that have "request" as one of the parameter names.
Syntax
'Declaration
 
Public Overridable Sub HandleClientRequest( _
   ByVal evtargs As String, _
   ByVal parameters As Hashtable _
) 
public virtual void HandleClientRequest( 
   string evtargs,
   Hashtable parameters
)

Parameters

evtargs
the string that was passed to RaisePostBackEvent
parameters
a Hashtable that holds name/value pairs from parsing the evtargs string
Remarks
You may find that overriding this method and setting the GoView.DataRenderer property is easier than overriding GoView.RaisePostBackEvent. Such an override is needed when using GoView.NoPost views, since there is no Page or other context in which to define a Updated event handler. By default this method does nothing. You can override this method to handle "request" queries in much the same manner that RaisePostBackEvent does for queries such as "zoom" and "act". For example, if you had a JavaScript function that wanted to change the brush color of the current selection:
            function changeSelectionColor(colorname) {
              goRequest('MyView', 'color=' + colorname);
            }
            
And you invoked this function, for example by using a button: Then you could override this method to handle the request:
            public override void HandleClientRequest(String evtargs, System.Collections.Hashtable parameters) {
              String color = (String)parameters["color"];
              if (color != null) {
                Color c = Color.FromName(color);
                foreach (GoObject obj in this.View.Selection) {
                  GoShape shape = obj as GoShape;
                  if (shape != null) {
                    shape.BrushColor = c;
                  }
                }
              }
            }
            
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoViewDataRenderer Class
GoViewDataRenderer Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback