Telerik Forums
UI for WPF Forum
2 answers
106 views
Hi,
I have a requirement to allow the user to drop an object onto the grid even if the grid has no rows. However my callback methods for the AddDragOverHandler and AddDropHandler aren't called if I'm not over a row. How can I get called back in this case?
Thank you
Valerie
Top achievements
Rank 1
 answered on 26 Feb 2013
1 answer
139 views
I'm using the RadGridView and have its DataContext bound to a DataTable. By doing so, I'm losing the GridViewSelectColumn which is my first column in the grid. How can I bound my data table to a RadGridView and yet have a GrdiViewSelectColumn as my first column in the grid?

Thanks.
Rajani
Top achievements
Rank 1
 answered on 25 Feb 2013
10 answers
777 views
Hi all, 
I want to do the following behavior in my program.
I have a GridView and below form, which is still visible. I need to change the background when the form gets focus. Standard background is gray, and if form get the focus to look the same(background) as the selected row in the DataGrid. It is not difficult, but if I change the main theme from SummerTheme to Office_SilverTheme, I have a complicated background to change.

My query is as follows.
Can I use this
 
<Setter Property="Background" Value="StaticResource GridViewRowSelectedBackground}" />
And call value in TelericTheme.  

If I change the StyleManager.ApplicationTheme in the future, I will get right background.


Thank you for the tip.

My definition style in Themes/Generic.xaml
<LinearGradientBrush x:Key="GridViewRowSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFCA5D" Offset="1"/>
        <GradientStop Color="#FFFFDC9C" Offset="0"/>
</LinearGradientBrush>
   
<Style  x:Key="Form_Style" TargetType="Border" >
    <Setter Property="BorderBrush" Value="White" />
    <Setter Property="BorderThickness" Value="2" />
    <Setter Property="Padding" Value="1" />
    <Setter Property="Margin" Value="1" />
    <Setter Property="CornerRadius" Value="5"/>
    <Setter Property="Background" Value="{StaticResource Form_Background}"    />
    <Style.Triggers>
      <Trigger Property="IsKeyboardFocusWithin" Value="True" >
        <Setter Property="Background" Value="{StaticResource GridViewRowSelectedBackground}"  />
      </Trigger>
    </Style.Triggers>
</Style>

Zdero Pero
Top achievements
Rank 1
 answered on 25 Feb 2013
1 answer
156 views
hi,
i want to add a new row to the grid, when the user completes the editing of the last row (i am having 3 columns, in that first two columns only editable, so the user when completes editing the second column focus should be set to the newly added row's second column, so that the user can start typing it.

In this once i added a new row (when user presses tab after editing last row's second column) focus is moved out of the grid, but the new row is added.

how can acheive this?

Thanks
Subash
Yoan
Telerik team
 answered on 25 Feb 2013
1 answer
146 views
Hello,

we use a donut chart for some statistics. Is it possible, to change the alignment of the donut?


<Window x:Class="WpfApplication1.Window1"
    xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"       
    Title="Window1" Height="300" Width="300">
 
    <WrapPanel Orientation="Vertical">
        <Border telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True">
            <telerik:RadChart x:Name="RadChart1" ItemsSource="{Binding StaticResource Umsatzdaten}" VerticalContentAlignment="Top">
                <telerik:RadChart.Content>
                    <Label Content="Umsätze der letzten 6 Monate" FontWeight="Bold"/>
                </telerik:RadChart.Content>
                 
                <telerik:RadChart.DefaultSeriesDefinition>
                    <telerik:DoughnutSeriesDefinition LegendDisplayMode="None">
                        <telerik:DoughnutSeriesDefinition.InteractivitySettings>
                            <telerik:InteractivitySettings HoverScope="Item" SelectionScope="Item" SelectionMode="Single" />
                        </telerik:DoughnutSeriesDefinition.InteractivitySettings>
                    </telerik:DoughnutSeriesDefinition>
                </telerik:RadChart.DefaultSeriesDefinition>
 
                <telerik:RadChart.SeriesMappings>
                    <telerik:SeriesMapping>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping DataPointMember="YValue" FieldName="Umsatz" />
                            <telerik:ItemMapping DataPointMember="Label" FieldName="MonatsnameMitUmsatz" />
                            <telerik:ItemMapping DataPointMember="LegendLabel" FieldName="Monatsname" />
                            <telerik:ItemMapping DataPointMember="XCategory" FieldName="Monat" />
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                </telerik:RadChart.SeriesMappings>
            </telerik:RadChart>
        </Border>
    </WrapPanel>   
</Window>

Please take a look at the attached screenshots to understand what we want to do :)


Best regards

J
Evgenia
Telerik team
 answered on 25 Feb 2013
1 answer
138 views
Hi!

I have a problem. I've RadTreeView with event IsLoadOnDemandEnabled=true and LoadOnDemand assigned to event. It's work the first time. When i try another time collapse and expand item, the event LoadOnDemand dont work...

Any ideas?

Thanks!
Pavel R. Pavlov
Telerik team
 answered on 25 Feb 2013
2 answers
56 views
Hi There,

I have a requirement to hide the minimize and maximize buttons on header but i want to use the resize the window with cursor at bottom right corner. can you please tell me how i can achieve this ?

Regards,
Srinivas.
Ravi
Top achievements
Rank 1
 answered on 25 Feb 2013
7 answers
1.0K+ views
dear all,
for window i have topmost function.
 
how can i use this functionon radwindow ( t.BringToFront() never work for me);
Miroslav Nedyalkov
Telerik team
 answered on 25 Feb 2013
3 answers
138 views

I have the following comboboxcolumn that is bound to a collection of strings.  The DataMemberBinding points to a property in the object model.  This property gets updated in another part of the system, but the comboboxcolumn does not reflect the new value in view mode.  As soon as I click on the field, the combox displays the updated value.  How can I get it to update in view mode?

<telerik:GridViewComboBoxColumn Header="M"
DataMemberBinding="{Binding SummaryGroupDetail.MisclassifiedType, Mode=TwoWay, NotifyOnSourceUpdated=True}"
UniqueName="MisclassifiedType"
ItemsSourceBinding="{Binding Path=DataContext.MisclassifiedTypes, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" />
Yoan
Telerik team
 answered on 25 Feb 2013
1 answer
198 views
RadGridView breaks when you have no data in it and you try and paste. I get a DataGrid_DisplayIndexOutOfRange exception. Here is an example: 

<Window x:Class="TestTablePaste.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
   <Grid>
        <telerik:RadGridView>
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu>
                    <telerik:RadMenuItem Header="Paste" Command="ApplicationCommands.Paste"></telerik:RadMenuItem>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
        </telerik:RadGridView> 
    </Grid>
</Window>

I was wondering if this is a known issue and if there was a work around.
Yoan
Telerik team
 answered on 25 Feb 2013
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?