Telerik Forums
UI for WinForms Forum
8 answers
298 views

My problem is occured at RadScheduler control on Timeline View mode about scrolling.

Follow my attach image, when I click at number 1 view'll change 1 scale (Ex. 1 hour).

If I click at number 2 I'll got same result with number 1.

My question is how I change scroll range at number 2 (Ex. view move forward to 4 hour per click)

 

Thank you.

Peerapong
Top achievements
Rank 1
 answered on 01 Sep 2015
1 answer
286 views

Hi, I have a RadButton to which i set the next properties at runtime:

    RadButton btn = ((RadButton)radPanelButtons.Controls[radPanelButtons.Controls.Count - 1]);
            btn.Dock = DockStyle.Left;
            btn.Text = text;
            btn.TextImageRelation = TextImageRelation.ImageBeforeText;
            btn.Image = img;
            var imagePrimitive = ((ImagePrimitive)btn.ButtonElement.ImagePrimitive);
            ((TextPrimitive)btn.ButtonElement.Children[1].Children[1]).TextWrap = true; 
            btn.TextAlignment = ContentAlignment.TopLeft;
            btn.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;​

 The text moves next to the image, but the button size remains the same. See the picture.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Aug 2015
1 answer
381 views

Hi,

I want to print a loaded pdf file from a PDF viewer programatically.

I don't want to click on the print icon then display the preview and finally reclick on print button.

I tried to do this

 

This.pdfViewer.Print();

but the printed document doesn't fit the page size.

 Do you have a solution.

 

Regards.

 Mathieu

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Aug 2015
11 answers
350 views
i have one RadMaskedEdit bind to object, with date mask.
My object sets a value in radMasked and if i want to clear or set to null then radmasked does not clear.
the control does not set to empty.
how i do?

Hristo
Telerik team
 answered on 31 Aug 2015
2 answers
306 views

When the column header of a RadGridView is clicked, it fires the SortChanging event.

 In this event, I am executing the following code:

 

Telerik.WinControls.UI.GridViewTemplate gwt = (Telerik.WinControls.UI.GridViewTemplate)sender;
 
Telerik.WinControls.Data.SortDescriptor sort = (Telerik.WinControls.Data.SortDescriptor)e.NewItems[0];
 
Telerik.WinControls.Data.SortDescriptor sort1 = new Telerik.WinControls.Data.SortDescriptor()
{
    PropertyName = "sortorder",irection = System.ComponentModel.ListSortDirection.Ascending
};
 
gwt.SortDescriptors.Clear();
 
gwt.SortDescriptors.Add(sort1);
gwt.SortDescriptors.Add(sort);
 

This re-fires the SortChanging event, resulting in an infinite loop.

 How can I suppress the refiring of the SortChanging event?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Aug 2015
1 answer
173 views

I can't remove summary rows in grouped mode.

---------------------------
# Context:
- We have a grid ​with a group filter
- User add "​Count" to summary row top
- Summary row is added, with the ​Count
- User remove the ​"Count" from the summary row top

---------------------------
# Behavior:
- ​The summary rows ​themselves ​still displayed empty (the "Count" element have just been removed);
- There are no problems when there is no grouping, the summary rows are correctly removed;
- Adding a group (manually or programmatically) resolves the problems, maybe forcing the grid to refresh;

---------------------------
# Actual ​Code:
private void RemoveSummaryRowTop(string strFunction, string headerText)
{
    //Here we remove item from the summary
    _grid.MasterTemplate.SummaryRowsTop.ForEach(summaryRow => summaryRow
        .Where(row => row.Aggregate.ToString() == strFunction && row.Name == headerText).ToList()
        .ForEach(x => summaryRow.Remove(x)));

    //Here we remove empty summary rows
    _grid.MasterTemplate.SummaryRowsTop.Where(x => x.Count == 0).ToList()
        .ForEach(x => _grid.MasterTemplate.SummaryRowsTop.Remove(x));
}

---------------------------
# Notes:
- Everything seems correct while debugging ... item is correctly found and removed from summary row, then empty summary row is found and removed correctly from SummaryRowsTop. As a result, there is nothing left (count = 0) in _grid.MasterTemplate.SummaryRowsTop

- We observed also that when scrolling to content a bit bottom there are no empty summary rows. We are ​supposing this is some content which has not been loaded before ​scrolling. Since summary rows are not displayed here, we clearly thing about a bug with telerik UI update.

- ​We're using version 2015.1.331.40
- I've tested same code with latest version 2015.2.728

---------------------------
# Tried:
- _grid.Refresh();
- _grid.MasterTemplate.Refresh();
- _grid.Update();
- _grid.ResetBindings();
- _grid.Invalidate();
- _grid.MasterTemplate.SummaryRowsTop.Clear();
- _grid.SummaryRowsTop.Clear();
- _grid.TableElement.Update(GridUINotifyAction.Reset);
- _grid.TableElement.Update(GridUINotifyAction.ResetView);

---------------------------
# Only way it ​works is adding and removing a group (seems to force refresh of the view):
private void RemoveSummaryRowTop(string strFunction, string headerText)
{
    //Here we remove item from the summary
    _grid.MasterTemplate.SummaryRowsTop.ForEach(summaryRow => summaryRow
        .Where(row => row.Aggregate.ToString() == strFunction && row.Name == headerText).ToList()
        .ForEach(x => summaryRow.Remove(x)));

    //Here we remove empty summary rows
    _grid.MasterTemplate.SummaryRowsTop.Where(x => x.Count == 0).ToList()
        .ForEach(x => _grid.MasterTemplate.SummaryRowsTop.Remove(x));

    //Here we add then remove a group to force grid refresh
    GroupDescriptor descriptor = new GroupDescriptor();
    descriptor.GroupNames.Add("DESC_SERVICE", ListSortDirection.Ascending);
    _grid.GroupDescriptors.Add(descriptor);
    _grid.GroupDescriptors.Remove(descriptor);
}

Hristo
Telerik team
 answered on 31 Aug 2015
12 answers
125 views
I have a RichTextBox control on my form.  I change the font and type some text.  It looks fine on screen.  I export the RadDocument to RTF using the RtfFormatProvider.  It changes the font to Calibri, no matter what I initially set it at.  Is there some trick to getting the RadDocument to export out the proper font?

Dimitar
Telerik team
 answered on 31 Aug 2015
9 answers
262 views
I have a GridView with the Font set to Segoe UI; 9pt
The GridView is used as a add-in in another Winforms application (Microsoft Dynamics NAV).
But the font display a bit strange. See the attached screen capture.
As you can see the font of the other standard controls of that application display just fine.
And when I have the GridView in a separate winforms sample application, then it's also ok.
Any hints on that?
Dimitar
Telerik team
 answered on 28 Aug 2015
4 answers
125 views
I am getting a system null reference exception when the value element of a property grid item is a text and you double click on it. This is happening in the latest version of Telerik.WinControls.UI.dll 2015.2.728.40
Dimitar
Telerik team
 answered on 28 Aug 2015
8 answers
617 views
I have been working on an application that allows the user to click on a row in the RadDataGridView and drag and drop the row as an object to a separate control.  The drag and drop is itself is working, but I have come across an issue.

When the MouseDown event fires, the RadGridView.MasterGridViewInfo.CurrentRow is not updated with the correct selected row.  When the user drops the object on the other control, I am receiveing the wrong object.

If I click on a row, ensure that the selected item was updated, then drag and drop it works.

Is this a bug, or is there a work around?  The MouseDown event fires before the CurrentRowChanged event fires. 

Is there a way to set the CurrentRow based upon the row that was clicked?

Thanks.

Dennis
Abba
Top achievements
Rank 1
 answered on 28 Aug 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)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?