Telerik Forums
UI for WinForms Forum
1 answer
253 views

Hi,

I have some questions on RadPageView Winforms UI. How can I change the color of hamburger button and RadPageViewPage when I hover my mouse on to it ? Let say, I want to change it to #3373ba hex color.

And also, is it possible to change the dropdown arrow color for hierarchical navigation menu here ?

 

Thanks before.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Mar 2022
1 answer
126 views

Hello,

I am knee deep converting our business app over to Telerik (which is an awesome suite of tools I wish I would have gotten it sooner!) and am running into an issue with the RadListView in detail view. I really need the ItemMouseHover event to work so I can show a custom form while the mouse is over the item but for some reason it's not firing. I have tested the ItemMouseEnter and ItemMouseLeave events and they fire correctly. Is there something I am missing to enable this event?

My test code is really simple:

  Private Sub lvBusinessApps_ItemMouseHover(sender As Object, e As ListViewItemEventArgs) Handles lvBusinessApps.ItemMouseHover
        Debug.Print("Hover")
  End Sub

 

Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Mar 2022
1 answer
282 views
Hi,
  We are try to use Rad Pdf viewer which load pdf file with 10 to 20 pages, in that some of thumbnail showing blank page and when click that blank page thumbnail we getting error like "Object reference not set to an instance of an object", If close and open it show blank page for different pages.
Our code is :

        Me.RadPdfViewer1.LoadDocument(System.Windows.Forms.Application.StartupPath + "\pdf\Sample.pdf")

Here we attach error screenshot and exe and testing file at your end, We cant send whole project bcz size more that 30 mb, so we send exe and testing file, In form load event just used above one line code.

Pls reply asap

Thanks
M Kumar
Top achievements
Rank 1
Iron
Veteran
 updated question on 11 Mar 2022
1 answer
199 views

Hello,

I have Raddropdownlist control with list of items. Some of the items have the same display value but whole objects are different. DropDownListElement.AutoCompleteSuggest.SuggestMode property is set on SuggestMode.Contains value. When I use filter for descripted situation I get list of items (number of items is correct) but all position on filtered list is pointing on the same item (selected indexes alsow are the same). Could you tell my what can I do to get correct filtering result for this situation?

 

All the best

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Mar 2022
1 answer
112 views

We were using the built-in windows DateTimePicker for all of our dates, and have changed to using RadDateTimePicker, and i am having a few issues/questions.

1. We have Overrides setup on KeyPressEventArgs to trap the ENTER key which then sends a TAB - so our users can just hit enter to move to the next field instead of being required to hit tab (this works on all data entry fields except raddatetimepicker).

2. The user is required to type in the full year. We have the format set to Short. Using standard windows DateTimePicker, the user could type 22 and it would make it 2022. But, if the user types 22 now, it just puts the 22 in the year. So if the year was 2003 and you type in 22, the year now becomes 0322. We want the year to be entered as 2 digits and use the current century. How would we do that?

3. We don't want the user to be able to clear out the date completely, we want a date to be entered. Windows didn't allow this (we never set min date values). I even set the NullDate to be "1/1/1901" and that made it when i "cleared out" the date it displayed 1/1/0001.

Thanks for your help.

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Mar 2022
1 answer
396 views
RadTextbox  by Default text should be highlight or selected
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Mar 2022
1 answer
1.3K+ views

Hi

After fetching information from the database and performing calculations, I want to add the information to the data grade view.
I have already made the columns based on the data type
I get this error when running the program:

"Rows can not be add programmatically added to the rad radgridview's  Rows collection when the control is data-bound"

This error does not always occur and it happens by accident

Whatever I searched for, I did not find the reason

Maybe my solution to this is wrong

Thank you in advance for your support

 

This code snippet is inside a loop and may run hundreds of times :

var item = new GridViewDataRowInfo(dailyGridView.MasterView);

                        if (dailyGridView.Columns.Any(c => c.Name == "Code"))
                            item.Cells["Code"].Value = personelInfo.First().Code;
                        if (dailyGridView.Columns.Any(c => c.Name == "FirstName"))
                            item.Cells["FirstName"].Value = personelInfo.First().FirstName;
                        if (dailyGridView.Columns.Any(c => c.Name == "LastName"))
                            item.Cells["LastName"].Value = personelInfo.First().LastName;
                        if (dailyGridView.Columns.Any(c => c.Name == "Date"))
                            item.Cells["Date"].Value = PersianDateTime.FromDateTime(report.Date).ToShortDateString();
                        if (dailyGridView.Columns.Any(c => c.Name == "DayName"))
                            item.Cells["DayName"].Value = PersianDateTime.FromDateTime(report.Date).DayName;
And more line ...


dailyGridView.Rows.Add(item);

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Mar 2022
1 answer
151 views

I'm using the RadSpreadProcessing library to import Excel files, process them, and export back out.

I come across an issue when cells have complex formulas.

These complex formulas have dependencies on other cell values which those values get set (SetValue(...) method) while processing the worksheet after its been imported.

When I try to get the cell value of the complex formula using this call:

cellSelection.GetValue().Value.GetResultValueAsString(cellSelection.GetFormat().Value)

it returns me a value of #NAME?.

When I try to get the value of the complex formula using this call:

cellSelection.GetValue().Value

I noticed a ResultValueType of Error.

But when the workbook is exported back out the cells do not contain #NAME? in them. They contain the correctly auto-calculated values.

In the attached ComplexFormulaIssue.PNG, Row 1 column A value gets set while processing the worksheet using the SetValue(...) method (set it from NX: 12 to 12 for example).

Row 1 Column B formula depends on Row 1 column A value (which works fine since it's an easier formula I guess. No issue here).

Row 1 Column C and D are normal text values.

Row 1 Column E has a complex formula that has dependencies to all the other cell values (this is the one that gives me issues).

I attached 2 other PNGs as examples of formulas I used in Row 1 Columns B and E.

Vladislav
Telerik team
 answered on 09 Mar 2022
1 answer
128 views

In our application, we were using the standard windows CheckBox.

We have an Overrides onkeypress to trap the ENTER key and send a TAB (so enter moves to the next field on the form). This works great, and for the user to toggle a checked/non-checked state, the space bar is hit.

When using the RadCheckBox, the space bar still changes the checked state, but also when i hit ENTER, it changes the checked state and moves to the next field. 

I do not want it to change the checked state on the ENTER, i only want it to move to the next field.

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Mar 2022
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?