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"))
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)
If I enableajax=true the items appear, why?
Hello,
I have tried the above lines of code. It is showing “INVOICE” and "CREDIT" items in dropDownprovider with EnableAjax property set to “true” for WebDataGrid. If the issue is still present, provide me with markup of the grid and version of NetAdvantage product you are using so I may look in to this.
Thanks,
Bhadresh