Telerik Forums
UI for WPF Forum
2 answers
228 views
Hi,

Is it possible to bind a SortDescriptiorCollection directly to the xaml?

i.e
<telerikGrid:RadGridView.SortDescriptors ItemSource="{Binding SortDescriptors}" />
 
NOTE: Sorry I meant his to be in the Silverlight section for GridVIew
Sara :)
<telerikGrid:RadGridView.SortDescriptors ItemSource="{Binding SortDescriptors}">
<telerikGrid:RadGridView.SortDescriptors ItemSource="{Binding SortDescriptors}">
DeveloperDame
Top achievements
Rank 1
 answered on 01 Dec 2010
3 answers
661 views
I am handling the RowEditEnded event of my RadGridView to save the changes to the database through a service.  But if I get an error from the middle tier, I want to roll back those changes to the row.

At the time RowEditEnded is raised, it is too late to call CancelEdit(), so I thought that using the OldValues property of  GridViewRowEditEndedEventArgs would be the best way to go, and apply them to each cell in the row. The problem is that OldValues is a dictionary and GridViewCellBase can only be indexed by position.  I could find each cell binding and find the item in OldValues that matches it, but it seems to me that there should be a better way.

Is there an easy way to do this?
Roger
Top achievements
Rank 1
 answered on 01 Dec 2010
1 answer
177 views
Hi ,

I am Ramesh , I am using Telerik controls and Grid in our application . we are using Telerik 2010 Q3 release dll

My Requirement is  

Typing "010110" should translate to 01/01/2010 automatically 

Let me know if there is any property available in Date picker control which satisfies this functionality


Thanks in Advance

Regards
Ramesh
George
Telerik team
 answered on 01 Dec 2010
1 answer
139 views
1. How can I create a Spline chart like in WPF Chart example with custom Values(it will help me to understand the structure)?

I tried 
List<double[]> itemsSource = new List<double[]>();
itemsSource.Add(SeriesExtensions.GetUserData(12, 0));
itemsSource.Add(SeriesExtensions.GetUserData(12, 1));

but "SeriesExtensions" gives me an error.

2. Is it possible to Align the Y-Axis label?..by default it's center align.
Thanks
Evgenia
Telerik team
 answered on 01 Dec 2010
2 answers
104 views
Hi there,

in relation to your online demo I have built a grid with syncronisation between a TextBox an the GridCells. It works fine and I decided to add theese grid to a greater application.
In this application I can't get it to work.  I just get an error the ressource "SyncToBoxTemplate" will not be found.
What does I've done wrong? I have copied the code 1:1

<Window x:Class="ICConfPrototyp.Entscheidungstabelle"
        Title="MainWindow" Height="396" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Window.Resources>
        <DataTemplate x:Key="SyncToBoxTemplate">
            <TextBox Loaded="TextBox_Loaded" />
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <TextBox Grid.Row="0"  Height="25" VerticalAlignment="Center" Name="txtValue" IsEnabled="True" />
        <telerik:RadGridView telerik:StyleManager.Theme="Windows7" HorizontalAlignment="Stretch"  Name="rgvEntscheidungstabelle" VerticalAlignment="Stretch" ShowGroupPanel="False" CanUserReorderColumns="False" CanUserSortColumns="False"  IsManipulationEnabled="True" Loaded="rgvEntscheidungstabelle_Loaded" RowLoaded="rgvEntscheidungstabelle_RowLoaded" IsFilteringAllowed="False" Grid.Row="1" SelectionUnit="Cell" SelectionMode="Extended" SelectedCellsChanged="grdView_SelectedCellsChanged" PreviewMouseLeftButtonDown="grdView_PreviewMouseLeftButtonDown" MouseLeftButtonDown="grdView_MouseLeftButtonDown" AutoGenerateColumns="False" GroupHeaderTemplate="{StaticResource SyncToBoxTemplate}">         
            <telerik:RadGridView.LayoutTransform>
                <ScaleTransform ScaleX="{Binding Path=Value, ElementName=zoomSlider}"
                            ScaleY="{Binding Path=Value, ElementName=zoomSlider}"/>
            </telerik:RadGridView.LayoutTransform>
        </telerik:RadGridView>
        <TextBox Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="256,4,0,0" Name="txtProzent" VerticalAlignment="Top" Width="34" Text="100" HorizontalContentAlignment="Center" TextChanged="txtProzent_TextChanged" />
        <Label Content="%" Grid.Row="2" Height="28" HorizontalAlignment="Left" Margin="287,2,0,0" Name="label1" VerticalAlignment="Top" />
        <telerik:RadSlider Name="zoomSlider" Minimum="0.001" Maximum="5" Value="1" Grid.Row="2" TickFrequency=".5" TickPlacement="Both" Margin="308,0,0,0" ValueChanged="zoomSlider_ValueChanged" HandlesVisibility="Visible">
            <telerik:StyleManager.Theme>
                <telerik:Windows7Theme />
            </telerik:StyleManager.Theme>
        </telerik:RadSlider>
        <telerik:RadContextMenu.ContextMenu>
 
            <telerik:RadContextMenu Opened="RadContextMenu_Opened"
                                    ItemClick="RadContextMenu_ItemClick">
 
                <telerik:RadContextMenu.Items>
                    <!--menu items -->
 
                    <telerik:RadMenuItem Header="Zelle kopieren"
                                         Name="contextmenue_copy_cell">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/table_row.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem Header="kopierter Zelleninhalt einfügen"
                                         Name="contextmenue_insert_clipboard_cell">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/table_cell.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem IsSeparator="True" />
 
                    <telerik:RadMenuItem Header="Zeile anfügen"
                                         Name="contextmenue_append_line">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/table_row.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem Header="Zeile einfügen"
                                         Name="contextmenue_insert_line">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/table_column_add.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem Header="Zeile kopieren"
                                         Name="contextmenue_copy_line">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/copy.ico"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem Header="Zelle Editieren"
                                         Name="contextmenue_edit_cell">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/EditDocument.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem Header="Zeile löschen"
                                         Name="contextmenue_delete_line">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/delete.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem IsSeparator="True" />
 
                    <telerik:RadMenuItem Header="Spalte einfügen"
                                         Name="contextmenue_insert_column">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/table_column_add.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <telerik:RadMenuItem Header="Spalte löschen"
                                         Name="contextmenue_delete_column">
                        <telerik:RadMenuItem.Icon>
                            <Image Source="/ICConfPrototyp;component/Images/table_column_delete.png"
                                   Stretch="UniformToFill" />
                        </telerik:RadMenuItem.Icon>
                    </telerik:RadMenuItem>
 
                    <!--items -->
                </telerik:RadContextMenu.Items>
 
            </telerik:RadContextMenu>
 
        </telerik:RadContextMenu.ContextMenu>
    </Grid>
</Window>

I don't have any Ideas :(

Greetings
Andi
Andi
Top achievements
Rank 2
 answered on 01 Dec 2010
2 answers
118 views

 

Hello,
I am trying to implement similar functionality with the dependency arrow  in Gantt charts.
Anyone know the best way to do it?
George
Telerik team
 answered on 01 Dec 2010
4 answers
1.0K+ views
Hi,

I'm a licenced user of the WPF controls and have found a few issues during development of an application.  Originally i thought these issues were down to my use of some custom columns and the behaviour i need, however, after many a fraught hour testing and re-testing i eventually loaded the WPF Demo (Q2 2010 SP1) and looked at the sample.  To my amazment the samples also show the same behaviour!!

Issue 1: The first issue is is to do with editing cells and the scroll bar:
1) Start the GridView Editing sample from the demo's
2) Double click any cell to get the edit box
3) CLICK in the scroll bar on the right somewhere BELOW the handle (don't pick up the handle/bar and drag it as this works fine, it's only when clicking the free area either side of the handle).
4) In the grid there will now be a white cell (it can be in any of the columns not nessesarily the original column, this is more obvious when there is a horizontal scroll-bar)

I have tried many things (including cancelling the edit on scroll, which doesn't work as the event is only fired when the scroll bar is dragged!).  I can't turn virtualization off due to memory and performance constraints (though neither seemed to actually fix the issue). 

Issue 2: The second issue is with the filter drop down window when the grid is in defered scrolling mode:
1) Create a standard grid on a form, ensure the filters are enabled and there is enough data to generate a sizable vertical scroll bar (i.e data height is at least twice that of the visible area).
2)  Start the application with the ScrollMode set to "RealTime" (or the default mode).
    a) Open a filter drop-down for any column that has lots of unique values in it (this is to ensure the filter drop-down has a vertical scroll bar in the list)
    b) Scroll the filter list up and down by dragging the handle.  This should work as expected.
    c) Stop the application
3) Change the grid ScrollMode to "deferred" and restart the application
    a) Open the filter drop-down for the same column as last time
    b) Scroll the filter list up and down by dragging the handle.  This now doesn't move the scroll bar in the filter drop-down but DOES scroll the parent grid up and down!!

This is a very strange one.  The up and down arrows at the top and bottom of the scroll bar work as expected (as well as the mouse wheel) however the grab-handle scrolls the parent grid?!

I've been unable to find a work-around for either of these issues (and Google has not been kind either!!).  If nessesary i will open a support ticket but all the nessesary steps for replication are above.

I'm using the 2010 Q2 SP1 WPF Controls in Visual Studio 2008 in a standard WPF Application project.  Both of these issues can be replicated easily using either the telerik demo's or a new blank project.

Has anyone had this issue before and can someone please help (my client isn't a happy bunny!!).

Cheers

(edit for spelling/gramar correction only)
Yordanka
Telerik team
 answered on 01 Dec 2010
1 answer
81 views
Hi!

I have a RadGridView bound to an ObservableCollection<MyObjectType>.

In one of my method I receive a "MyObjectType" object, and I've to select it in the RadGridView.

It was working without any problem, but it seems that the SetIsSelected mehtod is now protected and I can't access it anymore.

How do I do now? I receive a MyObjectType and not a RadGridViewItem.

Why this regression?

I'm very disappointed on this change.
Yavor Georgiev
Telerik team
 answered on 01 Dec 2010
1 answer
141 views
I want my textbox or text area to support HTML types. Is it possible for any controls in WPF or telerik ( like text area or text block ) to support HTML type so that I can put  hyperlinks inside it.
Yavor Georgiev
Telerik team
 answered on 01 Dec 2010
1 answer
76 views
 I require to have n X n grids (major grid-lines on both the axes) on my chartarea for whatever the range the chart is currently having. Please let me know how to do that.  I want something like saying AutoRange = true and be able to set the step ...
Yavor
Telerik team
 answered on 01 Dec 2010
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?