Telerik Forums
UI for WPF Forum
2 answers
117 views
Could I enable the mouse wheel scroll in the RadPanelBar control?
Pavel
Top achievements
Rank 1
 answered on 05 Aug 2011
3 answers
178 views
Hi All,

          I am using Telerik WPF Radgridview 2010.2.924.35 version for Printing the contents of gridview. When i select Microsoft XPS Document, a xps file is created and it contains the proper data that is present in the gridview.  When i print the contents after selecting the Printer, i am gettting the correct headers and number of rows and not the cell content. all rows have blank values. What is the problem? i followed the same steps followed in Printing demo in your samples. for the demo sample, i m getting all row values when a printer is selected.

But the only difference is in demo they have used gridviewdatacolumn to bind data. I used celltemplate and celledittemplate to bind row data. Why is the content missing. I also installed 2011 trial version and i ended up with the same issue. Any ideas or help is appreciated. Preferably code samples are welcome.

Thanks in advance,
Saranya.
Maya
Telerik team
 answered on 05 Aug 2011
2 answers
241 views
I am needing to apply celltemplateselectors at runtime to dynamic grid columns from observablecollection<T>.
Do you have any documentation or examples that show applying celltemplateselectors to grid columns in code behind purely?
I have DataTemplates in a Resource Dictionary and I would like to use the business object value in the cell to decide the datatemplate to select.

Example:
private void grid_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
    if (e.Column.UniqueName.Equals("SpecificColumn", StringComparison.CurrentCultureIgnoreCase))
    {
        e.Column.CellTemplateSelector = // ... point to C# class that returns datatemplate from resource dictionary file
    }
}

Guru
Top achievements
Rank 2
 answered on 04 Aug 2011
1 answer
153 views

As a newbie to WPF I've been struggled with triggers and animations for a while. 

This is my element in the information layer:

<telerik:InformationLayer.ItemTemplate>
<DataTemplate>
<Grid x:Name="TopLevelGrid" Width="Auto" Height="Auto"
telerik:MapLayer.Location="{Binding Location}" telerik:MapLayer.BaseZoomLevel="9">
<ToolTipService.ToolTip><ToolTip><ToolTip.Content>
...
</ToolTip.Content></ToolTip></ToolTipService.ToolTip>
<Ellipse Name="myEllipse" Width="20" Height="20"
Stroke="{Binding Stroke}" StrokeThickness="3"StrokeDashArray="2"
Fill="{Binding Fill}" Style="{StaticResource myStyle}" >
<telerik:MapLayer.HotSpot><telerik:HotSpot X="0.5" Y="0.5" /></telerik:MapLayer.HotSpot>
</Ellipse>
</Grid>
</DataTemplate>
</telerik:InformationLayer.ItemTemplate>

The problem is that I want a property (or event) in my custom class for the element to trigger the animation. So far I've tried to do it both in XAML and in code without success.

I would be grateful if you could give me a hint or two of how to solve the issue.

Regards

Robert

Warnestam
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
142 views
I have been able to style all of my header columns and the header row, but the Left Gripper all the way to the left of the grid is still using the Office Black theme...what Property controls the LeftGripper Column Header?
Thanks
Vanya Pavlova
Telerik team
 answered on 04 Aug 2011
1 answer
137 views
Hey Telerik,

I'd like to have a reference to the resource column the AppointmentItem is shown in.
This is very useful to change the styling of the appointment based on the column it is shown in.
Since now there is only a reference to the Appointment ViewModel this is not possible.

In my current solution I add a "Resource" dependency property to the Appointment Data Context Proxy, and use reflection on the
groupheader's (GroupKey is the resource) AppointmentItems to set the extra property. However this is done in the a derivative class of the AppointmentsPanel and during it's arrangeoverride, needles to say it degrades performance.

Any suggestions?

Greetz,
Nico
Valeri Hristov
Telerik team
 answered on 04 Aug 2011
1 answer
139 views
Hi,

I have an app that loads any database and presents the data for the tables in a GridView. I do not define columns in the XAML since I load any database. I'd like to be able to determine when a column from the database contains images and display the images in the grid. Can you tell me how to do this? I see examples in the forms and KB but they all seem to create the columns in XAML since they know the database schema ahead of time.

Thanks,

Gord
Dimitrina
Telerik team
 answered on 04 Aug 2011
2 answers
150 views
Hi all
I am unable to drag an item from RadGallery. I am attaching the sample code. It works fine with image. but not within RadGak

<Window x:Class="RadControlsWpfApp1.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" telerik:RadDragAndDropManager.DragQuery="Window_DragQuery">
        <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
            <telerik:RadGallery>
            <telerik:RadGalleryItem telerik:RadDragAndDropManager.AllowDrag="True" Image="/RadControlsWpfApp1;component/PDF-04.png"></telerik:RadGalleryItem>
        </telerik:RadGallery>
        <Image Source="/RadControlsWpfApp1;component/PDF-04.png" Grid.Row="1" telerik:RadDragAndDropManager.AllowDrag="True"/>
    </Grid>
</Window>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace RadControlsWpfApp1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Window_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
        {
            MessageBox.Show("draged");
        }
    }
}

Thanks
Deepak
deepak
Top achievements
Rank 1
 answered on 04 Aug 2011
2 answers
131 views
Hello! I'm working with the DataForm and I have what I would guess is a simple question. I'm using a DataForm to edit a single item and I'd like to bind the Commit button to an ICommand on my ViewModel. How do I go about doing that?

-Greg
Greg
Top achievements
Rank 1
 answered on 04 Aug 2011
1 answer
645 views
Is there any easy way to ensure at least one Tab is selected? My tabs are dynamic, and hide and show themselves based on stuff. I want the first tab to be selected, if no tabs are selected... preferably without lots of work =/
Vladislav
Telerik team
 answered on 04 Aug 2011
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?