Hi,Do you know what is wrong with this code, the tooltip doesn't appear?The editor does work though.
' Create an editor provider for the Invoice_Line. Dim NumericEditorProvider As New Infragistics.Web.UI.GridControls.NumericEditorProvider() NumericEditorProvider.ID = "NumericEditorProvider" NumericEditorProvider.EditorControl.MaxDecimalPlaces = 2 NumericEditorProvider.EditorControl.MinDecimalPlaces = 2 NumericEditorProvider.EditorControl.Nullable = False NumericEditorProvider.EditorControl.NullValue = 0 NumericEditorProvider.EditorControl.MaxLength = 20 NumericEditorProvider.EditorControl.SelectionOnFocus = Infragistics.Web.UI.EditorControls.SelectionOnFocus.SelectAll NumericEditorProvider.EditorControl.AutoPostBackFlags.ValueChanged = Infragistics.Web.UI.AutoPostBackFlag.On NumericEditorProvider.EditorControl.ToolTip = "Only 2 decimal places will be saved."
' Create a column setting to use the editor provider. Dim columnSetting2 As New EditingColumnSetting() columnSetting2.ColumnKey = "Invoice_Line" ' Assign editor for column to use columnSetting2.EditorID = NumericEditorProvider.ID ' Add column setting WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(columnSetting2)
Hello netdocs,
I created a sample and set the ToolTip to "Only 2 decimal places will be saved.". This was set within the EditorControl contained in the NumericEditorProvider. When entering edit mode I was able to successfully see the tooltip message.
What version of NetAdvantage are you currently running for this?
Let me know if you have any questions with this matter. Thank you.
The tooltip wouldonly appear if ajax was enabled. I'm using 10.3.
This is just a follow up on the thread if you had any questions or need any further assistance in regards to numeric dropdown editor of the WebDataGrid.
I set EnableAjax to false on the grid. When running the application and entering edit mode of a cell containing the NumericEditorProvider the tooltip was able to display "Only 2 decimal places will be saved".
Here's the attached sample I ran for this in version 10.3.20103.2134.