Intersoft WebGrid Documentation
Intersoft WebInput.NET Integration
See Also Send comments on this topic.
Intersoft WebGrid > WebGrid Features Overview > Editing Data > Built-in Custom Editor > Intersoft WebInput.NET Integration

Glossary Item Box

WebGrid can be integrated with WebInput.NET as a custom editor. This integration can be specified using WebGrid Designer or programmatically in runtime.

IntegrateWI1

 

This topic contains the following sections:

Using WebGrid Designer to integrate WebInput.NET

Using WebGrid.NET Designer, the integration can be done by specifying two properties which are CustomEditorName and CustomEditorServerID. In CustomEditorName property, choose WebInputName and in CustomEditorServerID property, choose the WebInput ID that will be integrated to WebGrid.

IntegrateWI2

 

Programmatically integrate WebInput.NET

To integrate WebInput.NET as WebGrid's edit type programmatically, add the following code in the server side :

C# Copy Code
private void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
        WebGrid1.RootTable.Columns.GetNamedItem("Phone").EditType = ISNet.WebUI.WebGrid.EditType.Custom;
        WebGrid1.RootTable.Columns.GetNamedItem("Phone").CustomEditorName = "WebInputNET";
        WebGrid1.RootTable.Columns.GetNamedItem("Phone").CustomEditorServerId = "WebInput1";
}

 

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.