Using the Template Collection to Add a Template Column in WebDataGrid
WebDataGrid™ has a template collection to store common, reusable templates. You can add item templates to the collection using the WebDataGrid control's smart tag. You can also do this in code using the Templates collection. You can use the templates as you would for any templatable element in WebDataGrid. The collection gives you a place to store and quickly access templates that you plan to use often. Next I will show you how to add template column programmaticly.1. Define your custom Te
Infragistics WebCombo Javascript API Demonstration
In this blog I will demonstrate how to interact with WebCombo client side API using Javascript. Now Let's begin with an example.As shown above figure, there are several WebCombos on the page. When the right-hand checkbox is checked, the WebCombo is enabled anf get focus; otherwise,the WebCombo is disabled and lost focus.1. Retrieve WebCombo Object ReferenceTo interact with the client side WebCombo object, we need a way to get a reference to it. We can retrieve a WebCombo client side object refer
Sort a WebCombo Column Programly
Infragistics WebCombo control make it very easy to sort a cloumn with few lines of code. There is no need that the source data is ordered.Let see an example.As shown in above figure, the service WebCombo is not sorting and the rows are unordered.To sort a WebCombo column, we need to set the SortIndicator property of a Column object of the WebCombo control.Public Shared Sub BindWebCombo(ByRef control As WebCombo, ByRef dataSource As IBindingList)With control' data bingding.DataSource = dataSource
Select a matching row of WebCombo control based on DataValue
Considering the following scenario:The user selected an item in a WebCombo control then do a "save" action, when he re-enter this page, we want the Webcombo control select the value matching the data from the database. Let's look at an example as below.Supposed that the "Service" WebCombo has a DataTextField named "Code" and a DataValueField named "ID". Now we want to select a row by matching the DataValue of the control. Normally the code looks like below
Infragistics WebCombo Data Binding
Infragistics ASP.NET web controls are very usful and populate by web page developers. In this series articles I will share my expierences on Infragistics controls usage with you. The topic of this blog is how to bind WebCombo to a data source.You can bind WebCombo to an ArrayList, Object Collection or DataTable, and it supports binding to single column and multiple columns. Now let's look an example.1. Bind To a DataTable With Single Column VisibleThe ASP.NET page looks like below:All the WebCom