Telerik Forums
UI for WinForms Forum
1 answer
223 views

Hello,

Can anyone please resolve my little issue? I have a CommandBarStripElement on my rad form (please see arrow in attached image). I have a little dropdown that displays name of elements placed on CommandBarStripElement. I want to remove that drop down completely. I had done it in the past by setting one of its property but lost now. Please anyone help to remove it.

 

Thanks in advance

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Apr 2015
3 answers
112 views

Hi, I am using a RadGridView in which some of the cells might be read-only depending on the values of the data in other columns.
To simulate the read-only behavior, I use «CellBeginEdit» event has recommended in some threads of this forum.
My code looks like this:

private void radGridView_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
        {
            e.Cancel = !IsCellUpdatable();      
        }

The «IsCellUpdatable» function seen above returns true or false depending on if the cell has to be modified.
Up to that part, everything works properly.

The problem I encounter is that a user can still paste some data into the cell using the keyboard shortcut «Ctrl-V». The pasting command does not trigger the CellBeginEdit event, so the data is entered in the cell.  Thus the read-only behavior can be bypassed.  So, I need to prevent the pasting from somewhere else.  

I have tried using the grid's KeyDown event but it is not fired.  I then tried to override the grid's behavior and the ProcessKey event to catch the «Ctrl-V» command but then I do not have access to my form's «IsCellUpdatable» method (it is not static and cannot be). 

Any other suggestions to trap and prevent the paste command?

Thanks for your help

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Apr 2015
4 answers
296 views

Hi, I have a problem with charts not being displayed properly and being cropped to the left and right edges as the attached picture suggests. The code I use to construct the chart is as follows:

this.radChart.View.Margin = new Padding(15);
ChartTooltipController toolTipController = new ChartTooltipController();
toolTipController.DataPointTooltipTextNeeded += toolTipController_DataPointTooltipTextNeeded;
this.radChart.Controllers.Add(toolTipController);
this.radChart.ShowToolTip = true;
this.radChart.ShowPanZoom = true;
 
LineSeries dailySeries = new LineSeries();
dailySeries.BorderColor = Color.DarkBlue;
dailySeries.BorderWidth = 1;
dailySeries.PointSize = new SizeF(5, 5);
dailySeries.ShowLabels = true;
 
foreach (var r in (from q in DailyData orderby q.FIXING_DATE select q))
{
    dailySeries.DataPoints.Add(new CategoricalDataPoint(r.FIXING, r.FIXING_DATE) { Label = "old" });               
}
             
DateTimeCategoricalAxis categoricalAxis = new DateTimeCategoricalAxis();
categoricalAxis.DateTimeComponent = DateTimeComponent.Date;
categoricalAxis.MajorTickInterval = 21;
categoricalAxis.PlotMode = AxisPlotMode.OnTicks;
categoricalAxis.LabelFitMode = AxisLabelFitMode.MultiLine;
categoricalAxis.LabelFormat = "{0:MMM-yy}";
 
CartesianArea area = this.radChart.GetArea<CartesianArea>();
area.ShowGrid = true;
CartesianGrid grid = area.GetGrid<CartesianGrid>();
grid.DrawHorizontalFills = true;
grid.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDot;
 
//First assign the axis to the VerticalAxis property and then add the series to the chart
dailySeries.HorizontalAxis = categoricalAxis;           
 
this.radChart.Series.Add(dailySeries);
 

Can you pleaase suggest a solution to this problem?

 

Regards,

 

George

Dimitar
Telerik team
 answered on 14 Apr 2015
3 answers
524 views

Hi,

 I have a general question about what is the best/recomended approach for working on Telrik projects across multiple machines.

For example, I'm developing an application on my main development machine for a client and when I attend site to deploy (and possible modify) the application, I would typically copy the Visual Studio project to my laptop and then edit and deploy the project from there.

I realise to do so on my laptop, I would need to install the Telerik client libarires (which I have), but this approach of copying the solution to my laptop and trying to open/edit there, is not working too well (at all)

 What is the approach I should be taking to manage this particular use case?

Thanks,
Damian

 

Stefan
Telerik team
 answered on 14 Apr 2015
3 answers
243 views

When I add a summary row to my grid it works as expected: A summary row is added as a last (visible) line in the grid which remains visible when lines are added and one scrolls the grid.

01.Private Sub AddRadGridView1Summary()
02.        Me.RadGridView1.SummaryRowsBottom.Clear()
03.        Dim betaald As GridViewSummaryItem = New GridViewSummaryItem("Betaald", "{0:F2}", GridAggregateFunction.Sum)
04. 
05.        Dim summaryRowItem As New GridViewSummaryRowItem()
06.        summaryRowItem.Add(betaald)
07.        
08.        Me.RadGridView1.SummaryRowsBottom.Add(summaryRowItem)
09.        Me.RadGridView1.MasterView.SummaryRows(0).PinPosition = PinnedRowPosition.Bottom
10.    End Sub

However I would like to show the summary line at the "true bottom" of the grid, even when the grid contains zero (or just a few) lines as shown in the attached.

How could I achieve this?

 

Kind regards,

Raoul

 

 

Stefan
Telerik team
 answered on 10 Apr 2015
2 answers
173 views

I'm trying to have a range of my chart. The range as a slope of y = ax+b, plus a tolerance for the width of the band.

I know that I can draw a line with 2 points, but I'm trying to achieve something like the picture attached knowing that the user will be able to change the slope and tolerance via two spineditor.

 

Thanks

 

Vincent
Top achievements
Rank 1
 answered on 10 Apr 2015
5 answers
231 views

Hello,

In the provided sample project named BugsTracker, how did the textboxes in the detailPageView bind to a selected row of that bugsGrid?

I mean, there will be corresponding detail message shown in the textboxes when I select one row of bugsGrid.

How was that done?I read the codes but I couldn't find out the entry.

thanks in advance.

Stefan
Telerik team
 answered on 10 Apr 2015
1 answer
87 views

Hello,

we have a problem with option AutoDetectMdiChildren. The last created windows is not the active window, but the first

We can not use the radDock.ActiveDocument property, because the forms are not a DockWindow, it's a normal System.Windows.Forms.Form.

It is posible to set the last window as aktive window?

namespace TelerikWinFormsApp1
{
    public partial class RadForm2 : Telerik.WinControls.UI.RadForm
    {
        public RadForm2()
        {
            InitializeComponent();
            this.IsMdiContainer = true;
            this.radDock1.AutoDetectMdiChildren = true;
 
            Form1 frm = new Form1(); // this frm is aktive
            frm.MdiParent = this;
            frm.Text = "Child 1";
            frm.Show();
            frm = new Form1();
            frm.MdiParent = this;
            frm.Text = "Child 2";
            frm.Show();
            frm = new Form1(); // this form should be active
            frm.MdiParent = this;
            frm.Text = "Child 3";
            frm.Show();
        }
    }
}

Ralf
Top achievements
Rank 1
 answered on 10 Apr 2015
3 answers
1.9K+ views
hello,
I have a grid which i wanted to group by columns (there were cell formatting on cell elements)but after removing the grouping condition , there was a problem with the index of cell elements and formatting of cell elements got messed up.

I used me.beginupdate() and me.endupdate() in a sub handling me.groupbychnaged.  grid seems to be working fine. I tried me.refresh() and it is not working.

I am wondering what is the difference between these two methods. I thought they both do updating/refreshing grid

cheers,
Hristo
Telerik team
 answered on 09 Apr 2015
3 answers
310 views
Hi,
I am wondering if there is anyway to change focus color for whole grid cells or is there any property for setting TableElement focus color?

cheers,
Hristo
Telerik team
 answered on 09 Apr 2015
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
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?