Telerik Forums
UI for WinForms Forum
1 answer
193 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
164 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
332 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
143 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
641 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
2 answers
231 views

All -

I'm trying to get the plain text as well as the HTML formatted text from my RichTextEditor, but the GetPlainText method is always returning back empty string. The GetContent method works just fine.

Is this a known issue or am I doing something wrong? 

Thank You

string sPlainText = rtbSMTPMessage.GetPlainText();
string sHTMLText = rtbSMTPMessage.GetContent("html");

Joy
Top achievements
Rank 1
 answered on 27 Aug 2015
4 answers
156 views

Hi I am having trouble merging the main menu with an MDIChild form.  What i what to have happen is the MDI child menu is inserted into the main menu at particular points.  For example:

Main Menu:     

Dimitar
Telerik team
 answered on 27 Aug 2015
5 answers
1.0K+ views

Hello,

I've created a custom RadListView following this page: Custom Items | UI for WinForms

However when I click a ButtonElement in RadListView, the correspondent ListViewItem is selected. How can I avoid this?

See also "image.png".

Thanks in advance,

Luca Scalzotto

Stefan
Telerik team
 answered on 27 Aug 2015
1 answer
274 views

Hi,

 The label in my Pie Chart has the same backcolor as the Series.  How do I make that white?

 

Laura

Ralitsa
Telerik team
 answered on 27 Aug 2015
3 answers
299 views
I am using Telerik Controls Q12013 and it is working fine in default (100%) OS but I am facing Layout problem RadMessageBox with 125% OS zoom in Windows 7.(Desktop [Right click] > Personalization > Display > 125% Zoom). I am facing while using Theme "VisualStudio2012Light", "TelerikMetro", and "TelerikMetroBlue" but its working fine in default Office2007 theme. I have attached some images for your better understanding. Kindly look into this issue and I am waiting for your reply.
Dimitar
Telerik team
 answered on 26 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)
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?