Beside you can specify a TextItem using WebGrid's Designer, you also can specify TextItem programmatically.
In this topic, you will learn how to specify a TextItem programmatically, such as set CommonText "Ready" to "Start".
To Specify a TextItem Programmatically.
Add the following code in InitializeLayout server side event:
C# | Copy Code |
private void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e) { WebGridTextItem oItem = new WebGridTextItem("CommonText/Ready","Start"); WebGrid1.LayoutSettings.TextSettings.TextItems.Add(oItem); } |
Tasks
Walkthrough: Changing the default Localization Text in Localization Manager
Walkthrough: Using French culture in WebGrid
Walkthrough: Specifying custom language used in WebGrid
How-to: Specify the Localization folder in web.config
Concepts
Localization Manager
References
WebGridTextItem Class
TextSettings Property
TextValue Property
Other Resources
Walkthrough Topics
How-to Topics