Telerik Forums
UI for WinForms Forum
1 answer
20 views

Good evening, community,

After trying on my own and not being able to find a solution, I am in need of help.

Problem:

I have a radGridView control in a form called radGridView1. I have added columns to it, but I want the focus() and cursor to blink in the first cell of the first column when the form loads. This would allow me to start typing directly in the cell. I have tried everything I can think of, but I have not been able to achieve this.

What I have tried:

The closest I have come is with the following code:

I have commented out all of the code to show you what I have been doing, but I have not been able to get it to work. Please help me find a solution to my problem.

Thank you,

Community

Nadya | Tech Support Engineer
Telerik team
 answered on 08 Jan 2024
1 answer
36 views

Theres any sample app winform login using sql server table with password encrypted?

thank you

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Dec 2023
1 answer
38 views

hi all,

I am trying to set some RadDataEntry RadTextBox as ReadOnly, as shown in the following link 

https://www.telerik.com/forums/raddataentry-controls-readonly

Here is my code :

    private void rdeDynamicInput_ItemInitialized(object sender, ItemInitializedEventArgs e)
    {
            if (e.Panel.Controls[0].GetType().ToString() == "Telerik.WinControls.UI.RadCheckBox" ||
                e.Panel.Controls[0].GetType().ToString() == "Telerik.WinControls.UI.RadTextBox")
                  {
                   ((RadTextBox)e.Panel.Controls[0]).ReadOnly = true;
                  }
    }
This code seems to work and checking the control after the instruction shows the attribute set to true, but the display doesn't change and the control stay writable.

 

Thanks for your help

Best

Patrick

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Aug 2023
1 answer
55 views

I have a customer that when adding new records to my data grid doesn't want the records to disappear until the grid is refreshed.

For example, in the screen shot, the user has filtered the rows to State Program = "AK FFS" and NDC = "42543-003-01".  The user want to see the existing values while creating the new record i.e.,  NDC 42543-003-02.  When the user enters all the fields and the record gets added it disappears because of the current filters applied.  Is there a way to by-pass the filters on the newly added rows?

Appreciate any advise.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Jul 2023
1 answer
73 views

Hello,

I am using the DataEntry component along with the DisplayName attribut.

However, at run time, I don't a way to fetch the original name (from the model class) as the Text field contains substitute the DisplayName to the original one.

Apparently the control Name field is always empty. Couldn't you use it to store the control name ?

Regards

Patrick

 

 


Dinko | Tech Support Engineer
Telerik team
 answered on 21 Sep 2022
1 answer
51 views

Dear all,

does anyone know how to change the BackColor ofthe RadDataEntry ValidationPanel.

I have tried various ways like setting it up at design time in Visual Studio,

or just before showing it at run time

                dataEntry.ValidationPanel.BackColor = Color.PapayaWhip;
                dataEntry.ShowValidationPanel = true;

and also via some event such as

  private void rdeDynamicInput_Initialized(object sender, EventArgs e)
    {
        ValidationPanel vpanel = (sender as RadDataEntry).ValidationPanel;
        if(vpanel != null) vpanel.BackColor = Color.PapayaWhip;
    }

Thanks for your answer

 
 
Maria
Telerik team
 answered on 09 Sep 2022
1 answer
103 views

This is probably a very trivial issue, but - just starting with UI for Winforms - I am unable to access the data apparently loaded in the workbook below  (what I am trying to do is to load an excel file in a Worksheet to use it in a datatable)

When I run this, it goes well, but the only output displayed by the Debug.Writeline instruction is :

 "> Telerik.Windows.Documents.Spreadsheet.Model.RangePropertyValue`1[Telerik.Windows.Documents.Spreadsheet.Model.ICellValue]"

 

Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click

        Dim fileName As String = "C:\Users\patrick\testfile.xlsx"
        Dim MyWorkbook As New Telerik.Windows.Documents.Spreadsheet.Model.Workbook
        Dim WorkbookFormatProvider As New XlsxFormatProvider()
        Dim MyInput As New FileStream(fileName, FileMode.Open)
        MyWorkbook = WorkbookFormatProvider.Import(MyInput)
   
        Dim MySheet As Worksheet = MyWorkbook.Sheets.ActiveSheet
        RadSpreadsheet1 = MyWorkbook.Sheets

        Dim Res As String = MySheet.Cells(1, 1).GetValue().ToString
        Debug.WriteLine(" > " & Res)
       
    End Sub

 

Can someone be kind to tell me what I do wrong ?

Thanks

(using Win 11, VS 2019, DEvCraft UI)

Svilen
Telerik team
 answered on 02 Feb 2022
3 answers
546 views

I have a rad data entry in a form that when I change the data through it's bindings it doesn't clear all the fields.  Usually check boxes and dates or dropdowns leave their current selected value if the new data set has null values.

!. is there a way to fix that?

2. If not how can I loop through all the controls in the rad data entry to clear all the controls?

Below only shows 4 controls instead of the many that textboxes, etc.  *Rde is the name of the rad data entry item

foreach (Control c in Rde.Controls)
{
MessageBox.Show(c.Name);
}

 

Stephen
Top achievements
Rank 1
Iron
Iron
 answered on 22 Jul 2021
1 answer
83 views

I am trying to work on a scheduler interface that will allow a user to enter appointments.

The system is working when I apply no filter and load data through the following:

try
{
entities.Appointments.Load();
schedulerBindingDataSource1.EventProvider.DataSource = entities.Appointments.Local.ToBindingList();//filteredAppointmentsByLocation;
this.radScheduler1.DataSource = schedulerBindingDataSource1;
}

The above works and allows me to add, edit and delete without issues.

If I try to add a filter to get specific information:
var filteredAppointmentsByLocation = entities.Appointments.Local.ToBindingList().Where(x => x.LocationID.Equals(ActiveLocation));

and set this as the datasource, I cannot add new items when I do entities.SaveChanges().  I get an error saying it cannot add to a read-only or fixed-size list.  Edits are saved, deletes are not done.

Please advise

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jul 2021
1 answer
132 views

Hi,

I have a situation where I am struggling with data synchronisation. Using the merging functionality of a dataset with DataTables, my app is able to run in offline mode and synch back to the SQL server database using the AcceptChanges and Merge operations. When calling the merge operation, you can PersistChanges. When you do that, what is in the offline datasets overrides the database. When you do not persist changes, what is in the database overrides the local inline changes.

Now, this is fine for a single user but what if the application (a time management console in my case) was installed on multiple servers and the database is updated by multiple instances of the application?

I know Microsoft Synchronisation services used to handle this, but now I am stuck. I could get column changes and populate a temporary table with changes processed by a job or windows service. However, is there an easier way?

FYI, I use a Telerik radGrid to display activity data with numerous other tables that run in memory such as client/project/content data. However, the main data I am trying to sync is the activities.

Has anyone been able to achieve something similar by using datasets and the DataTable merge operation? I would love to hear from you.

Cheers, James

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Feb 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
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?