Telerik Forums
UI for WPF Forum
1 answer
176 views
Hi,

i want to order my columns in a custom way ("B", "A", "C" for example) Is this possible?

Best Regards,
Thomas
Rosen Vladimirov
Telerik team
 answered on 16 Apr 2013
0 answers
83 views
Hi Experts,

I am doing validation using CurrentCellvalidating event and by using CellEditEnded event i am reloading my Grid's Itemsource. At that time the CurrentCellValidating event gets fired and also the CellEditEnded event gets called once again(both the events are fired 2 times) and after the execution of these events i am getting an null reference exception.

Note: If i didnt reload the Grid ItemSource(Applying new values) then the exception is not occuring.

Please help me anybody, what is going wrong.

Ramesh,
velusamyr@hcl.com
Ramesh
Top achievements
Rank 1
 asked on 16 Apr 2013
3 answers
230 views
Hi Support Team,

I am showing two series data in chartview.I want to show trackball to only one series.
How can i hide the trackball to other(second) series.

Please find attached screenshot for your reference.



Thanks&Regards
Obalesu.N
Todor
Telerik team
 answered on 16 Apr 2013
1 answer
179 views
Hello,

I have a RadGridView where I am autogenerating columns from a datatable. Some columns need a converter on the values, and the conversion logic is different from column to column.

I am using the following code in the autogenerating column event to set the template to an object with a textblock and the right converter.

                var cellStyle = new Style();
                Setter setter = new Setter();
                setter.Property = TemplateProperty;
                var template = new ControlTemplate();
                var index = "[" + ((RadGridView)sender).Columns.Count.ToString() + "]";
                FrameworkElementFactory spFactory = new FrameworkElementFactory(typeof(System.Windows.Controls.ListBox));

                var value = new MultiBinding();
                value.Bindings.Add(new Binding(index));
                var columnBinding = new Binding();
                columnBinding.Source = e.Column.Header.ToString();
                value.Bindings.Add(columnBinding);
                value.Converter = (IMultiValueConverter)this.FindResource("TupleCreator");

                spFactory.SetValue(DataContextProperty, value);
                spFactory.SetValue(TemplateProperty, (ControlTemplate)this.FindResource("DataTemplate"));

                template.VisualTree = spFactory;
                setter.Value = template;
                cellStyle.Setters.Add(setter);

                e.Column.CellStyle = cellStyle;

This works fine for actually viewing the cells in the grid, and using visualization so that not all of the conversions are done at once. What I need to be able to do is filter and sort by these values, as well as have them in the cells of export to excel.

I have seen something similar done in another control using an unbound column data event.

Thanks,

Eli
Rossen Hristov
Telerik team
 answered on 16 Apr 2013
8 answers
233 views
Hi,
We are using SparkLine in one column of GridView, we are getting issue that when user scrolls the grid down and move back then extra dots are visible in the grid. Please find the issue in attached image and we have also attached the sample code to regenerate the issue.
we are using 2011.2.712.40 library build.

Image file
sparkline.jpg

Sample code
how can we attach the code?
Thanks
Tsvetie
Telerik team
 answered on 16 Apr 2013
1 answer
79 views
Hi,

We have been using WPF GridView Q3 2012 version and today upgraded to Q1 2013 but getting many compilation errors. I am attaching the snapshot. Please suggest.

Thanks,
Sandeep
Dimitrina
Telerik team
 answered on 16 Apr 2013
1 answer
162 views
I have a problem where the edit mode is conflicting with the drag/drop. The problem happens because the cell goes into edit mode when the mouse is depressed rather than on a mouse up.

The scenario is that the user has clicked on a row. They happen to have clicked in some random cell. Now they want to drag that row. They click in the same cell expecting that they can drag the row but as soon as they press the mouse down, that cell goes into edit mode. So they can't drag.

Is there a way to tell the grid to use mouse-up rather than mouse-down when deciding whether to put it in edit mode.

Thank you,
Valerie
Nedyalko Nikolov
Telerik team
 answered on 16 Apr 2013
4 answers
251 views
I have a RadGridView populated with data. I have some input controls that allow the user to change the font of the text in the header rows. I tried the following in the code-behind, but it did not work. What is the correct way to do this?

System.Windows.Style headerStyle = new Style();
headerStyle.BasedOn = reportGrid.Columns[0].HeaderCellStyle;
headerStyle.TargetType = typeof(GridViewHeaderCell);
headerStyle.Setters.Add(new Setter(GridViewHeaderCell.FontSizeProperty, 25));
reportGrid.Columns[0].HeaderCellStyle = headerStyle;

Kind Regards,
Albert
Dimitrina
Telerik team
 answered on 16 Apr 2013
18 answers
1.1K+ views
Hi, 

I've found an example on how to change the theme at runtime with silverlight but I need to do it with WPF, is it possible ?

Also, I've applied a theme to the VS2010 controls like this:

        <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=TextBox}}" />
        <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=ScrollViewer}}" />
        <Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=RadioButton}}" />
        <Style TargetType="{x:Type ListBox}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=ListBox}}" />
        <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=CheckBox}}" />
        <Style TargetType="{x:Type Button}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=Button}}" />
        <Style TargetType="{x:Type PasswordBox}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=PasswordBox}}" />
        <Style TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:VistaTheme, ElementType=RepeatButton}}" />

But I need their theme to follow the application's theme (and follow it too if it changes).

I hope you can help me.

Thanks.
Amin
Top achievements
Rank 1
 answered on 16 Apr 2013
2 answers
302 views
if you setup hierarchy and you want bind / display info in the child grid for the parent row it belongs to..in the xaml/bing how can you get reference to parent row from the child as part of databinding...

<telerik:RadGridView Name="gridView" ItemsSource="{Binding Person}">
    <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
    </telerik:RadGridView.ChildTableDefinitions>
    <telerik:RadGridView.HierarchyChildTemplate>
        <DataTemplate>
            <StackPanel>
            <TextBlock Text="{Binding ParentRow.SomeProperty}"/>
            <telerik:RadGridView ItemsSource="{Binding Children}" Name="childGrid" ShowGroupPanel="False" />
            </StackPanel>
        </DataTemplate>
    </telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
Dan
Top achievements
Rank 1
 answered on 15 Apr 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?