Telerik Forums
UI for WinForms Forum
1 answer
158 views

We’re long time Telerik subscribers. I love telerik but but i dread seeing ‘that’ notice that theres a new upgrade to the control set as i know i’ll be fiddling about with source to get things to compile. Winforms. 

Firstly, licx files arent updated with the version number of the new control set. Its a bit concerning, but at least i can do a [search/replace in files ] on old to new version number to fix this quickly.

secondly, when adding to the list of references, which file path should we be searching for an assembly? My solution has many projects and ive found several file paths. Some to the Telerik install directory (eg c:\program files(86)….), one or two from my user\username 🤯many from the lib\telerik directory beneath the solution\project directory.

i think ive finally realised that the update application works by switching out just those references from the old, to the new lib base file path for us. But id like confirmation please.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Oct 2023
2 answers
194 views

Hello!

I have two questions:

1) I'm trying (without success) to change the background color of my Application Menu (button?) Button on the left side of the Ribbon that opens (in my case) to the Backstage from inside Visual Style Builder.  Can you point me to the correct element please?

2) This one is a little more difficult to explain - I'll be attaching before/after images in case I'm not as clear as I'd like to be.

using RadRibbonForm there are Tabs.  Under the Tabs are Groups.  These groups contain buttons, lists, etc that live on the Ribbon.

I'm trying to set the background color for these groups and while I was successful in doing that, there's an unpleasant space/gap/padding? that surrounds the "group"

How do i remove that gap?  Also, how do i make this fill rectangular?  There should be no 'gradient' going from the background color - to white.

I can make the mods in-code if needed, the best choice would be to learn where to update these properties in Visual Style Builder.

 

Kindest regards,

Curtis.

 

nely
Top achievements
Rank 1
Iron
 answered on 08 Oct 2023
1 answer
151 views
I have a chart with 2 stacked columns in each category but they are right beside each other.  Using your example they show up together but I would like for there to be some space at the location indicated in red on the picture.  It looks like the older chart had an overlap percentage that would have made this happen and the other frameworks have a space property but I have only found a gaplength in Winforms.  Can someone point me to the Space property for a barseries/CategoricalAxis?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Oct 2023
1 answer
155 views

Hi,

I have a grid within a panel and I want to adjust the panel height based on the total height of the grid.

Using this code:


Me.Panel1.Height = Me.grid.TableElement.RowHeight * Me.grid.RowCount + grid.TableElement.TableHeaderHeight + 5

 

It seems to work ok if I use "Fluent" theme but not for "VisualStudio2012Light". I have attached a sample form.

Any explanation for this and how do I fix it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2023
4 answers
125 views

Hello, 

Telerik have demo Richtexteditor - Document API project example with 3 buttons (bold, italic and underline) . Can you please send me any example or project how to add there two FlowDirection buttons (LTR and RTL) with toggled states as in the first look realization?

Thank you!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Oct 2023
1 answer
123 views

Hi all,

Within controls such a RadGridView, is there a simple way like a property to mark a column as able to decrease  or increase its width when the scrollbar is displayed or hidden, so that the set of columns would always fill all the parent control width without either overwritting the last column right part when the vertical scroolbar is shown or having to  show some unused reserved space when the scrollbar is hidden. 

I understand that it is always possible to use events to manually adjust each width for each control, but this is very cumbersome.

Wouldn't it nice to have a control overall property such as (hypothetically)  gridview.AdjustColumnWidthToScrollBarDisplay ?

Or what is the simplest method ?

Thanks for your answers

Patrick

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Oct 2023
2 answers
316 views

Is there a way to hide the File -> New Menu Option?

I tried this but it returns "Nothing" indicating the backstageTabItemNew item wasn't found.... maybe there's another name for it?

Dim FileNewItem As BackstageTabItem = TryCast(Me.RichTextEditorRibbonBar1.RibbonBarElement.BackstageControl.Items("backstageTabItemNew"), BackstageTabItem)

Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2023
1 answer
209 views

Hi! 

In my code I'm creating new appointments in a scheduler by dropping them from a radGridView. Any ideas how can I get the last created appointment element of the scheduler, or the appointment element assigned to the newly created appointment?

private void svc_PreviewDragDrop(object sender, RadDropEventArgs e)
        {
            SchedulerCellElement schedulerCell = e.HitTarget as SchedulerCellElement;

            if (schedulerCell != null)
            {
                GridDataRowElement draggedRow = e.DragInstance as GridDataRowElement;
                if (draggedRow != null)
                {
                    if (draggedRow.Data.DataBoundItem != null)
                    {
                        if (draggedRow.GridControl.DataSource != null)
                        {
                            MainJobObject draggedMainJobObject = (MainJobObject)draggedRow.Data.DataBoundItem;
                            AppointmentWithObject appointment = new AppointmentWithObject(schedulerCell.Date, schedulerCell.Date.AddHours(1), draggedMainJobObject.Customer, " / ", draggedMainJobObject.MachineType);
                            appointment.Start = schedulerCell.Date;
                            appointment.End = schedulerCell.Date.AddHours(1);
                            appointment.AssignedMainJobObject = draggedMainJobObject;
                            appointment.ResourceId = schedulerCell.View.GetResourceId();
                            scheduler.Appointments.Add(appointment);

                            //CustomAppointmentElement appointmentElement = get the appointment element that was just created;
                            //if (appointmentElement != null)
                            //{
                            //    appointmentElement.ChangeStatus(2);
                            //}                         
                        }
                    }
                }            
            }          
        }


Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2023
1 answer
140 views

Hi!

How does one programmatically scroll through the resources (vertical scroll) in a timeline view scheduler that is grouped by resources?

Thanks!

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Sep 2023
1 answer
157 views

Hi,

I am having two issues with a RadGridView and need some help.

In the attached movie, there is a gridView with two "optional" columns : one with check boxes and one with buttons.

This is to allow a user to modify values in the associated DB Table either individually with the buttons or as a group via the check boxes.

However, I want only one column active at any time. The selection being done via the upper left label.

Note that  I do not want the CommandColumn to be hiden, as the buttons labels also convey status information.

The problems are as follow :

1- when the form is loaded, I only want to show the lines where buttons in the "ready for update" state (written "Mettre à jour"). So I hide the other rows labelled "Not Ready". Doing this in the CellFormatting event works, but due to the virtualisation, as you can see in the attached movie, if the user move the colums too fast, the Not ready cells are temporarily displayed ( I tried a MasterTemplate.Refresh but this crash the form load with an index invalid exception in Telerik code).

How can I solved this ?

2 - when I click on the label (used as a button) to show the Check box column, it should change color in grey. As you can see, it does it (on the whole column as expected) but only if I click on any of the column button.

Here is the CellFormatting code :

  private void gvMajBoutique_CellFormatting(object sender, CellFormattingEventArgs e)
  {
      if (e.CellElement is not GridCommandCellElement commandCell) return;
      var row = commandCell.RowInfo;
      if (row == null) return;

      string ugs = row.Cells["Sku"].Value.ToString();
      if (ugs != null && SuiviDesModifications.ContainsKey(ugs))
      {
          StatusModifsPrixBoutique state = SuiviDesModifications[ugs];

          if (state == null) return;

          if (state.CurrentState == ChangeButtonState.UpdateReady)
          {
              commandCell.CommandButton.Text = state.CurrentButtonName;
              row.IsVisible = true;
          }

          else if (state.CurrentState == ChangeButtonState.UpdateForbidden)
          {
              row.IsVisible = false;
          }

          if (StatusColumnEnabled)
          {
              commandCell.CommandButton.ButtonFillElement.BackColor = Color.PapayaWhip;
              commandCell.CommandButton.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
              commandCell.CommandButton.Enabled = true;
          }
          else
          {
              commandCell.CommandButton.ButtonFillElement.BackColor = Color.LightGray;
              commandCell.CommandButton.ButtonFillElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
              commandCell.CommandButton.Enabled = false;
          }
          // This crash the form //gvMajBoutique.MasterTemplate.Refresh();
      }
  }

Thanks for your answers

Patrick

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Sep 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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?