Telerik Forums
UI for WinForms Forum
2 answers
253 views

Hi,

I have a RadListView (ViewType = DetailView) that has a single column of data.

I'd like to make this column take up 100% of the width of the RadListView. How would I do that?

The design properties for the column only seem to allow a fixed pixel width (not percentage).

 Thanks,

 -Lou

Lou
Top achievements
Rank 1
 answered on 16 Apr 2015
1 answer
150 views

I am programatically adding two appointments to a rad scheduler, one with start DateTime in past and one with start DateTime on current date. The reminder only shows the appointment on current date. I also want to reminders for all appointments in the past as well. How can I achieve this.

The business scenario is when a user starts the application it should remind them of all appointments in the past from now immediately and the appointments on today 15 minutes before start.

Code below

Appointment appointment1 = new Appointment(DateTime.Now.AddMinutes(15).AddSeconds(5), new TimeSpan(1, 0, 0));
appointment1.Summary = "Appointment Today";
appointment1.Description = "Appointment Details";
appointment1.Reminder = new TimeSpan(0, 15, 0);
radScheduler1.Appointments.Add(appointment1);

Appointment appointment2 = new Appointment(DateTime.Now.AddDays(-1), new TimeSpan(1, 0, 0));
appointment2.Summary = "Appointment 1 day in past";
appointment2.Description = "Appointment Details";
appointment2.Reminder = new TimeSpan(0, 15, 0);
radScheduler1.Appointments.Add(appointment2);

radSchedulerReminder1.StartReminder();

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2015
1 answer
174 views

Hi,

I am using raddock control to host dock windows that as a child have a form with a docked gridview, as per picure attached.

 

My aim is to have the dockwindow width equal to the gridview hosted inside the form. I can achieve this the first time the dock window is created, but if the user changes the width of a column in the gridview I cannot figure out how to programmatically change the parent form's width to be equal to the gridview width, and subsequently the dockwindow width to be equal to the hosting the gridview form width.

The second picture attached displays the desired effect, the form having the same width as the gridview, and also the dockwindow hosting the has a similar width.

I would appreciate your input,

 

Regards,

 

George

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2015
3 answers
166 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.3K+ 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
867 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
217 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
109 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
284 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
510 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
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
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
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
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?