Telerik Forums
UI for WinForms Forum
1 answer
73 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
161 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
101 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
80 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
111 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
90 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
111 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
1 answer
93 views
i have used raddock and document window control and the spreadsheet dock to the radform, before open the spreadsheet form everything is ok , the whole app is changed to maxsize , but when i open the spreadsheet form ,the app still is in maxsize state but actual size changed to samller , and font size in other document window is also changed to smaller, i don't know why ,could anyone fix this problem ? thanks very much !
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jan 2023
1 answer
366 views

We are attempting to make use of ChartView to plot a large number of data points, which display live data which is being received one point at a time. We are experiencing poor performance, with the charts rendering extremely slowly and presence of the resultant chart causing the application performance to drastically deteriorate, (presumably because of the large number of graphical elements present on screen).

We are attempting to implement a LineSeries (or FastLineSeries) which can display up to 90,000 data points.

Is there any guidance available regarding the capability of ChartView to plot a large number of points? Is plotting this many points something ChartView is capable of?

I believe that Telerik UI for WPF contains functionality to reduce the number of plotted points using sampling. Is there similar functionality available for Telerik UI for WinForms? Can you suggest an approach to implement similar functionality in a WinForms application?

For our requirements, one point is added to our dataset at a time; the remainder of the dataset remains fixed. Presumably, the entire chart is redrawn each time a new point is added, which is computationally expensive. Is there any way we can improve the chart rendering performance by removing the need to redraw the entire chart, adding only the novel data points to a pre-existing drawn series?

Are there performance considerations one should take into account when deciding whether to take  a data-binding-based approach or to directly add the DataPoints?

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

Hi Telerik support,

I've created a sample application with a gridview containing more combobox columns. In this forum I found some code snippets to auto open the dropdown box when one navigates to the cell (with the keybord arrow keys).

It seems to work fine except for one scenario..

click (with mouse) on the first column (which is readonly), then navigate to the next column with the arrowkey right. The focus jumps to the third column. If I navigate from the third column to the second (also with arrowkeys), it's ok.

Please try this also with column nr. 5 and 6. (so click on 5 and navigate to 6). After the application newly started, it also jumps away. But only the first time.

Can you help me out of this behaviour?

Kind regards,

Daniel Kaya

 

Dinko | Tech Support Engineer
Telerik team
 answered on 13 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
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)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?