Telerik Forums
UI for WinForms Forum
1 answer
86 views

 Hi,
    I want to remove or hide the Add or Remove Buttons / Customize... menu only. If i set like  this CommandBarStripElement4.OverflowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed then whole overflow button will hide when i resize the screen to small. 
   I want to remove to hide only this two things Add or Remove Buttons / Customize...  from OverflowButton.

 

Thanks and Regards
Aravind

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Aug 2024
1 answer
70 views

I have a MaskedEditBox called mtbText bound to a string property like this:

mtbText.DataBindings.Add(nameof(mtbText.Value), customerSearch, nameof(customerSearch.Text), false, DataSourceUpdateMode.OnPropertyChanged);

        public string? Text
        {
            get => _text;
            set
            {
                if (_text != value)
                {
                    _text = value;
                    OnPropertyChanged(nameof(Text));
                }
            }
        }

Sometimes I need a specific mask like SSN or phone # and sometimes I don't.  The UI resets the properties on the single mask control depending on need. If I bind to a specific mask like this (say a SSN or phone #) it works fine. However sometimes I need a mask that will allow anything. I tried aaaaaaaaaa and a few other combination but these won't let me enter blank spaces.  If I set the MaskType to None it allow the spaces but doesn't bind to the property.

mtbText.Mask = string.IsNullOrEmpty(item.Mask) ? "aaaaaaaaaa" : item.Mask; 

mtbText.MaskType = MaskType.Standard;

mtbText.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;

What mask can I use that would allow me to enter something like 123 Main Street and still bind to the object property.

Thanks

Carl

 

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Aug 2024
1 answer
52 views

Hi Telerik support team,

I got into problems with a gridview. It seems that the grid losses focus and directly gets focus back. This happens every 1 or 2 seconds. I’ve created a small application with a simple grid with datasource and handlers for the Got- and LostFocus. Add a breakpoint on it and it will hit constantly.

My problem gets bigger because the datasource also gets kind of refreshed. In the sample application I’ve a class Person. Put there a breakpoint on the Name getter and every second or 2 it will hit.

Start the application, don’t click around, just wait. The breakpoints will hit.

What’s happening with the focus on the grid?? Why is it getting ‘stolen’? Can I prevent this behavior?

In the sample application look into the FocusIssueForm.

Regards,

Daniel

Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2024
1 answer
60 views

Hi,

I have an RadDropDownList filled with some record of a table (ttSoc) using DataSource and bounded functionality.

I have a button that lets me add/delete records from this table (ttsoc).
Impossible to update the RadDropDownList

 

my code:

in the form load I run ChargeCodeSociete('InitBe').

In the click button  I run ChargeCodeSociete('affiche').

METHOD PRIVATE VOID BtnSociete_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):

// On instancie la classe
        oFrmSociete = NEW frmSociete().
        // En attente du retour de la form en mode dialog box
        WAIT-FOR oFrmSociete:ShowDialog().

oongDescriptionEtudeGeneral:ChargeCodeSociete('Affiche').

RETURN.

END METHOD.

 

IN oongDescriptionEtudeGenral FORM

METHOD PUBLIC VOID ChargeCodeSociete( INPUT ipcMode AS CHARACTER ):
        CASE ipcMode:
            WHEN 'InitBe' THEN DO:
                beSociete= NEW fichier.description_etude.be.beSociete().

                beSociete:ReadbeSociete(OUTPUT DATASET dsSoc).

                //Associer le query du dataset au probadingSource
                bsSociete:HANDLE = DATASET dsSoc:HANDLE.
            END.
            WHEN 'Affiche' THEN DO:
                DATASET dsSoc:TOP-NAV-QUERY():QUERY-PREPARE("FOR EACH ttSoc").
                DATASET dsSoc:TOP-NAV-QUERY():QUERY-OPEN().   


                DropDownListCodeSociete: ?????

            END.
        END CASE.

 

thank you for your feedback

                                                                                              
Dinko | Tech Support Engineer
Telerik team
 answered on 26 Aug 2024
4 answers
56 views

Hello everyone, I have successfully changed the scroll bar color of the RadRichTextEditor control. However, no matter how I try to set and modify the color of the button on the scrollbar, it remains white. How can I achieve this? Thank you.

Kevin
Top achievements
Rank 2
Iron
Iron
 updated answer on 22 Aug 2024
1 answer
54 views

Using the expression editor in a gridview, I'm trying to determine how much time in minutes has passed between a column that only has time and NOW()

 

Column:  arrived_time (time)

something along the line of: DATEDIFFMINUTE(arrived_time, NOW()) >= 15

since arrived_time is time only, it seems to fail when compared to NOW().

Is there a way to add today()+arrived_time to get a proper datetime value?  

End goal is if more than 15 minutes has passed since arrived_time then change RowBackColor

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Aug 2024
1 answer
66 views

Hi, 
       I want to drag and drop row in same grid like reorder the row. Is it possible to without create custom control ?
Actually we have file names in each row, user want to merge the file based on drag and drop, So user from which place to which place drop the row, we will merge that two file and refresh in grid. So for this we want drag and drop function.

I tried RadGridView.AllowRowReorder property to true , but still cant drag and drop the row. This is page load code for bind data in grid.

Private Sub LoadData()
        ' Create a DataTable and define its structure
        Dim dataTable As New DataTable()
        dataTable.Columns.Add("ID", GetType(Integer))
        dataTable.Columns.Add("Name", GetType(String))
        dataTable.Columns.Add("Age", GetType(Integer))

        ' Add some rows to the DataTable
        dataTable.Rows.Add(1, "John Doe", 30)
        dataTable.Rows.Add(2, "Jane Smith", 25)
        dataTable.Rows.Add(3, "Sam Brown", 35)

        ' Bind the DataTable to the RadGridView
        RadGridView1.DataSource = dataTable
    End Sub

Pls provide sample code in vb,

Thanks and Regards
Aravind
Nadya | Tech Support Engineer
Telerik team
 answered on 19 Aug 2024
1 answer
63 views

Hi folks.  There seems to be a lot of questions about this and every answer I could find pointed me at some web solution.  This is Winforms and nothing I've seen so far has been in line with my current issue - so here goes!

WinForms .Net 4.7.2 VB

A simple grid (See gridPIC.png)

3 Columns:

  • Decimal DecimalPlaces = 0  FormatString = {0:N0}
  • Decimal DecimalPlaces = 2  FormatString = {0:N2}
  • Decimal DecimalPlaces = 4  FormatString = {0:N4}

Export property settings:

  • HiddenColumnOption = HiddenOption.DoNotExport
  • SummariesExportOption = SummariesOption.DoNotExport
  • ExportVisualSettings = False


When using ExportFormat = SpreadStreamExportFormat.Csv you can see the integer shows 111, the 2 decimal data shows 222.22 and the four decimal data shows 333.3333 as expected. (See csvPIC.png)

But when using ExportFormat = SpreadStreamExportFormat.Xlsx the results are incorrect (*See ExcelPic.png)

 

I was expecting that the export file would include the format information.  I thought perhaps because I'd set spreadStreamExport.ExportVisualSettings = False that this was the cause but I can flip that to True and the output is identical.

The DATA that gets into Excel IS CORRECT.  It's just not formatting the cells as expected.

Is there any way for spreadStreamExport to output the proper Decimal formatting? 

If yes, can you point me at a sample?  C# is just fine if you folks aren't vb.net users.

 

Thank you all!

Curtis

 

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Aug 2024
4 answers
1.9K+ views

I have  abound gridview that i have added a checkbox column to as the first column.
i cannot check any checkboxes in any row, only able to check the headercheckbox which selects all checkboxes of every row.

Dim checkboxcolumn As New GridViewCheckBoxColumn
checkboxcolumn.DataType = GetType(Integer)
checkboxcolumn.Name = "SelectedColumn"
checkboxcolumn.FieldName = "Select"
checkboxcolumn.HeaderText = "Select?"
GV_Assets.MasterTemplate.Columns.Add(checkboxcolumn)
checkboxcolumn.EnableHeaderCheckBox = True

 

Julian
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 15 Aug 2024
8 answers
820 views
Hi,

I am unable to highlight the full dropdown list (including the text box and button) 

The attached file will show how it is currently highlight but would like to highlight in the same way(color and thickness) as the textbox in the attached file. I used the below code but it did not highlight the button.

Thanks in advance for your help.



radDDL.DropDownListElement.TextBox.Fill.BackColor = Color.Red;
Todor
Telerik team
 updated answer on 12 Aug 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
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
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
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
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?