Telerik Forums
UI for WPF Forum
4 answers
362 views
Hi,

I've looked into this a good bit and can find nothing relevant.  Any threads touching on the subject are old and the API has since changed.  Basically I need to get access to an individual cell so that I can set a style for it.  I would expect there to be easy access to cells in the same way that columns can be accessed.

I'm looking for something like: 

myGrid.Columns[0].Rows[0].Style = myStyle;

A call like that would give me access to the top left cell of the grid.

Is there any way to do something like this?

Thanks,
Austin
Dimitrina
Telerik team
 answered on 12 Feb 2013
6 answers
337 views
Hi,
(Wrongly posted on gant forum)

I want to create this behavior:

I want to be able to select only full lines, and act on double click on the line -

currently I have 2 problems with this code:

<telerik:RadGridView Name="gdTestRecords" DockPanel.Dock="Bottom" AutoGenerateColumns="False" ClipboardCopyMode ="All" MouseDoubleClick="gdTestRecords_MouseDoubleClick" SelectionMode="Extended" SelectionUnit="FullRow" MaxHeight="600" ScrollViewer.VerticalScrollBarVisibility="Visible">


1, when I double click inside the line - it selects the cell and not the line - I can only choose the line by clicking on the edge of the line.
    this code will return null: RecordType st = ((FrameworkElement)e.OriginalSource).DataContext as RecordType (unless I click on the edge)
2. when I click on the vertical scroll bar more than 2 times - it acts like selecting a cell ! - I need to interpreting clicking on scroll bar as clicking on the grid surface and not clicking inside the line.

How can I fix this ?

dani
Top achievements
Rank 1
 answered on 12 Feb 2013
0 answers
78 views
The question is closed.
Yu
Top achievements
Rank 1
 asked on 12 Feb 2013
2 answers
267 views
I have a UserControl that contains a RadPropertyGrid and one of the property definitions for the RadPropertyGrid has the EditorTemplate set to a DataTemplate that contains a RadComboBox.  When I run the application, I get the following exception:

Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.

If I add a RadComboBox to the UserControl, the RadComboBox displays just fine.

What am I missing?


Here is the XAML:

<UserControl x:Class="Company.KendoJavaScriptExtension.MyControl"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:local="clr-namespace:Company.KendoJavaScriptExtension"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
             Name="MyToolWindow" Loaded="MyToolWindow_Loaded">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <DataTemplate x:Key="comboboxTemplate">
                <telerik:RadComboBox />
            </DataTemplate>
        </Grid.Resources>
         
        <telerik:RadPropertyGrid x:Name="propertyGrid" Loaded="propertyGrid_Loaded" />
    </Grid>
</UserControl>

In the UserControl's Loaded event handler, I have code similar to the following:

this.propertyGrid.PropertyDefinitions[5].EditorTemplate = LayoutRoot.Resources["comboboxTemplate"] as DataTemplate;
Craig
Top achievements
Rank 1
 answered on 12 Feb 2013
1 answer
188 views
I would like to be able to add a small shape (upward-pointing triangle) to the X axis of a bar chart under one of the bars.  The build report for Microsoft Team Foundation client shows something similar to what I have in mind (see attached PNG).

As a strategy, should I try to use a CartesianCustomAnnotation, and if so can that be used with a marker in a BarSeries?  How do I indicate that I want the triangle to sit under the bar marker?  Or should this be an annotation attached to the axis somehow, and if so how would I add an annotation to the X axis?

thanks,
Derek
 

Evgenia
Telerik team
 answered on 12 Feb 2013
1 answer
125 views
I have defined a RadDocking in my MainWindow.xaml. At program startup, I want to load a layout from a resource XML file. Should I do this in the MainWindow's Loaded event?

In an ideal world, I would just include the xml in the XAML:
<include MyDockingConfiguration.xml />

Perhaps this can be done using ContentControl and a ControlTemplate?
Vladi
Telerik team
 answered on 12 Feb 2013
3 answers
225 views
Hi,

1. I installed wpf demo controls on machine and i am working with them. but how can i access solution files for those controls.?

Why i am asking is the code you provided in the demo installer missing some stuff.

I am trying to see how treeview control works in WPF but it is missing some important file.

Goto FirstLook of RadTreeView Control 
   Select Code
       Select Examle.xaml
         at the bottom of the file there is code like 
  <project:ContentControlEx Grid.Column="2"
    TemplateSelector="{StaticResource DetailsTemplateSelector}"
    DataContext="{Binding Path=SelectedItem, ElementName=xTreeView}" Content="{Binding}" />

but i dont see any ContentControlEx in the code files

Please provide those files or where can i find demo solution projects

Thanks
Rama


Pavel R. Pavlov
Telerik team
 answered on 11 Feb 2013
1 answer
303 views
In an earlier thread, Ivan wrote:

    "You can create a new ControlTemplate for DataFormValidationSummary and set it through RadDataForm's ValidationSummaryStyle property. In this ControlTemplate you can set a new ItemTemplate to the ItemsControl placed in the summary. Please, use the latest internal build, if possible, as we have fixed a related issue there."

I'm trying to do this, but I'm only about half-way there.

I'm setting ValidationSummaryStyle on the RadDataForm:
<telerik:RadDataForm
        ...
        ValidationSummaryStyle="{StaticResource validationSummaryStyle}"
        />
And in Resources I'm defining the style that sets DataFormValidationSummary.Template, and the ControlTemplate that it is being set to.
<UserControl.Resources>
 
    <ControlTemplate x:Key="validationSummaryTemplate">
        <Label>Foo</Label>
    </ControlTemplate>
 
    <Style TargetType="telerikDataForm:DataFormValidationSummary" x:Key="validationSummaryStyle">
        <Setter Property="Template" Value="{StaticResource validationSummaryTemplate}" />
    </Style>
</UserControl.Resources>
And this works, so far is it goes.  I see the string "Foo" in the appropriate spot.

But I'm unclear as to what "set a new ItemTemplate to the ItemsControl placed in the summary" is supposed to mean. 
Ivan Ivanov
Telerik team
 answered on 11 Feb 2013
2 answers
199 views
Hi,

I have to design a grid which is having a multiple headers (Grey shaded part shown in the attached sample image). First header with a check box and second header is static just displays a value lika label and the Third header which shows total number of rows entered in the grid and the sum of the row values. Then the fourth header displays the column headers.

For the sample i have shown the three grids, it can be n number of grids dynamically added and all the grid rows are editable.

Can someone help me in this?

Thanks,
Subash
Subash
Top achievements
Rank 1
 answered on 11 Feb 2013
1 answer
153 views
HI,

i use a RadDocking- Control and add Panes by code:
RadPane radPane = new RadPane() { Title = panename_s, Name = name_s };
RadDocking.SetSerializationTag(radPane, panename_s);
RadPaneGroup radPaneGroup = new RadPaneGroup();
RadSplitContainer radSplitContainer = new RadSplitContainer() { InitialPosition = DockState.FloatingDockable };
 
Controls.LayoutData MyControl = new Controls.LayoutData();
MyControl.Name = name_s;
radPane.Content = MyControl;
radPaneGroup.Items.Add(radPane);
radSplitContainer.Items.Add(radPaneGroup);
Docking.Items.Add(radSplitContainer);

This works fine. Now add one  (AAA) Pane and save this layout to a xml-file. A second pane will be created (BBB). Now i delete
the second pane (BBB) and save the layout again. How do i delete this second pane from the LayoutStream? In my void "Docking_Element"-Method this second pane is still shown!

Thanks
Best Regards
Rene

Vladi
Telerik team
 answered on 11 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?