Telerik Forums
UI for WPF Forum
1 answer
103 views
Hi,
I have a variable length data grid where some columns are given size as * and some are of size auto.
I am facing  issue in retaing the resize column width of gridview after the page is refreshed. Grid is not maintaining the user settings for column resize/arrangement.
Please provide inputs on same.
Yoan
Telerik team
 answered on 13 Mar 2013
1 answer
255 views
I have this code and I want to be able to press Ctrl+O anywhere in my code to open a new document. How is this implemented in the RibbonView?

<telerik:RadRibbonBackstage>
               <telerik:RadRibbonBackstageItem Name="OpenDocument" Header="Open"  Icon="{Binding Icons.OpenDocument}"
                                                             telerik:KeyTipService.AccessKey="Ctrl+o" telerik:KeyTipService.AccessText="Ctrl+o" 
                                               Command="{Binding OpenCommand}" CommandParameter="DOPE" IsSelectable="False" />
               <telerik:RadRibbonBackstageItem Header="Save" Name="SaveWorkSpace" Icon="{Binding Icons.SaveDocument}" Command="{Binding SaveCommand}" IsSelectable="False"/>
               <telerik:RadRibbonBackstageItem IsGroupSeparator="True" />
               <telerik:RadRibbonBackstageItem Header="Recent" IsDefault="True">
 </telerik:RadRibbonView.Backstage>

This is not the complete menu ..
Martin
Top achievements
Rank 2
 answered on 13 Mar 2013
1 answer
128 views
Hello,
I need to implement Drag & Drop in a TreeListView. I do not have found examples.

Could you please give me some links and advises about "How to use DragDropManager with TreeListView control" ?

Thanks
Regards
Stephane
Nick
Telerik team
 answered on 13 Mar 2013
1 answer
131 views
Hi

Is it possible to implement the 'The 2029 Rule' from Excel when a user enters two-digit year numbers?

See this link for futher information about the 2029 Rule: The 2029 Rule


Thanks in advance!
Vladi
Telerik team
 answered on 13 Mar 2013
2 answers
493 views
I have set the DatePicker to IsReadOnly=true, which stops users from typing in the control.

However, the show calendar button is still active.

How do I disable this?


Thanks

Masha
Telerik team
 answered on 13 Mar 2013
2 answers
105 views

Hello,

I have a wpf desktop application with a radtransition control that use multiple transition effects (slideAndZoom, flipWrap, Roll, MotionBlurZoom).
I recently create the same application but in a WPF browser application (xbap).  exept the slide&zoom effect, all the other effect were replaced by a fade effect.
Is there a solution for this?

Greetings

Francesco
Top achievements
Rank 1
 answered on 13 Mar 2013
1 answer
88 views
Hi Folks,
we need a GridView with tree suport. We are thinking about replacing RadGridView by TreListView.

Is TreeListView a superset of RadGridView or where are the differences ?

Best regards
Oliver
Vlad
Telerik team
 answered on 13 Mar 2013
0 answers
143 views
Hi Support Team,

I am facing an issue while dragging a row from source RadGridView which is in separate window (different instance of same application) and dropping it in target RadGridView which is in separate  window (different instnace of the same application). I have implemented like following but I am getting an exception which is following.  But if I drag text from textbox and drop into RadGridView instead of using GridRow as source it works fine. Please help is to resolve this issue.

"Error HRESULT E_FAIL has been returned from a call to a COM component."

App.xaml file contents are following:
=============================
<Application x:Class="DragAndDropWPFApp.App"

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
StartupUri="MainWindow.xaml">

<Application.Resources>

<Style TargetType="telerik:GridViewRow">

<Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True"></Setter>

<Setter Property="telerik:RadDragAndDropManager.AutoDrag" Value="True"></Setter>

</Style>

</Application.Resources>

</Application>
====================================
I have two RadGridViews in the xaml windows which names are following:
1. rgvSource
2. rgvTarget

Code in the code behind file is following for DragOver Event.

private void rgvSource_DragOver(object sender, DragEventArgs e)
        {
            RadGridView grid = (RadGridView)sender;
            GridViewRow row = (GridViewRow)this.rgvSource.ItemContainerGenerator.ContainerFromItem(this.rgvSource.SelectedItem);
            User user = row.Item as User;
            string data = user.Id.ToString() + "," + user.UserName + "," + user.LastLoginDate.ToShortDateString();   
            DragDrop.DoDragDrop(rgvSource, data , DragDropEffects.Copy);

        }

Dropped Grid event is following

================================

 private void rgvTarget_DragEnter(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.Text))
                e.Effects = DragDropEffects.Copy;
            else
                e.Effects = DragDropEffects.None;  
        }

        private void rgvTarget_Drop(object sender, DragEventArgs e)
        {
            MessageBox.Show(e.Data.GetData(DataFormats.Text).ToString());
        }
=============================================================
so how to resolve Com expection?

Hope someone will help me out to resolve this issue. Its urgent.

Thanks

Laxman


 

 

 

 

 

Laxman
Top achievements
Rank 1
 asked on 13 Mar 2013
4 answers
280 views
I am trying to find an example of how to set a TabItem style if the Tab Control is bound so the tabitems are dynamically generated? I see examples when you explicitly set the style on the tabitem, but how do you do that on a bound tab control?

All I am trying to do is make it so the selected tab header is blue instead of the default color.
heavywoody
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
366 views
Using Prism v4 (with MEF for that matter) + MVVM. There is a convenient way to let views/viewmodels be aware of the view's state. Simply implement the IActiveAware interface in the viewmodel (and/or the view) and make sure the view is attached to a region. Now, when the view becomes active/inactive the IsActive property of the viewmodel will reflect its state.

Now, I have something like 20 different panes but not all of them are visible at all times. Just like in Visual Studio, some documents need certain panes. E.g. if you open an image in Visual Studio, the Colors pane becomes visible. For commands and messages, this implies a problem. Again in Visual Studio, consider the Ins shortcut in the Image editor. Issuing this command adds a new image type. However, if you issue this command in your source code, you toggle insert mode. Ok, so a command can mean different things depending on context or "activeness" if you'd like. If the active document is an image, the command should be handled differently than if it is a text file.

So for my ImageViewModel I have an OpenCommand. The same goes for TextFileViewModel. Now, If I press the Ins key the active document's corresponding OpenCommand should be issued. If I had two views - ImageView and TextFileView - I would simply implement the IActiveAware interface and issue a DelegateCommand (which is IActiveAware) to make sure the right OpenCommand is triggered. But... I have my views in panes. Now what?

How can I successfully handle IActiveAware (or other suitable interface) for my RadDocking/RadDocumentPane/RadPane hierarchy?

E.g. When my active RadDocumentPane contains a TextFileView, then my TextFileViewModel should be aware of this "Text File state". Similarly, if my active RadDocumentPane contains a ImageView, then my ImageViewModel should be aware of this "Image File state".

This is needed not only to correctly coordinate commands, but also to allow multiple viewmodel instances know if they should respond to certain messages/events. Since panes can be pinned, hidden etc, it's not completely obvious how this should be handled. Ideas?

UPDATE: I believe a good start would be to let the setter of ActivePane issue the Microsoft.Practices.Prism.IActiveAware interface in the same way Prism does it. (See RegionActiveAwareBehavior.cs in Prism 4.)
Ivo
Telerik team
 answered on 12 Mar 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?