Telerik Forums
UI for WinForms Forum
1 answer
74 views

I'm experiencing weird behavior when trying to remove a row using v2023.3.1114. I created a test form in my main app and launch it like this:

Form1 form = new();

form.ShowDialog();

The form populates a grid  by setting the DataSource to a collection of POCOs.

The grid has a a hyperlink column. When the user clicks the column, the goal is to have the clicked row disappear. I'm implementing it like this:

private void gvTaskNotifyType_HyperlinkOpening(object sender, HyperlinkOpeningEventArgs e)

{
    try
    {
        int rowIndex = e.Row.Index;

        gvTaskNotifyType.Rows.RemoveAt(rowIndex);
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }

}

 

Problem is when the RemoveAt() method is called it throws a Object reference not set to an instance of an object . It may happen the first time or more often the 3rd. It also happens if I use Remove() and pass in a reference to the row object and also if I try to set the IsVisible property to false. The really strange part is that the error doesn't enter the catch handler. Rather, its stops on the form.ShowDialog(); line and breaks there.

Any ideas?

Carl

Nadya | Tech Support Engineer
Telerik team
 answered on 10 Jun 2024
1 answer
82 views

Hello!

I was trying to upgrade several programs to have the font connected to the program size ("dynamic" font). I wasn't able to do it in a simple way because i kept finding problems and i assumed it was some minor telerik object bugs. But then i found out that some of the bugs weren't simple to fix because the fix would impact the program performance. So i created a program from scratch to see if the problem was in my program (i could be doing something wrong since it hd a lot of code) but i came to the conclusion that this problem is actually because of the theme and not mine or the programs fault.

When i use a radgridview and change the font to a higher size (ex: 27) some of the text in the grid won't change if i'm using the theme 'TelerikMetroBlue'. But if i use the default theme 'Office2010Blue' the object works great.

Please check the attached images.

Note: I'm only using a radgridview in this example but the problem was also detected in other objects, like radlistview and radganttview.

 

JP

Nadya | Tech Support Engineer
Telerik team
 answered on 10 Jun 2024
1 answer
78 views

Hi Telerik,

 

I'm using C# and and RadPageView NavigationBar component for my WinForms application.

I think I'll give a background story first.

I implement a RadPageView with NavigationBar, and also implement a search bar between the hamburger menu and the RadPageView items

The item's is populated from a class

 

The "search menu" is used to filter the displayed menu 



And when I clear the search menu's filter, the RadPageViewItems is re-loaded with the previous class data. But, it takes a long time due to a lot of records (FYI, i have ~1000 menus that equivalent to ~1000 RadPageViewItems)



Is it possible to improve the load speed? Like, maybe, any mechanism that stores the fully loaded menu as a local-storage in RadPageView's function/module that I should call when the search menu is cleared after it has been filled?

Thanks in advance!

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Jun 2024
2 answers
84 views

Hello Team,

 I try to set tooltip for combobox lineitem which is disabled , it is not showing tooltip, Is there any way to show tooltip while it disabled ? could you please help on this ASAP?

Please refer below code snippet and attached screenshot. 

private void cmbPlugtype_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
 {
if (cmbPlugtype.DropDownListElement.TextBox.Fill.BackColor != Color.Cyan)
{
    args.VisualItem.ToolTipText = args.VisualItem.Data.DisplayValue.ToString();
}
else
{
    args.VisualItem.Enabled = false;

   args.VisualItem.ToolTipText = "It is Disabled".

}

}

Thanks

Rajkannan

Raj
Top achievements
Rank 1
Iron
Iron
 answered on 07 Jun 2024
1 answer
57 views
Team,
    We are upgrading Telerik version from 2013 to latest version. 
    We are facing issues, while loading the value in drop down list in our application. We need your help to sort out that problem. 
But in the older version, its working fine.

This is impacting our upgrading project and move forward.
Please arrange the Team meeting to explain the issue and get the solution as priority.


Regards,
Nagaraju
Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jun 2024
0 answers
94 views

I started receiving the following error message yesterday when trying to create a new RadForm using UI for WinForms in VS2022.  Any idea as to how to resolve this?

 

Error occurred while running wizard.

Telerik.VSX.WizardEngine.ScenarioManagerException: Category: General
Item template: Telerik RadForm
Item name: TestRadForm.cs
DTE version: 17.0
Original message: Sequence contains no matching element ---> System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
   at Telerik.WinControls.VSX.TemplateProcessing.WFCoreScenarioManager.Launch(IServiceProvider serviceProvider, String itemName, String scenarioPath, String scenarioName)
   --- End of inner exception stack trace ---
   at Telerik.WinControls.VSX.TemplateProcessing.WFCoreScenarioManager.Launch(IServiceProvider serviceProvider, String itemName, String scenarioPath, String scenarioName)
   at Telerik.WinControls.VSPackage.VSCoreItemTemplateWizard.LaunchScenarioManager(ServiceProvider serviceProvider, Dictionary`2 replacementsDictionary)
   at Telerik.VSX.VSPackage.WizardBase.<>c__DisplayClass11_0.<Microsoft.VisualStudio.TemplateWizard.IWizard.RunStarted>b__0()
   at Telerik.VSX.VSPackage.WizardBase.CatchExceptionAndSendReport(Action action)
Bob
Top achievements
Rank 1
 asked on 05 Jun 2024
1 answer
126 views

Hi ,

We are using RadRibbonBar in our application and have a requirement to add a custom banner(RadLabel) in between the RadRibbonBar title and the Tab strip as per the attached mockup screen shot. 

 

 

Tried some approaches to achieve this , but it was not successful. Can you please let us know how we can achieve this requirement?.

 

Thanks.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 05 Jun 2024
1 answer
89 views

Hi,

is there a way to show a checkbox cell also when the user add a new row in a Virtual Grid?

The screenshot are taken from your code example, I only changed AllowAddNewRow to true.

 

Also, is there a way to set default values like the DefaultValueNeeded event of RadGridView?

 

Thank you!

Nadya | Tech Support Engineer
Telerik team
 answered on 31 May 2024
2 answers
85 views

I have data from a table (child) that may or may not contain values from another table (parent).  When I use the data in the pivot grid, I only see the party field values that exist in my child table, I want to be able to see all the values from the parent table

Example

                  Status      ACTIVE          INACTIVE         DISABLED       CANCELED

Positions

FIRST BASE                    1                           0                           0                    0
SECOND BASE               2                           1                            0                    0
SHORT STOP                 0                           0                           0                    0
THIRD BASE                  10                          10                         13                    12

 

Is this at all possible, by just feeding the data to the DataSource of the pivot grid?

 

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 31 May 2024
2 answers
67 views

Is there the ability to set the default STEP for a field that has not been used as an aggregate but is in the list for the user to select? We have an AGE field, and when the user drags it to either the ROW or COLUMN, the default STEP is 100. We need it to default to 10. Can we do this programmatically?

 

TIA.

Nadya | Tech Support Engineer
Telerik team
 answered on 31 May 2024
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
CheckedDropDownList
ProgressBar
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?