Telerik Forums
UI for WinForms Forum
3 answers
152 views

Hi,

     is it possible to PIN columns like GridView?

I would like to pin the Total columns that i have moved in first position 

Thanks

 

Regards

 

Manuele 

Stefan
Telerik team
 answered on 16 Apr 2015
3 answers
1.2K+ views

How can I create a button inside a column for some row and not the other.

 

I tried to use the command line but this will add a button to every row

 

here is what I have done

 

            GridViewCommandColumn commandColumn2 = new GridViewCommandColumn();
            commandColumn2.Name = "UpdateInfo";
            commandColumn2.UseDefaultText = true;
            commandColumn2.DefaultText = "View More Info";
            commandColumn2.FieldName = "UpdateInfo";
            commandColumn2.HeaderText = "";
            radGridView1.MasterTemplate.Columns.Add(commandColumn2);
            radGridView1.CommandCellClick += new CommandCellClickEventHandler(radGridView1_CommandCellClick);

 

How can I only show the button for some rows and not the others

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Apr 2015
8 answers
852 views
Hi, my name is Steven from a software company. We are developing a project to the government using Telerik Window Component.
We are facing an slow performance issues in the client PC with the RadForm. 

1) When I tried double click the .exe file to load the first page (We use RadForm as first page) of the window application. The Form only contained 2 RadTextbox and 2 RadButton, but it took 10 seconds to be appeared after double clicked on the .exe. The form doesn't have any connection to the database.

2) When I tried to click to open another form (RadForm), it took about 11 seconds to complete loading the form (This form contained more telerik controls).
 
Does it caused the slowness with more than 20 Rad Controls in a page?

Appreaciate if anyone could help me on this issues.

Thanks.
Hristo
Telerik team
 answered on 15 Apr 2015
1 answer
209 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
96 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
258 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
488 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
210 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
139 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
186 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
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
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
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?