Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
Items not appearing in dropdown provider?
posted

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi,

In my code I have created a dropdown provider for the webgrid cell.

The provider appears but the Items and the ReadOnly properties are ignored?

Anyone know why?

' Create an editor provider.
Dim DropDownProvider As New Infragistics.Web.UI.GridControls.DropDownProvider()

DropDownProvider.ID =

 

"DropdownProvider1"

DropDownProvider.EditorControl.Items.Add(

 

New Infragistics.Web.UI.ListControls.DropDownItem("INVOICE"))

DropDownProvider.EditorControl.Items.Add(

 

New Infragistics.Web.UI.ListControls.DropDownItem("CREDIT"))

DropDownProvider.EditorControl.DisplayMode = Infragistics.Web.UI.ListControls.

 

DropDownDisplayMode.ReadOnlyList

WebDataGrid1.EditorProviders.Add(DropDownProvider)

 

 

' Create a column setting to use the editor provider.
Dim columnSetting As New EditingColumnSetting()

columnSetting.ColumnKey =

 

"Invoice_Type" ' Assign editor for column to use

columnSetting.EditorID = DropDownProvider.ID

 

' Add column setting

WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(columnSetting)