Telerik Forums
UI for WPF Forum
8 answers
273 views
HI there,

I have a little problem. I want to show the FrozenColumnsSplitter but without allowing the user to change the freeze. This means CanUserFreezeColumns="False".
I set the frozen columns throught the code. How can I achieve the described behavoir?

Kind regards
Fx
Dimitrina
Telerik team
 answered on 14 Feb 2013
1 answer
184 views
Hello,

I have placed a RadRibbonView inside a prism region.

<ItemsControl x:Name="RibbonRegion" cal:RegionManager.RegionName="RibbonRegion"></ItemsControl>

Neither the region nor the RadRibbonView have an explicit Height set. Clicking the ApplicationMenu Button, to expose the Backstage, will cause the issue described in the attached image.
The Backstage won't expand to ocuppy the whole window size, it will instead look as though it's trapped inside the region.

I came up with a temp workaround: Adding Height="143" to the region, and adding in the code behind:

MyRibbonView.Height = SystemParameters.WorkArea.Height;

will solve the problem, but will cause unexpected behavior in, for example, the help ScreenTips.

I found a post claiming that adding

<ItemsControl.ItemsPanel>
    <ItemsPanelTemplate>
      <WrapPanel />
    </ItemsPanelTemplate>
  </ItemsControl.ItemsPanel>
inside the region will make it expand when needed and solve the problem, but it does not, and makes the whole region content disappear, also.

Thanks.
Tina Stancheva
Telerik team
 answered on 14 Feb 2013
6 answers
225 views
It seems if I have a column with IsGroupable set to false, I can still drag and drop it to the group panel and grouping still works.

I know this can be workaround by handling and canceling the Grouping event, but are you guys planning a fix for this?

Thanks
Vlad
Telerik team
 answered on 14 Feb 2013
4 answers
215 views

When there's a validation error on a cell, I want the cell background to be red and the tooltip displaying the error to show any time the mouse is over any portion of the cell.  This should replace the red border with small red triganle in the uppper right of the cell. 

I am using 'InViewMode' for the ValidatesOnDataError property.

What's the best way to accomplish this?

Brian
Top achievements
Rank 1
 answered on 13 Feb 2013
4 answers
108 views
I want to be able to bind the IsExpanded property of the item displayed in the RadTreeListView to a property on the bound model, how can I achieve this?


ta

Ollie
Dimitrina
Telerik team
 answered on 13 Feb 2013
10 answers
1.1K+ views
Hello,
I'm dealing with a radgridview and I'm in trouble while trying to retrieve row values from a radgridview.

I'm using telerik wpf control q2 2012.

My gridview is named Radgridview1 and has 5 colums (named "ID", "name", "surname", "address", "city")
I know I can retrive, for example, the value of the colum "ID" of the selected row using this code:

Dim myvalue As String = (RadGridView1.SelectedItem).ID

I have an array containing names of my five columns. I want to cycle my array and retrive values of each column of the selected row.

To do this I should be able to replace ".ID" in my code above with a variable retrievd from my list/array. How I can do this?

How I can replase the phisical name of the colum with the value of my string variable?

Anyone has an example?

King Regards

Simone

CQT
Top achievements
Rank 1
 answered on 13 Feb 2013
1 answer
125 views
Hi,

i need to get the name or titel from the pane where the Usercontrol is loaded. In The ElementLoaded-Event a add
a UserControl to the content of the pane.

On loading the Usercontrol i have to now the name or titel of the pane in which the control is loaded.

How do i do this?

thanks
best Regards
rene
Vladi
Telerik team
 answered on 13 Feb 2013
1 answer
133 views
I have a GridViewDataColumn where I can enter text in the cell, but behavior for the text entered, like:
1. Selecting text using Shift + Left/Right arrows,
2. Hold down Left/Right arrow, the cursor should move continuously until the key is released,
3. Similarly for Shift + Shift + Left/Right arrows,
 does not work.

I want to know what events need to be handled to get the above behavior?
Dimitrina
Telerik team
 answered on 13 Feb 2013
3 answers
311 views
I'm trying to bind some data from an SQL Server database to a RadGridView.  I'm grabbing the data and storing it in a dataset and I've tested this to see that the data is coming in properly.  I've tried setting the ItemsSource and the DataContext with:
Grid.ItemsSource = ds.Tables[0].DefaultView;               

But the data never loads in.  This is my XAML code:

 <telerik:RadGridView Name="Grid" Grid.Row="2" Grid.ColumnSpan="3"  HorizontalAlignment="Center" VerticalAlignment="Bottom"
                             AlternateRowBackground="AliceBlue" SelectionMode="Multiple"
                             AutoGenerateColumns="False" MinHeight="300" MinWidth="800"  CanUserResizeColumns="True" CanUserResizeRows="True"
                             FilteringMode="FilterRow"  IsFilteringAllowed="True"  CanUserSortColumns="True" GridLinesVisibility="Both"
                             DataLoadMode="Asynchronous"  >
            <telerik:StyleManager.Theme>
                <telerik:Windows8Theme/>
            </telerik:StyleManager.Theme>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Width="40" Header="Add" DataMemberBinding="{Binding Add}" IsGroupable="False" IsFilterable="True" >                                
                    </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Width="75" Header="Qty"  IsGroupable="False" IsFilterable="True">
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Width="75" Header="Catalog Number" DataMemberBinding="{Binding Catalog_No}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="200" Header="Description" DataMemberBinding="{Binding Description}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="75" Header="Price" DataMemberBinding="{Binding Price}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="75" Header="Min" DataMemberBinding="{Binding Min}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="75" Header="# avl" DataMemberBinding="{Binding Available}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="75" Header="Size" DataMemberBinding="{Binding Size}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="75" Header="Color" DataMemberBinding="{Binding Color}" IsGroupable="False" IsFilterable="True"/>
                <telerik:GridViewDataColumn Width="75" Header="Style" DataMemberBinding="{Binding Style}" IsGroupable="False" IsFilterable="True"/>
            </telerik:RadGridView.Columns>
            
        </telerik:RadGridView>

So am I doing something wrong here or do I have to change the way I'm loading in the grid data?  In this case, it would not be impractical to load the data in and fill the grid view by looping through the data, but I'm going to be using the gridview in other places as well where I'll have to load in too much data for that to be a practical solution.
Vlad
Telerik team
 answered on 13 Feb 2013
11 answers
808 views

I am having a problem with the grouping functionality of the WPF Control RadGridView.   Dragging and dropping the column name to the "Drag a column header and drop it here to group by that column" area does not work.  Nothing happens, no errors.   The "IsGroupable" setting for each column is checked.  I tried explicitly setting it in the xml, and it had no effect.  The ShowGroupPanel
on the RadGridView is set.   According to the documentation that is all that is needed.

Here is the XAML file.




<code>

<UserControl x:Class="VaultSolutions.ArchiveAccelerator.ManagementConsole.JobsGridView"
             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="1313" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation
                             xmlns:my="clr-namespace:VaultSolutions.ArchiveAccelerator.ManagementConsole" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <my:vwJobsView x:Key="ThreadCollection" />
    </UserControl.Resources>

    <DockPanel Height="Auto" Name="dockPanel1" Width="Auto" AllowDrop="True">
       
        <telerik:RadGridView Name="JobsRadGridView" AutoGenerateColumns="False" Width="Auto" ItemsSource="{Binding Source=   {StaticResource ResourceKey=ThreadCollection}}" EnableRowVirtualization="True" EnableColumnVirtualization="True" AllowDrop="True" Drop="JobsRadGridView_Drop">

            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Name="ThreadIdentity" DataMemberBinding="{Binding Path=ThreadIdentity}" Header="Job #" TextAlignment="Right" />
                <telerik:GridViewDataColumn Name="TaskName"       DataMemberBinding="{Binding Path=TaskName}" Header="Task Name"/>
                <telerik:GridViewDataColumn Name="DTStarted"      DataMemberBinding="{Binding Path=DTStarted}" Header="DT Started"/>
                <telerik:GridViewDataColumn Name="DTStopped"      DataMemberBinding="{Binding Path=DTStopped}" Header="DT Stopped"/>
                <telerik:GridViewDataColumn Name="Target"         DataMemberBinding="{Binding Path=Target}" Header="Target" />
                <telerik:GridViewDataColumn Name="SubTarget"      DataMemberBinding="{Binding Path=SubTarget}" Header="Sub Target" Width="200" />
                <telerik:GridViewDataColumn Name="NumProcessed"   DataMemberBinding="{Binding Path=NumProcessed}" Header="# Processed" TextAlignment="Right" />
                <telerik:GridViewDataColumn Name="NumError"       DataMemberBinding="{Binding Path=NumError}" Header="# Error" TextAlignment="Right" />
                <telerik:GridViewDataColumn Name="EventMessage"   DataMemberBinding="{Binding Path=EventMessage}" Header="Event Message" TextWrapping="Wrap" />
                <telerik:GridViewDataColumn Name="JobStatus"      DataMemberBinding="{Binding Path=JobStatus}" Header="Job Status"/>
                <telerik:GridViewDataColumn Name="LastUpdate"     DataMemberBinding="{Binding Path=LastUpdate}" Header="Last Update"/>
                <telerik:GridViewDataColumn Name="Servername"     DataMemberBinding="{Binding Path=Servername}" Header="Server Name"/>
            </telerik:RadGridView.Columns>

        </telerik:RadGridView>
      
    </DockPanel>
                 
</UserControl>
</code>


The "ThreadCollection" is an ObservableCollection.

Adding the following, displays the groups.  They are grouped correctly.  All seems to work unless you drag the group name off of the group bar, or use the close icon on the group name.  The GridView will be correct, but you can not get the group back again.

           
<telerik:RadGridView.GroupDescriptors>
   <telerik:GroupDescriptor Member="Target" />
   <telerik:GroupDescriptor Member="JobStatus" />
   <telerik:GroupDescriptor Member="Servername" />
</telerik:RadGridView.GroupDescriptors>

In an attempt to debug, I added event hanlders for Grouped and Grouping events.  They never got called on the drag and drop to the group bar.  The only time they were called is when the GroupDescripitors were in place, and then only when the groups were removed from the bar. 

Using Telerik version 12.1.326.0
VisualStudio 2010
.NET 3.5
C#
Windows Server 2003 R2

Any suggestions would be appreciated.

Vlad
Telerik team
 answered on 13 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
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
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?