Telerik Forums
UI for WinForms Forum
1 answer
91 views

I would be great if the RadProgresBar control was a bit more tolerant of values whih are > max value.

OK, so this is a programming errot, but the error message the user sees is a bit extreme - a .NET error.

Perhaps the Telelrik framework might just ignore these values which are > max value , and just set to 'max value'.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2022
1 answer
133 views

I've made the change to the App.config file to set to use the 'Fluent' Theme for all forms everywhere in the application:

 <add key="TelerikWinFormsThemeName" value="Fluent" />

..which looks perfect in the Designer, but the runtime is still using some other theme.

 Designer

 Runtime

 

 

The form does not specify a Theme, so I thought it would use the 'Fluent' theme which I specified.

Do I need to do something else to make the runtime form use the right theme? I'm confused....

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2022
1 answer
146 views

I'm experimenting thia for almost one week. I almost read every post in forum and also other sources. problem is simle. I want to flash a grid cell when value changes. It works them column and row count is small but when grid is in fullscreen form with 20 columns and lets say 100 rows, cells sometimes blink, sometimes not. I noticed that when you decrease blink time it doenst work. when you go up to 150 ms and up it works. this tells me it has something todo with refresh rate or something. same problem exists with other solution approaches in forum.

Can I kindly ask you yo provide a working a flashing cell sample. I really tried to use every event, every suggestion in this forum.... and also its not first time I face the problem. Last year I had again and at the end I gave up and didnt use flashing function in my project. But this time I reaaly need this.

And also I should mention that this is a very common practice nowadays, so radgrid should able to handle that.

best.

' at the form load event..   
radGrid1.DataSource = sampleDataTable()
   
Private Function sampleDataTable() As DataTable
        Dim table1 = New DataTable("prices")
        table1.Columns.Add("id")
        table1.Columns.Add("Symbol")
        table1.Columns.Add("BuyPrice")
        table1.Columns.Add("MarketPrice")
        For i = 1 To 20
            table1.Columns.Add("Extra Column " & i)
        Next
        For i = 1 To 100
            table1.Rows.Add(i, "Stock A, "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10")
        Next
        Return table1
End Function
    
Private Sub radGrid1_CellValueChanged(sender As Object, e As DataGridViewCellEventArgs) Handles radGrid1.CellValueChanged

        radGrid1.Rows(e.RowIndex).Cells(e.ColumnIndex).Style.BackColor = Color.Lime

        Dim t1 As Task = Task.Run(Sub()
                                      System.Threading.Thread.Sleep(180)
                                      radGrid1.Rows(e.RowIndex).Cells(e.ColumnIndex).Style.BackColor = oldcolor
                                  End Sub)

End Sub
    

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

' change some random cells

        Dim r As Integer = random.Next(1, 10)
        Dim c As Integer = random.Next(1, 6)

        radGrid1.Rows(r).Cells(c).Value = Now.ToLongTimeString

End Sub
    

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2022
1 answer
105 views

Hi all, I'm trying to do something very similar to the WPF Custom Shape example; add controls to a shape in some sort of container (panel,...)

WPF Example desired in Winforms

Is there a Winforms version of this example somewhere?

Future Request:  I think (IMHO) that there should be a section for this.  Defining a Custom Shape, Adding Controls, Setting Custom Connection Points, Adding the new shape to the Toolbox, Configuring the Properties Editor, and setting up Drag-Drop.  If you are creating a custom shape all of these are parts of the effort.  The Documentation is all spread out over each element with no real guiding document to cover what all is possible/necessary to get a working shape (that i could find anyway).

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2022
1 answer
127 views

Hi

Is there any way to use callout instead of tooltiptext in radstepprogress control

such that when i point to StepItemIndicatorElement the callout display the first header text

if yes , can you give me a sample please

Best regards

Atfat

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jan 2022
1 answer
209 views

Hi

Is there any way to use callout instead of tooltiptext in radstepprogress control

if yes , can you give me a sample please

Best regards

Atfat

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jan 2022
1 answer
172 views

hi

how show cell time like hh:mm

this code have error
GridViewDateTimeColumn column = (GridViewDateTimeColumn)this.radGridView1.Columns["Date"];

column.FormatString = "{0:hh.mm}";      //hour.minutes
thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jan 2022
1 answer
306 views

Hi.

Is there any way to remove or hide the indicator icons shown in row header?

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Jan 2022
1 answer
150 views

Hello,

I have an MDI parent form with a radcommandbar across the top.

The commandbar contains 2 commandstripelements which have several buttons

One is left justified and one is right justified

Everything is working fine except when I deploy it to a touch enabled / touchscreen client.  Some users are accidentally dragging the commandstripelements into one another and even dragging them off the command bar making them disappear entirely.

Is there a way to disable dragging or reordering of the commandstrips.   Ideally I don't want any of the items to move at all

I have already tried

For each commandstripelemnt I set

            commandBarStripElement1.AllowDrag = false;
            commandBarStripElement1.AllowDrop = false;
            commandBarStripElement1.EnableDragging = false;
            commandBarStripElement1.EnableFloating = false;

For each button in either strip element I set

buttonX.AllowDrag = false;

I even tried returning e.Canceled in BeginDrag

Nothing seems to be working 

Any help would be appreciated

 

Thanks

Kevin


 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Jan 2022
1 answer
1.4K+ views

Hey there!

I was tasked with fixing the memory leak problem of some programs, and since they have more than 100k lines combined i wanted to know something before starting :D

I want to make sure that this is the correct way of clearing/cleaning an object:

/**************************/

tmpPanel:Dispose().

tmpPanel = ?.

IF VALID-OBJECT(tmpPanel) THEN DELETE OBJECT tmpPanel NO-ERROR.

/**************************/

Am I missing something? Do I need to do anything else?

And can I do this dynamically? By sending the object in an argument and running the "Dispose" method by invoking it. Does that work as well?

And If i assign the object i want to clear/clean before doing clearing/cleaning it to another variable, should I also clear/clean such variable?

 

JP

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jan 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
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
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
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?