Telerik Forums
UI for WinForms Forum
1 answer
273 views

How can I hide the lines between the rows? (I use Office2019 theme)

I already tried this:

        private void RadGridView_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            e.CellElement.DrawBorder = false;
        }

Gridlines are gone but the horizontal lines are still there.

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Sep 2021
1 answer
192 views

Hi Team,
          In Our application we are using the Telerik RadGridview, in that while we navigating the Next icon in the condition of there is no entries the Grid headers are not displaying. It Should show like the ScreenShot. I have added the video for your reference. Please  do the needful.

Video link : https://ttprivatenew.s3.amazonaws.com/pulse/suganya-gmail/attachments/17976581/TinyTake27-09-2021-02-48-42.mp4

ScreenShot : https://prnt.sc/1ttpo5j

Hristo
Telerik team
 answered on 28 Sep 2021
1 answer
440 views
I'm using Telerik RadGridView for WinForms.  Its data source is a table in a DataSet.  The grid view allows user to add, update, and delete rows.  Below is how the row update is done:

private void radGridView2_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e)
{
    if (e.OldRow == null)
    {
        return;
    }

    DataRowView dataRowView = e.OldRow.DataBoundItem as DataRowView;
    if (dataRowView != null)
    {
        DataRow dataRow = dataRowView.Row;
        if (dataRow.RowState == DataRowState.Modified)
        {                    
      tableAdapter.Update(dataRow);
        }
    }
}

What I would like to accomplish is when user press the DEL key on a row, the row is still removed from the grid view but not from the backend database table. Instead, I would like to have an Update on the database table row's colunm (MarkedForDeletion) with a new value.

I'm thinking about intercepting the delete events (UserDeletingRow, or UserDeletedRow, or ?), and then manipulate the DataRow object and then call the tableAdapter.Update(dataRow) as above.  What exactly do I need to do?

Thanks!
Hristo
Telerik team
 answered on 27 Sep 2021
1 answer
182 views

Hello,

I would like to use the virtualKeyboardForm in a WinForms application on a tablet. I would like to know if it's possible to fire event when pressing specific keys.

For example: if I click on the cross in the top right corner of the virtualKeyboardForm, I want that the associated textbox is not focused anymore. Or that if I click on Enter, the keyboardform will close automatically and the associated textbox loses its focus.

Is there a possibility to achieve this?

Thank you in advance and have a nice day!

Hristo
Telerik team
 answered on 27 Sep 2021
1 answer
120 views

Hello,

I am trying to get the screentip with a rounded corner. I have changed the Shape to RoundRectShape. Although, the shape is now rounded rect, but I still see the corner is painted with some other color.

Below is the code of my custom screentipelement

Padding = new Padding(4, 0, 4, 0);
ForeColor = Color.White;
Shape = new RoundRectShape(4);

ScreenTipFill.GradientStyle = GradientStyles.Solid;
ScreenTipFill.BackColor = Color.Blue;

ScreenTipBorder.BoxStyle = BorderBoxStyle.SingleBorder;
ScreenTipBorder.ForeColor = Color.Blue;

This is my output

Thanks

Todor
Telerik team
 answered on 22 Sep 2021
3 answers
193 views

Hello,
I use a event View_CreateCell  to set custom filter cell element but the event not fire for all columns in grid. How can I change that?

private void ListaPlikowRadGridView_CreateCell(object sender, GridViewCreateCellEventArgs e)
        {
            if (e.CellType == typeof(GridSearchCellElement))
            {
                e.CellType = typeof(MyGridSearchCellElement);
            }
           
            if (e.CellType == typeof(GridFilterCellElement) && e.Column.GetType() != typeof(GridViewTextBoxColumn))
            {
                e.CellElement = new CustomGridFilterCellElement(e.Column as GridViewDataColumn, e.Row);
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2021
1 answer
739 views

Hello everyone,

 

I have a little problem with the property StartPosition of a radForm.

When I create a radForm which will be opened with ShowDialog as a modal window at runtime, the start position CenterScreen is not applied. Depending on the size I choose, the modal is sometimes not even fully visible on the screen. How can I resolve this?

I've uploaded a test project which shows the problem:

https://easyupload.io/n58n8v

Thank you in advance and have a nice week!

Stoyan
Telerik team
 answered on 20 Sep 2021
5 answers
118 views
Hi.

Using dll version 2021.2.615.40

I want to use the "Move to Previous Tab Group" included in the demo application, but it is not displayed in my application.

Are there any conditions under which this menu item is valid?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2021
1 answer
192 views

Hi 

I have added points to RadMap and on each point I have placed an image and a text (as shown in the attached screenshot image). 

My questions

1) can I move the text below the point because it is currently on top of the added image ?

2) can I add a background color to the text to make sure it is visible to end users?

 

The code I am using is below:

    PointG racheer = new PointG(Latitude, Longitude);
    MapPoint point = new MapPoint(racheer);
    point.Image = Properties.Resources.myImage;
    point.Size = new Size(15, 15);
    point.Text = "TEXT";
    point.ForeColor = Color.Red;
    radMap1.MapElement.Layers["myLayer"].Add(point);

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Sep 2021
1 answer
739 views

Hi.

Is it possible to set the CheckState of a parent node independently of how the child nodes are set? In my code, it won't let me change the state if there are different states in child node.

Here's the code, just a simple form with a RadTreeView named "tree" on it:

 

Imports Telerik.WinControls
Imports Telerik.WinControls.UI

Public Class frmTest
    Private Sub frmTest_Load(sender As Object, e As EventArgs) Handles Me.Load
        Me.tree.CheckBoxes = True
        Me.tree.AutoCheckChildNodes = False
        Me.tree.TriStateMode = True

        For i As Integer = 1 To 2
            Dim node As New RadTreeNode("Parent " + i.ToString)
            Me.tree.Nodes.Add(node)
            For j As Integer = 1 To 3
                node.Nodes.Add("Child " + j.ToString)
            Next
        Next

        Me.tree.ExpandAll()

    End Sub

    Private Sub tree_NodeMouseClick(sender As Object, e As RadTreeViewMouseEventArgs) Handles tree.NodeMouseClick

        e.Node.Current = True
        Select Case e.Node.CheckState

            Case Enumerations.ToggleState.On
                e.Node.CheckState = Enumerations.ToggleState.Off
            Case Enumerations.ToggleState.Off
                e.Node.CheckState = Enumerations.ToggleState.Indeterminate
            Case Enumerations.ToggleState.Indeterminate
                'won't change the state on a parent node if not all child nodes are checked!
                e.Node.CheckState = Enumerations.ToggleState.On
        End Select
        e.Node.Current = False

    End Sub

    Private Sub tree_NodeCheckedChanging(sender As Object, e As RadTreeViewCancelEventArgs) Handles tree.NodeCheckedChanging
        If Not e.Node.Current Then
            e.Cancel = True
        End If
    End Sub
End Class

I hope that makes sense..
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?