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

I just create a really simple WPF Browser Application with one RadRibbonView control in it. Here's the actual code :

<Page xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView"  x:Class="WpfBrowserApplication1.Page1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="300"
      Title="Page1">
    <Grid>
        <my:RadRibbonView />
    </Grid>
</Page>

When i launch the application, well, i don't see anything. The ribbon is not display at all. But, when i actually resize the window, it suddenly appear.

I don't have this behavior in a WPF application. It's seem to be an issue only with WPF Browser Application.

Are you able to reproduce this error? If so, is there a way to force the UI to display the ribbon without resizing the web page?

Best Regards,
Petar Mladenov
Telerik team
 answered on 18 Aug 2011
1 answer
158 views
I was trying to work on GridView and GridPager to provide user a fast UI but  I hardly find any document about binding a datacontext to a gridview that will retain all the functionality like pager, server side sorting.

Basically most of the document shows to query from a table using linq and then Take(10) -> toList(). Which will not have the functionality like serverside sorting or pager.

Are there any example of showing this?
Maya
Telerik team
 answered on 18 Aug 2011
1 answer
180 views
I'm building an application that has to work on a Laptop with a touch sensitive screen.  As such, I have to increase the size of buttons & scrollbars & such so a police officer can use the controls with their fingers while driving a car at the same time.  That means everything needs to be larger to be easily & quickly read.  So I did a search today to find an article on how to set the width of the vertical scrollbar in the RadGridView control.  I found one & I downloaded the code.  The problem is that the compiler is generating messages that read:

1. The tag 'ScrollContentPresenter' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.
2. The type 'telerik:ScrollContentPresenter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

I have added the following xmlns tag:

xmlns:tl="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"

This has no effect,except to change the exact wording of the errors.

What do I need to do to get this to build?

Tony
Vanya Pavlova
Telerik team
 answered on 18 Aug 2011
1 answer
97 views
It seems that when you copy paste data into a gridview cell, if it makes the row expand due to other settings (which is good), it then ignores the maxwidth for the table (but maintains the maxwidth properties for the column). Is there a way to keep the grid from expanding past its maxwidth property in this situation?

Thanks!
Ivan Ivanov
Telerik team
 answered on 18 Aug 2011
2 answers
1.1K+ views
Howdy Everyone,

I'd like to ask on how to hide/show telerik grids on the same window by clicking a button?

Here's my scenario: 
I have 3 buttons: the day, week and month. My default grid on the window is the Day Grid. When I clicked on the day button, the day grid would show up, when the week button is clicked, the week grid will and the day grid will hide, and lastly, when the month button is clicked, the month grid will show and the week grid will be hidden. Please help me since i'm new to your tools. Would greatly appreciate your help. God bless.
Yana
Top achievements
Rank 1
 answered on 18 Aug 2011
2 answers
123 views
Hi Guys, 

I'd like to know on how to show/hide a RadGrid when a RadButton is clicked? I am using Visual Studio 2010, C#. 


Many thanks.

A
Yana
Top achievements
Rank 1
 answered on 18 Aug 2011
2 answers
152 views
Creating a DragQuery method for setting the drag cue only seems to work when dragging the contents. When dragging the header the drag image is alway the TileViewItem itself. This method is called but has no effect.

       private void TileViewDragQuery(object sender, DragDropQueryEventArgs e)
        {
            try
            {
                if (e.Options.Status == DragStatus.DragQuery)
                {
                    e.QueryResult = true;
                    e.Handled = true;


                    e.Options.Payload = sender as FrameworkElement;
                    e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();


                    // Create Drag Cue
                    // Create a ContentControl. It will be used as a DragCue.
                    ContentControl dragCue = new ContentControl();
                    // Use a DataTemplate to "say" how the dragged item will be displayed.
                    dragCue.ContentTemplate = mainGrid.Resources["DragCueTemplate"] as DataTemplate;
                    e.Options.DragCue = dragCue;
                }
                else if (e.Options.Status == DragStatus.DropSourceQuery)
                {
                    e.QueryResult = true;
                    e.Handled = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }


Stephen
Top achievements
Rank 1
 answered on 17 Aug 2011
3 answers
232 views
Hi all

I'm currently evaluating the grid for one of our main applications, and hit a few early bumps. Generally, I'm struggling a bit with the avaliability of the DataContext in cells, columns etc.

The Microsoft grid, while being a very nice control IMO is a bit of a letdown here. What I would be expecting from a grid is this:

<telerik:GridViewDataColumn 
  DataMemberBinding="{Binding DisplayName}"
  IsVisible="{Binding IsVisible}"
  Header="{Binding HeaderText}"
  My.AttachedProperty="{Binding Foo}"
 />


This feels just natural and enables proper MVVM without any dirty hacks. Much to my delight, I could easily bind the IsVisible property of the column to a boolean property of my view model. When I tried the same thing with the header: fail. I then created a simple template and did the binding and discovered that the data context of my header is not just empty, but actually an instance of system.object. I have no idea what the reason behind this is. I sure didn't set this.

There's a few threads on the issue, in part with workarounds that make me *really* cringe:
http://www.telerik.com/community/forums/wpf/gridview/column-header-binding.aspx

I can't help but wonder why we have a distinction of cases, and why I end up with a random data context for the header  instead of the grid's data context. After all, it just works for other dependency properties and attached properties.

I'm near certain that this will become a problem for us somewhere down the road - because one of our devs wants to set a header dynamically, we do need localization, have custom templating for headers, or another reason I currently don't think about.

What's Telerik's point on this? Is this a know issue that might get fixed? Is it a deliberate choice made for a good reason I don't see? Is it a bug?

Thanks in advance,
Philipp

Ivan Ivanov
Telerik team
 answered on 17 Aug 2011
6 answers
121 views
Hi, 
The following is my Xaml code:
<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="700" Width="900" Background="Black">
 
    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="customItemTemplate">
                <StackPanel>
                    <Image Source="{Binding Path=Country}" Height="150" HorizontalAlignment="Left" Margin="10,10,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="200" />
                    <Button Content="Show Details" Height="23" Name="btnDetail" Width="75" Foreground="White" Click="btnDetail_Click" />
                    <Label x:Name="ID" Content="{Binding Path=ID}"></Label>
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        <telerik:RadCarousel x:Name="sampleRadCarousel" ItemTemplate="{StaticResource customItemTemplate}" Background="Transparent" GotFocus="sampleRadCarousel_GotFocus" />                            
    </Grid>
     
</Window>

I wanna show content of Lable (ID) when the user clicks to Button (btnDetail).
How can I do that?
Thanks for your helping.
Hamid
Top achievements
Rank 1
 answered on 17 Aug 2011
11 answers
2.3K+ views
I have a WPF radgridview with the first column being GridViewCheckBoxColumn. I have templated the header

        <telerik:RadGridView x:Name="WiresGV" AutoGenerateColumns="False" Grid.Row="1" ItemsSource="{Binding Wires}" ShowGroupPanel="False" ShowInsertRow="True" AlternateRowBackground="OliveDrab" clr:XWireAppCommands.DataGridDoubleClickCommand="{Binding TarunCommand}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsSelected}" Name="CBCol" AutoSelectOnEdit="True" IsFilterable="False" Width="60">
                    <telerik:GridViewCheckBoxColumn.Header>
                                <CheckBox Content="Select" Name="HeaderItem" Click="Button6_Click" Foreground="White"></CheckBox>
                    </telerik:GridViewCheckBoxColumn.Header>
                </telerik:GridViewCheckBoxColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding WireDate}" Header="Date" DataFormatString=" {0:dd, MMM, yyyy}" />
 
 
.....
When the user click on the checkbox in the header i want to udpate all checkboxes in the rows to checked or unchecked. I am trying to do that with this code by "cb is always nothing". Pls advise
For Each row As GridViewRow In Me.WiresGV.ChildrenOfType(Of GridView.GridViewRow)()
 
    If (TypeOf row Is GridViewNewRow) Then
        Continue For
    End If
 
    Dim cb As CheckBox
    cb = row.Cells(0).ChildrenOfType(Of CheckBox)().FirstOrDefault
      cb.IsChecked = True
 
 
Next

Pavel Pavlov
Telerik team
 answered on 17 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?