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
Theres any sample app winform login using sql server table with password encrypted?
thank you
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; } }
Thanks for your help
Best
Patrick
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.
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
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
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)
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);
}
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
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