Intersoft WebCombo Documentation
AllowAutoQueryHandler Property
See Also  Send Feedback
ISNet.WebUI.WebCombo Namespace > WebCombo Class : AllowAutoQueryHandler Property






Specifies whether or not to allow WebCombo to automatically handle query request. Specifies whether or not to allow WebCombo to automatically handle query request.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Specifies whether or not to allow WebCombo to automatically handle query request.")>
<ISNet.Serialization.BinarySerializableAttribute()>
<DefaultValueAttribute()>
<CategoryAttribute("Behavior")>
Public Property AllowAutoQueryHandler As Boolean
Visual Basic (Usage)Copy Code
Dim instance As WebCombo
Dim value As Boolean
 
instance.AllowAutoQueryHandler = value
 
value = instance.AllowAutoQueryHandler
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies whether or not to allow WebCombo to automatically handle query request.")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public bool AllowAutoQueryHandler {get; set;}
Delphi 
public read-write property AllowAutoQueryHandler: Boolean; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
NotifyParentPropertyAttribute()
DescriptionAttribute("Specifies whether or not to allow WebCombo to automatically handle query request.")
ISNet.Serialization.BinarySerializableAttribute()
DefaultValueAttribute()
CategoryAttribute("Behavior")
public function get,set AllowAutoQueryHandler : boolean
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies whether or not to allow WebCombo to automatically handle query request.")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public: __property bool get_AllowAutoQueryHandler();
public: __property void set_AllowAutoQueryHandler( 
   bool value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies whether or not to allow WebCombo to automatically handle query request.")]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public:
property bool AllowAutoQueryHandler {
   bool get();
   void set (    bool value);
}

Remarks

The default value of this property is True, which the WebCombo will perform automatic query handling.

You need to set this property to False if you want to enable LoadOnDemand data retrieval mechanism. With this property set to False, the WebCombo will not perform the automatic (default behavior) query handling. In previous versions, you need to write your own code for your specific data-retrieval scenario in InitializeDataSource event. Data retrieval is handled at component level. The load-on-demand mechanism is also handled at component level, for instance, at WebCombo level. This is required because both user interface and data handling are mixed.

The load-on-demand data retrieval in WebCombo.NET version 4.0 can be used when bound to datasource control. However, the currently supported datasource control for this operation is ISDataSource control only.

When bound to ISDataSource and AllowAutoQueryHandler of WebCombo is set to False, the WebCombo will connect to special method available in the specified Select method property of ISDataSource control. For instance, if the Select method property is set to GetData, then you required to create one method with name GetData with 3 parameters, and one get count method with 1 parameter. The detailed signature is as following:

public DataTable GetData(int maximumRows, int startRowIndex, string queryText)
public int SelectCount(string queryText)

The supplied methods allow the datasource control to reuse it in other pages, and thus providing higher level of usability. This concept also enables user interface components to interact with datasource in consistent fashion through datasource control.

To learn more about how to use load-on-demand feature using ISDataSourceControl, please read Walkthrough: Using load-on-demand data retrieval with ISDataSource control in WebCombo.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.