Hi,
Just wanted to see what options I had for a custom data entry form.
I have a radDataEntry control working with a BindingNavigator, but is there a way for me to design a form with the control/layout I want and connect that to the BindingNavigator so all the populate/save functionality is there, just with my custom UI?
Cheers,
Damian
I'm working with the Trialversion and I'm trying to find out if the GridViewComboBoxColumn allows filtering based on the value of the previous column.
Datasource of GridViewComboBoxColumn :
USA ColoradoUSA Iowa
Canada Quebec
Canada Ontario
Datagrid:
Country ¦ State
--------------¦---------------------------------------------------------------
USA ¦ Combobox which shows only the states of US (Colorado, Iowa)
Have somebody an example?
Thanks a lot for your help
radChart1.SkinsOverrideStyles =
false
;
chartSeries.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient;
chartSeries.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Horizontal;
chartSeries.Appearance.FillStyle.MainColor = Color.FromArgb(255, 55, 96, 145);
chartSeries.Appearance.FillStyle.SecondColor = Color.FromArgb(255, 184, 204, 228);
radChart1.UpdateGraphics();
I have a form with a grid on it, as well as some other controls. I can click between the grid and the other controls without any issues until I edit a cell using a custom editor through Editor Required. It seems that the grid may still be trying to give the control focus even through it isn't valid any more? Unfortunately the error only occurs on my test machine and not my dev machine, so I doubt that giving a sample would help. I am providing through the relevant snippets of code in the hopes that I am just doing something obviously wrong with setting up the custom editor.
First, this is the exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.WinControls.UI.ImeSupport.CreateContext()
at Telerik.WinControls.UI.ImeSupport.OnGotKeyboardFocus(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnGotFocus(EventArgs e)
at Telerik.WinControls.RadControl.OnGotFocus(EventArgs e)
at Telerik.WinControls.UI.RadGridView.OnGotFocus(EventArgs e)
at System.Windows.Forms.Control.WmSetFocus(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This is the custom editor class:
Private Class CustomTextEditor
Inherits Telerik.WinControls.UI.RadTextBoxControlEditor
Public Overrides Sub OnKeyDown(e As Forms.KeyEventArgs)
Try
If e.KeyCode = Forms.Keys.Enter Then
Dim Cell As Telerik.WinControls.UI.GridDataCellElement = DirectCast(Me.OwnerElement, Telerik.WinControls.UI.GridDataCellElement)
Dim View As Telerik.WinControls.UI.MasterGridViewTemplate = DirectCast(Cell.ViewTemplate, Telerik.WinControls.UI.MasterGridViewTemplate)
View.Owner.EndEdit()
Else
MyBase.OnKeyDown(e)
End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
End Class
I still get the exception even if I never actually process any of my custom enter key code (it just passes through to MyBase.OnKeyDown
This is the code that creates the editor
Private Sub OnCustomEditor(sender As Object, e As Telerik.WinControls.UI.EditorRequiredEventArgs)
Try
e.EditorType = GetType(CustomTextEditor)
Catch ex As Exception
Util.Exceptions.Exception.Display(ex)
End Try
End Sub
I initially called e.Editor = New CustomTextEditor(), but changed to set EditorType after some examples I found. However it doesn't make any difference.
Can't confirm if this is mentioned anywhere so I wanted to let you know just in case...
For a RadDropDownList that isn't currently visible (it's added dynamically to a panel which isn't currently in focus even though the parent form itself is loaded and visible) the .Bottom and .Height properties don't return the correct values if AutoSize = true. .Height =0 and instead of giving the correct .Bottom value it returns the .Top value - I assume this is because .Height = 0.
If I leave all code exactly as it is but set AutoSize = false then .Bottom and .Height are calculated perfectly.
This is pretty counter intuitive since the RadDropDownList is 100% established except it hasn't yet been displayed. At this point there are no items in the list though so I'm guessing that might be breaking the AutoSize.
Hi,
I have a Property Grid. One of the Items states a read-only description. The describes what the object was created for. I.e. say it's a report, it will say something as: "This report was created in order to show sales history, comments and manufacturing information to assist sales reps in their quotes." The length is way to big for the height or width of the cell. So I am trying to make this particular property to be wrapped, or show an ellipses so that the user can expand the field and read the whole Description. I could also work with a tooltip but I would need the tooltip to be sized and scrollable in case the description is too long.
This property is read-only.
Regards,
Carlitos
I am trying to implement an Excel-like enter key behavior where pressing enter moves to the next cell only within the selected cells. I am handling KeyDown and everything works fine using Grid.CurrentColumn to move the CurrentCell between columns. However as soon as my selection is more than one row and I need to wrap to the next row, setting Grid.CurrentColumn kills the SelectedCells collection. I tried every manner of selecting a current cell that I could find, but nothing helps. Most are worse. Using GridNavigator kills the selection for any move, and setting the IsCurrent property of the row kills the selection even if the row hasn't changed.
All of the documentation I can find explicitly states that the current cell and the selected cells are supposed to be independent. Am I missing something?
I have MultiSelect on and SelectionMode = CellSelect, and I am using VirtualMode for the data.
WinForms / VB.net / .NET 4.0 / Visual Studio 2010
I have a gridview which is using ColumnGroupsView to group certain fields, which is all working fine.
However, there is an issue when exporting using the SpreadExport function. If my grid is:
Group 1
---Column 1
---Column 2
---Column 3
Group 2
---Column 4
---Column 5
Group 3
---Column 6
---Column 7
When exported, the row with the group names in, has the first 3 cells merged for "Group 1", the next 2 cells merged for "Group 2" and the next 2 cells merged for "Group 3" as you would expect, and each has the relevent columns underneath it.
If you hide a column 3 using the gridview though, then export, the group headers still have the same number of cells merged, which means that under "Group 1" you now see Column 1, Column 2, Column 4. Under "Group 2" you now have Column 5, Column 6. Under "Group 3" you have Column 7 and a blank column.
How can I fix this?
Thanks
Hi there
i've currently got a working gauge. it uses negative a positive numbers
but at the moment when it uses a positive number it it highlights from -200 to 10
is the way to set the needle to 0 point (in the middle) and have it go from either side of that 0? and also show the number 0?
i have attached a drawing of what i mean
regards
Jeremy