Telerik Forums
UI for WinForms Forum
2 answers
329 views

Hi,

How do I hide or disable WIN and ALT keys on  a radVirtualKeyboard?

I'm using the Simplified keybordlayout.

 

Chris.

 

 

 

Chris
Top achievements
Rank 2
Iron
 answered on 26 Jan 2023
1 answer
149 views

hello guys,

 

I am using Radscheduler to develop employee Timesheet program, I use codeless data binding (link below)

Codeless data binding - WinForms Scheduler Control - Telerik UI for WinForms

 

I am face with a data filter problem. Each employee is from different location (Employee Table have their own ID(primary key) ,location ID, StartTime, EndTime), so for each location when they use this app, I want they only can view their own timesheet.

So into my

private void Form_Load(object sender, EventArgs e)
        {
            this.tS_TimeSheetTableAdapter.Fill(this.XXX_XXDataSet.TS_TimeSheet);

       }

 

How should I filter data by location ID before it fill the tableadapter?

Plz help me out.

Thanks,

Mike

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Jan 2023
2 answers
684 views
      private void radTextBox1_KeyPress(object sender, KeyPressEventArgs e)
      {
            if (Char.IsLetterOrDigit(e.KeyChar) || (e.KeyChar == (char)(Keys.Back)) ||  e.KeyChar == (char)(Keys.Space))
                e.Handled = false;
            else
                e.Handled = true;
      }
e.Handled = false;

I need e.Handled to false in KeyPress event, and also I want clipboard shortcut keys to be worked perfectly.

i.e: CTRL + A | CTRL + X | CTRL + C | CTRL + V.

Please help me to resolve this issue.

Sathish
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 24 Jan 2023
1 answer
144 views

I am looking to search many PDF's looking for a certain TEXT and saving the Page# of this text to db table.

While I did find this example on the Telerik Website, it does NOT compile for me.

using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf;
using Telerik.Windows.Documents.Fixed.Model.Editing;
using Telerik.Windows.Documents.Fixed.Search;

 

            int pageBegin = -1;
            var provider = new PdfFormatProvider();
            var document = provider.Import(File.ReadAllBytes(@"Test.pdf"));

            var search = new TextSearch(document);  // I get a compile error here stating TextSearch is inaccessible due to it's protection level.
            var result = search.FindAll("Lorem", TextSearchOptions.Default);

            foreach (var resultItem in result)
            {
                var rect = resultItem.GetWordBoundingRect();
                var page = resultItem.GetResultPage();
                pageBegin = page;
                var editor = new FixedContentEditor(page);
                //editor.DrawRectangle(rect);
            }

            File.WriteAllBytes(@"result.pdf", provider.Export(document));
            return pageBegin;

Yoan
Telerik team
 answered on 24 Jan 2023
1 answer
245 views

I have a ScatterSeries  within a RadChartView which is bound to a BindingList of x-y plot points.

When the BindingList updates, the points on the chart are re-plotted , but are being plotted in the middle of the chart, with a large amount of whitespace between the extreme values and the bounds of the chart. The Maximum and Minimum axes values are seemingly decided automatically and at random (if there is some logic to amount of the whitespace being applied, I cannot discern it).

I would like the leftmost plot ploint to be flush with the leftmost axis, the right most plot point to beflush with the right axis, etc. (i.e. I want the axes to be "tight" around the data).

I can do this manually for a known data set with the following code:

LinearAxis horizontalAxis = radChartView1.Axes.Get<LinearAxis>(0);
// or verticalAxis = series.VerticalAxis as LinearAxis;
horizontalAxis.Minimum = 1;
horizontalAxis.Maximum = 7;

Is there a way I can apply this to ensure that the axes are flush with the outermost data points every time the chart is updated due to the binding? Is there a way  to do this without manually setting values for the axes Maximum and Minimum?

I tried applying the following setting to the axis but it does not seem to produce the desired effect; there is still whitespace between the plotted data and the left and right borders of the plot.

horizontal.RangeExtendDirection = NumericalAxisRangeExtendDirection.None;

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jan 2023
1 answer
168 views

 

I fixed the array issue but its still not importing. I might figure it out but if anyone knows what might be wrong a solution would be appricieted. All the numbers seem to be correct in the string when i look it over and the size.



Exception thrown: 'Telerik.WinControls.UI.Scheduler.ICalendar.CalendarParseException'

 

        public async void exportSchedulerDataFile()
        {
            string exportResult = this.workScheduler.Export(new SchedulerICalendarExporter());

            await FirebaseHelper.uploadCalenderFile(exportResult);

        }

        public async Task importSchedulerDataFile()
        {
       
        
            string s = await FirebaseHelper.downloadCalanderFile();

            workScheduler.Import(s, new SchedulerICalendarImporter());

            Console.WriteLine("DID IT WORK?");
            workScheduler.Refresh();
        }

 

Im not sure what im doing wrong here.

Dinko | Tech Support Engineer
Telerik team
 answered on 23 Jan 2023
1 answer
154 views

I'm able to find an appointment from a search box using the following code.

    Private Sub FindAppointment()
        For Each app As Appointment In SalesOrdersSchedule.Appointments
            If app.Subject.Contains(searchTextBox.Text) Then
                SalesOrdersSchedule.ActiveView.StartDate = app.Start
                SalesOrdersSchedule.SchedulerElement.InvalidateMeasure(True)
                SchedulerUIHelper.BringAppointmentIntoView(app, SalesOrdersSchedule)
                UcSalesOrderLine1.RefNumber = searchTextBox.Text
                UcSalesOrderLine1.lblHeader.Text = GridHeaderHTMLBegin & $"Sales Order Items For {app.Summary} ShipDate: {app.Description}" & GridHeaderHTMLEnd
                UcSalesOrderLine1.LoadGrid()
                Exit For
            End If
        Next
    End Sub

The BringAppointmentIntoView works just fine - but I need the appointment that has been found to change color so the user can find it amongst all of the other appointments showing for that week.

Is there a way I can change the back color or otherwise highlight the appointment and if so, how can I reset it when the user performs a search for another appointment?

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jan 2023
1 answer
214 views

Does anyone else see a very slow load time for the RadSpreadsheetRibbonBar?

My main spreadsheet control loads really quickly (<0.5 sec) but the first time the RadSpreadsheetRibbonBar is loaded, it takes a further 4-5 sec, which is a poor user experience.

It's so bad that, by default, I load the spreadsheet without the ribbon bar, and only load it on user request, and still have to pop-up a little 'processing' dialog so the user knows something is happening.

Does anyonje else see this?

(Winforms, Win 10, i7 processor, loads of memory)

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

When I select an item using radTreeView and press any key, I want to enter Editmode immediately.

 

Please let me know if there is any way.

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Jan 2023
1 answer
186 views
hello.

I want to modify radTreeView like Text Editor.
I want to create a new node and enter Edit mode of a new node when I press Enter during Text Editing, and enter Node Edit mode when KeyDown in Node so that I can add text.

Please suggest how to do it.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Jan 2023
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?