Telerik Forums
UI for WPF Forum
3 answers
1.6K+ views

Hello, i created a control, inheriting from RadGridView.

My custom control is ok, i created a style for it in app.xaml to put some settings.

The problem is, i want to change the columnheader's color, the foreground color of headerColumn's text, how can I do it pls ?

I also have another question, is it possible to add a main title to my control ? Like a main Header.

 

Thanks in advance :)

Dilyan Traykov
Telerik team
 answered on 05 Jun 2017
1 answer
153 views

Hi,

I have created a custom shape and when i use the shape as a connection target, the connection does not bound to my shape. In other words the shape color does not change (as a RadDiagramShape does when mouse goes over it) when I try to choose the shape as a connector target. Also "e.Connection.Target" in ConnectionManipulationCompleted event is null.

It works correctly as a connection source.

Is there any setting for my custom shape?

Thanks.

Martin Ivanov
Telerik team
 answered on 05 Jun 2017
0 answers
69 views

I'm using MinuteTimeSpan Component in TimeSpan Picker. it takes value as 00 when i select 60. 

how to select 60 minutes as it is.

 

 

Thanks,

Sarathi

Sarathi
Top achievements
Rank 1
 asked on 05 Jun 2017
1 answer
114 views

I'm using an older version. Do the new versions have built-in support for the new (?) imagerySet values? If not, how would I add them? I've used my own or inherited versions of OSM classes, but the Bing classes are more complex and have more levels of inheritance. Below is the documentation for the static map, but I don't know if this applies to Tiles, too.

https://msdn.microsoft.com/en-us/library/ff701724.aspx

Aerial – Aerial imagery.
AerialWithLabels –Aerial imagery with a road overlay.
CanvasDark - A dark version of the road maps.
CanvasLight - A lighter version of the road maps which also has some of the details such as hill shading disabled.
CanvasGray - A grayscale version of the road maps.
Road – Roads without additional imagery.

Martin Ivanov
Telerik team
 answered on 05 Jun 2017
3 answers
469 views

Hello, I have RadGridView and grouped items in it. I want to collapse the groups and I can do it. But if any property of item will be changed, the group contains this item will be expanded automatically. I want this group to be expanded regardless of the property changes. Is it bug or feature of RadGridView? Tell me, please, how I can fix it?

I wanted to attach archive with sample project. But forum allows me to attach pictures only

Egor
Top achievements
Rank 1
 answered on 05 Jun 2017
8 answers
350 views
I am using GridView's export functionality of 2016.1.217.45 version, see below the code snippet.
string extension = "xls";
          SaveFileDialog dialog = new SaveFileDialog()
          {
            DefaultExt = extension,
            Filter = String.Format("{1} files (*.{0})|*.{0}|All files (*.*)|*.*", extension, "Excel"),
            FilterIndex = 1
          };
          if (dialog.ShowDialog() == true)
          {
            using (Stream stream = dialog.OpenFile())
            {
              m_oGridView.Export(stream,
               new GridViewExportOptions()
               {
                 Format = ExportFormat.Xlsx,
                 ShowColumnHeaders = true,
                 ShowColumnFooters = false,
                 ShowGroupFooters = false,
               });
            }
          }

 

Following are the issues observed, please provide solutions or workarounds:

  1. The first row in the grid is not getting exported as second row in excel, instead it is appearing in the first row of excel after the row headers. See the snapshots - "GridUISnapshot.JPG" and "ExcelSnapshot.JPG".
  2. If the users specifies the extension of the file as ".xlsx", it is getting exported but not able to open in excel 2016 version, the error message is shown in the snapshot - "XlsxExtensionOpenError.JPG".  Since in File save dialog, user can specify .xlsx extension as well. In code we are specifying the format to be exported is xlsx, but still it is not compatible.

Thanks,

Viksit

Flemming
Top achievements
Rank 1
Veteran
 answered on 02 Jun 2017
1 answer
456 views

I'm playing around with the developer example projects for the gridview, specifically the "ComboboxColumnItemsSourceBinding", and I enabled the Search Panel on the Gridview where FilterMemberPath is set, but noticed it doesn't search inside the ComboBox Column. If I type for "Webber" in the Search Panel it comes up with nothing.....but the filter control for that column will work.

Is there something I am missing in the demo that I need to add to get this functionality working? Or do I need to go as far as making my own predicate and use FilterDescriptor<T>?

Stefan
Telerik team
 answered on 02 Jun 2017
3 answers
772 views

1) The below numeric input is always displaying 0 on screen load. I don't want to show anything. Latitude is defined as Decimal? is ViewModel.

2) I want this to allow only values between 32 and 38 upto 5 decimal digits.

How can I do this ? 

<telerik:RadMaskedNumericInput AllowInvalidValues="False" Value="{Binding Latitude, Mode=TwoWay}"  AutoFillZeros="False"  FlowDirection="LeftToRight" Placeholder=" "
                                              HorizontalAlignment="Left" AutoFillNumberGroupSeparators="false"  
                                              Mask="" SelectionOnFocus="SelectAll"  ></telerik:RadMaskedNumericInput>

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Jun 2017
4 answers
169 views

Hi to all,

I would avoid ovelap between RadDiagramShapes (all rectangle items).

When I set IsSnapToGridEnabled="False" IsSnapToItemsEnabled="true" and move RadDiagramShapes, SnappingEngine uses snap on myshape aligned to other ractangle.

If I try to user MyMovedShaped.Bounds.Rect.IntersectWith(OtherRectangleShape) returns me ever True.

I'm using this code:

01.private void topRadDiagram_Drag(object sender, DragRoutedEventArgs e)
02.{
03.    var diagram = (RadDiagram)sender;
04. 
05.    foreach (var item in e.Items)
06.    {
07.        var currentItem = (RadDiagramShape)item;
08. 
09.        var shapeItem = (GruppoPianoDiCarico)currentItem.Tag;
10. 
11.        foreach (RadDiagramShape otherItems in diagram.Items)
12.        {
13.            if (otherItems.Tag.GetType() == typeof(GruppoPianoDiCarico))
14.            {
15.                var shapeOther = (GruppoPianoDiCarico)otherItems.Tag;
16. 
17.                if (shapeItem != shapeOther)
18.                {
19.                    if (currentItem.Bounds.IntersectsWith(otherItems.Bounds))
20.                    {
21.                        //Da ripristinare le coordinate originarie
22.                        currentItem.Position = new Point(currentItem.Position.X - (e.MousePosition.X - e.StartMousePosition.X),
23.                            currentItem.Position.Y - (e.MousePosition.Y - e.StartMousePosition.Y));
24.                    }
25.                }
26.            }
27.        }
28.    }
29.}

 

Petar Mladenov
Telerik team
 answered on 02 Jun 2017
2 answers
167 views

Hi. i use RadGridView including FilteringMode is FilterRow.

in this case, How to delete the filter Control? I want to use only default FilterRow function.

and  can i delete only Header Part in FilterRow?

 

If it is possible, Please give the solution, and Example Code. (Please Do not remark about 'ShowSearchPanel = true', I want to know only about FilterRow.)

 

Thanks

 

Dilyan Traykov
Telerik team
 answered on 02 Jun 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?