Telerik Forums
UI for WPF Forum
3 answers
86 views
I've a RadGridView in few of my property pages.
The grid works fine, but I have a strange "rectangle" in the middle of the grid that I have no idea where it came from:
It looks like a scroll bar position marker, but it doesn't respond to anything, and it just "floats" there.
If I remove the grid, it is gone as well. 

(image attached)

Here is the grid code (binding names and header were replaced...)

<telerik:RadGridView Name="gdScoreGrid" DockPanel.Dock="Bottom" AutoGenerateColumns="False" IsScrolling="True" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                           IsReadOnly="True"  ClipboardCopyMode ="All" SelectionMode="Extended"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowColumnFooters="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding a}" Header="a" IsEnabled="False">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="aaa:"></telerik:CountFunction>
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aa}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ab}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ac}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ad}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ae}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding af}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ag}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ah}" Header="a a" IsEnabled="False"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aai}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aj}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ak}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding al}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding am}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding an}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ao}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ap}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aq}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ar}" Header="a?" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding as}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding at}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding au}" Header="?a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding av}" DataFormatString="{} {0:dd/MM/yyyy}" Header="ddd" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ax}" Header="a a" IsEnabled="False" />


            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

Any Ideas what might cause this to appear ? 

Ivan Ivanov
Telerik team
 answered on 18 Aug 2014
2 answers
144 views
I'm having a hard time finding an example of a gridview pulling data from a database. I've looked through the SDK, documentation, and google results for hours to no avail. This really should be easier to find as it has to be a very common request. While I'm at it, there should definitely be an example of this in the SDK (if it's already there, it's not obvious).

I want to do something that should be really easy:
1) Use a datagrid to view rows in a database
2) add/modify rows using buttons and another window
3) filter and sort

I found this overview to help explain what should happen, but I have no idea how to actually implement it: http://www.telerik.com/help/wpf/entityframework-overview.html

I don't fully understand all the differences between MVVM, code behind, etc., but the key statement from the link that I want to implement is this: "All operations such as paging, filtering, sorting, and grouping will automatically happen on the server without a single line of code." I'm guessing insert and update operations will require some code, but maybe not.

I have entity 6.1.x, telerik SDK, and an mssql database with example data already setup. I also have a project based on an example in the SDK that compiles and runs with no issues. All of the pieces should be in place, but I'm missing the critical component that explains how to transact data with entity/databases/whatever it's called.
Dimitrina
Telerik team
 answered on 18 Aug 2014
1 answer
169 views
Hi.

I have a RadCartesianChart with ScatterLineSeries like a polygon (closed figure) and i'd like fill result area like on the attached image.  RangeSeries is not suitable for this case. What ChartSeries class is better to use? How implement this feature correctly?

Sorry for my English.

Thanks.

Inna.
Petar Marchev
Telerik team
 answered on 18 Aug 2014
2 answers
284 views
Hi,

I want to show a RowDetails on a RadTreeListView but only when a row is selected AND only on spesifics rows.

So i try to bind the DetailsVisibility like this:

<telerik:RadTreeListView.RowStyle>
<Style TargetType="telerik:TreeListViewRow">
<Setter Property="DetailsVisibility">
<Setter.Value>
                            <MultiBinding Converter="{StaticResource ParameterStepSynchronizeRowDetailsVisibilityConverter}">
                                <Binding Path="HasDetails"></Binding>
                                <Binding Path="GridSelected"></Binding>
                            </MultiBinding>
                        </Setter.Value>
                    </Setter>
<Setter Property="IsSelected" Value="{Binding GridSelected, Mode=OneWayToSource}"></Setter>
</Style>
</telerik:RadTreeListView.RowStyle>

It works fine but when i scroll down until can't see this item and them i go top, i don't know why but when my selection change my converter is never call again.

How can i perform this?

Thank you in advance
Jerome
Top achievements
Rank 1
 answered on 18 Aug 2014
1 answer
131 views
Hi, the GridViewHeaderRow VerticalContentAlignment and VerticalAlignment properties don't seem to work. 

The VerticalContentAlignment and VerticalAlignment have no affect on the grid and the header text always appears aligned to the bottom.

I'm using your Office Black style as a base style and the xaml below.

Can you help me correct this issue please?


            <Style TargetType="telerik:GridViewHeaderRow">
                <Setter Property="Height" Value="18"/>
                <Setter Property="MinHeight" Value="18"/>
                <Setter Property="MaxHeight" Value="18"/>
                <Setter Property="VerticalContentAlignment" Value="Top"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="BorderThickness" Value="0,0,0,0"/>
            </Style>
Vanya Pavlova
Telerik team
 answered on 18 Aug 2014
3 answers
132 views
Is there a way for me to highlight the cell with a background when it's selected?
By default, the row highlight is completely suppressed by setting the background (attached screenshot)

Thanks
Vanya Pavlova
Telerik team
 answered on 18 Aug 2014
3 answers
152 views
Hi!

The new theme "VisualStudio2013" looks nice, but how do I apply it to my application?

Windows8 theme, I just added StyleManager.ApplicationTheme = new Windows8Theme(); before InitializeComponent(); But I cant find this for VisualStudio2013 Theme.

I get the color settings like: VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);

Is there any simple WPF C# example I look at?

Thanks!
Yana
Telerik team
 answered on 18 Aug 2014
4 answers
176 views
Hi,

I am overriding the Addlink method of my custom graphsource object that is derived the ObservableGraphSourceBase<NodeViewModelBase, MyLink>. I want to control the creation of the link  on certain conditions. If the conditions are met, I call the base.AddLink() method, otherwise I want to prevent the creation of link. How can I do this?

I tried not calling base.AddLink() but the link still appears on the diagram while it is not contained in the graphsource. How can I prevent or delete this link to be shown on the diagram?

Thanks,

Semih
Martin Ivanov
Telerik team
 answered on 15 Aug 2014
20 answers
1.0K+ views
Hi,
I am using Telerik WPF control rad calendar.
I want to highlight some dated in that and  want to disable some dates in runtime. Is it possible?

--Thanks
Shraddha
Lerner
Top achievements
Rank 1
 answered on 15 Aug 2014
6 answers
169 views
Hi,

i have a problem with sorting and filtering. In my project i want to display a collection, in which are the items from different class type but have some same-named properties.
i.e.
ViewModelClassA : ViewModelBase
ViewModelClassB : ViewModelBase
ViewModelClassC : ViewModelBase
they all have the properties: Name, Description, Comment.
So i displayed this collection and want to use the sorting and filtering functions. Aber the filter and the sorting effect will not be shown.
I have tried to just take one type of my class, then everything is ok. I see the filter and the sorting effect.

Is there a discussion about this problem or even better there is already a solution for that? Thanks a lot!

Ivan
Dimitrina
Telerik team
 answered on 15 Aug 2014
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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?