Telerik Forums
UI for WPF Forum
2 answers
346 views
Hi,

I am using aggregate function to calculate sum of a certain column in my grid. However, the sum value is displayed both on the footer as well as the group header. How can I hide the value for m showing on the group header?

Also, I am doing the grouping programmatically, is there a way to hide the column that is grouping member from the showing in the grid? Currently, the group column displays its value in the group header as well as in the grid itself. I think it is sufficient to have the data on the header only. How can I achieve that?

Regards
Perlom
Top achievements
Rank 1
 answered on 14 Oct 2011
1 answer
153 views
I have an application that uses RadDocking to host a RadGridView control.  When the application initially loads the grid's databinding, sorting, filtering, grouping, etc. work fine.  However, if the pane containing the RadGridView control is pinned, unpinned, or floated all user customizations to the grid such as sorting and filtering are lost.  It appears that the the grid is reinstantiated when the user performs any of these actions.  I have set IsContentPreserved to True in the RadPaneGroup that hosts the RadGridView, but the grid's state is still not preserved.  Is there a way to preserve state in this scenario?

 

 

 

<telerik:RadDocking HasDocumentHost="False" Grid.Row="2" PreviewUnpin="RadDocking_PreviewUnpin">
    <telerik:RadSplitContainer InitialPosition="DockedBottom">
        <telerik:RadPaneGroup IsContentPreserved="True">
            <telerik:RadPane
                Header="Grid"
                CanFloat="False"
                CanUserClose="False"
                ContextMenuTemplate="{x:Null}">
                   <Grid>
                    <telerik:RadGridView AutoGenerateColumns="False" SelectionMode="Multiple" RowIndicatorVisibility="Collapsed" ItemsSource="{Binding}" IsReadOnly="True" SelectionUnit="Cell">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewSelectColumn Width="20"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=InventoryDate, Mode=OneWay}" Header="Inventory Date" DataFormatString="{}{0:MM/dd/yyyy}"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=BridgeNumber, Mode=OneWay}" Header="Bridge #"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CreatedBy, Mode=OneWay}" Header="Created By"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CreatedDate, Mode=OneWay}" Header="Created Date" DataFormatString="{}{0:MM/dd/yyyy}"/>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </Grid>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

Thanks for any suggestions.

Steve

 

Steve Hulse
Top achievements
Rank 1
 answered on 14 Oct 2011
2 answers
282 views
I have tried the latest WPF4 build 01582RadControls_for_WPF40_2011_2_1010_TRIAL_hotfix.zip and RadControls_for_WPF40_2011_2_0920_Trial_hotfix.zip.  I have verified that the assemblies are in the proper place.  Had no problem with Telerik.Windows.Controls.RibbonView; however when I run my program I get the following exception when trying to render the MainWindow.

Could not load file or assembly 'Telerik.Windows.Controls.Docking, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies.

Anyone else having this problem?

Thanks in advance,
Steve

P.S. The Examples app doesn't run either.
Boyan
Telerik team
 answered on 14 Oct 2011
3 answers
83 views
Hi


I have 15 Tile View Item I have to change  First Tile View Item into ninth TileView Item Only those two item only swapped with any other TileViewItem Change

Iam using this Version( 2011.2.712.40)

Example

Before Swapping

Item 1 Item 2 Item 3 Item 4 Item 5
Item 6 Item 7 Item 8 Item 9 Item 10
Item 11 Item 12 Item 13 Item 14 Item 15



After Swapping


Item 9 Item 2 Item 3 Item 4 Item 5
Item 6 Item 7 Item 8 Item 1 Item 10
Item 11 Item 12 Item 13 Item 14 Item 15


Regards
S.SenthilNathan
Tina Stancheva
Telerik team
 answered on 14 Oct 2011
1 answer
217 views
Hi,

I have a typical tree list setup:

        <telerik:RadTreeListView ItemsSource="{Binding OuterList}">
            
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding MiddleList}">
                    <telerik:TreeListViewTableDefinition.ChildTableDefinitions>
                        <telerik:TreeListViewTableDefinition ItemsSource="{Binding InnerList}"/>
                    </telerik:TreeListViewTableDefinition.ChildTableDefinitions>
                </telerik:TreeListViewTableDefinition>
            </telerik:RadTreeListView.ChildTableDefinitions>

    </telerik:RadTreeListView>

Initially, OuterList, MiddleList and InnerList were all ObservableCollections. But when I'm adding or removing 100s of items from a list, ObservableCollection fires an event for each change and a huge amount of time (minutes) gets used up in RadTreeListView, apparently figuring out the new UI layout.

So I decided to make MiddleList a List<MyObject> property. I'd calculate the new contents of MiddleList elsewhere, then I'd set the MiddleList property to the new list. Changing that property would trigger an INotifyPropertyChanged.PropertyChanged event. All the changes would become visible to RadTreeListView in a single event.

Unfortunately, RadTreeListView doesn't seem to respond to a PropertyChanged event that changes the TreeListViewTableDefinition's ItemsSource. When I set MiddleList to a new value, the list of displayed items does not change.

Is there a way to force RadTreeListView to re-load its table definitions? Is there another approach I should be taking?

Thanks,
   Bob Alexander
Dimitrina
Telerik team
 answered on 14 Oct 2011
8 answers
228 views
Hello,

I do understand what controls are supported and which ones are not.  We are at a point where we need to automate the testing of our application and unfortunately the controls we use most are the ones unsupported (ribbon, docking, tab).

I've read forum posts and got bits and pieces of when they will be supported.  My question is does Telerik have a roadmap as to when ALL of the controls will be fully supported?  Seems the WinForms support was added recently.  Although it may be a painstaking process for us developers, we may have to look at oter suites that do support automation.

Thanks,
Chris
Tina Stancheva
Telerik team
 answered on 14 Oct 2011
3 answers
427 views
Hi,

I have some RadTabItem and each one have a gridview which are binded to lists of type ObservableCollections.
Each line of gridviews have on it a GridViewCheckBoxColumn and a GridViewDataColumn  which show when the checkbox was updated for the last time.
The collections contains entities which implement INotifyPropertyChanged.

The issue come when I start the application, I switch to the third tab I check the checkbox on one line and the field of the line is updated.
I switch to another tab and switch back to the third tab, check the checkbox on one line but now the field of the line is not updated.

I thought at the beginning that it was a problem of the entity which not update the data at it should but the entity have always the right values.
I also added a combobox in one tab for testing and binded it to the same collection of the gridview and the combobox show always the correct updated values so the problem seems to come from the gridview.

Here is the gridview of one tab:
<telerik:RadGridView telerik:StyleManager.Theme="Office_Blue"  Width="auto" Height="100" ItemsSource="{Binding MyCollection}" AutoGenerateColumns="False">
    <telerik:RadGridView.Columns>
        <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsDemande, Mode=TwoWay}" />
        <telerik:GridViewDataColumn Width="auto"  DataMemberBinding="{Binding DateLastUpdate}" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

And here is the combobox which is binded correctly to the collection:
<ComboBox ItemsSource="{Binding MyCollection}">
<ComboBox.ItemTemplate>
<DataTemplate>
<ComboBoxItem Content="{Binding DateLastUpdate}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>

Did you already experienced this issue?
Thanks
Hakim
Top achievements
Rank 1
 answered on 14 Oct 2011
3 answers
196 views
I have a contextual tab, which I show using

Contextualgroup.IsActive = true;

This has the effect of displaying the tab and changing the current active tab, which is very annoying.  I was under the impression that this was against Microsoft's guidelines.  If you draw a rectangle in PowerPoint 2010 the Format tab appears, but the active tab remains on whatever you had selected.

Is there a way to simulate the same functionality?  I have tried IsVisible, but that seems to be just a getter.

Thanks
John
Viktor Tsvetkov
Telerik team
 answered on 14 Oct 2011
7 answers
801 views
Hi,

I'm trying to get the Office 2010 look & feel so i'd like to apply glass effect on the RadRibbonWindow, wich works fine with a standard window (http://msdn.microsoft.com/en-us/library/ms748975.aspx).

Have you already set a handler that would prevent that feature to work ?

Regards.
<telerik:RadRibbonWindow xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="TestRibbon.MainWindow"
        Title="MainWindow" Height="350" Width="525"
        Loaded="Window_Loaded" Background="Transparent">
</telerik:RadRibbonWindow>

public partial class MainWindow : RadRibbonWindow
{
    public MainWindow()
    {
        InitializeComponent();
    }
 
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        try
        {
            IntPtr mainWindowPtr = new WindowInteropHelper(this).Handle;
            HwndSource mainWindowSrc = HwndSource.FromHwnd(mainWindowPtr);
            mainWindowSrc.CompositionTarget.BackgroundColor = Color.FromArgb(0, 0, 0, 0);
 
            System.Drawing.Graphics desktop = System.Drawing.Graphics.FromHwnd(mainWindowPtr);
            float DesktopDpiX = desktop.DpiX;
            float DesktopDpiY = desktop.DpiY;
 
            MARGINS margins = new MARGINS();
            margins.cxLeftWidth = Convert.ToInt32(0 * (DesktopDpiX / 96));
            margins.cxRightWidth = Convert.ToInt32(this.Width * (DesktopDpiX / 96));
            margins.cyTopHeight = Convert.ToInt32(0 * (DesktopDpiX / 96));
            margins.cyBottomHeight = Convert.ToInt32(this.Height * (DesktopDpiX / 96));
 
            int hr = DwmExtendFrameIntoClientArea(mainWindowSrc.Handle, ref margins);
            if (hr < 0)
            {
                MessageBox.Show("Can't apply glass...");
            }
        }
        catch (DllNotFoundException)
        {
            Application.Current.MainWindow.Background = Brushes.White;
        }
    }
 
    [StructLayout(LayoutKind.Sequential)]
    public struct MARGINS
    {
        public int cxLeftWidth;
        public int cxRightWidth;
        public int cyTopHeight;
        public int cyBottomHeight;
    };
 
    [DllImport("DwmApi.dll")]
    public static extern int DwmExtendFrameIntoClientArea(
        IntPtr hwnd,
        ref MARGINS pMarInset);
}

Tina Stancheva
Telerik team
 answered on 14 Oct 2011
1 answer
304 views
Hey, I'm not sure if this is possible, but can a RadTreeView handle being inside a ScrollViewer and letting it be in control of the scrolling??

I seem to have lost 2 abilities that i did before,

1) the ability to scroll up with an item when dragging
2) the ability to use the scroll wheel when my mouse is over the TreeView

you can see what i mean in this screen capture, the first part shows the not being able to drag an item upto the top, and the second part shows the ability to use the scroll wheel when i mouse over the scrollbar but not the scroll wheel..

also note, i have totally customised the look and feel of the RadTreeViewItem's... but it is indeed a RadTreeView.

http://www.youtube.com/watch?v=iE1rbqdDlmA

The reason we need the scroll viewer to work now, instead of using the RadTreeView's control is because we have the small panel that is pinned to the bottom of it, but when there are only a few items it appears directly below them, rather than being constantly pinned to the bottom of the screen.. its almost a "Traveling" toolbar.

Any help with this issue would be appreciated.
Tina Stancheva
Telerik team
 answered on 14 Oct 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?