Telerik Forums
UI for WPF Forum
1 answer
194 views

Dear Team,

we need to enable copy functionality for our WPF application especially for radgridview. How could i enable this? As per my understanding To enable cell copy i've to do like ClipboardCopyMode="Cell" and SelectionUnit="Cell". If i apply this then row selection is not working because i am using row SelectionChanged event in order to do some operation.

<telerik:RadGridView x:Name="gvDefaultDashboard"
                                     AutoGenerateColumns="False"
                                     CanUserResizeColumns="True"
                                     Padding="1,0,0,0"
                                     SelectionMode="Single"
                                     EnableColumnVirtualization="False"
                                     ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DataContext.GetPagedInfo,Mode=TwoWay}"
                                     SelectionChanged="gvDefaultDashboard_SelectionChanged"
                                     Filtering="gvDefaultDashboard_Filtering"
                                     FilterOperatorsLoading="OnRadGridViewFilterOperatorsLoading"
                                     AutoExpandGroups="True"
                                     Sorting="gvDefaultDashboard_Sorting"
                                     Grouping="gvDefaultDashboard_Grouping"
                                     telerik:PersistenceManager.StorageId="{Binding DashBoardPersistenceID,Mode=TwoWay}" ClipboardCopyMode="Cells" SelectionUnit="Cell">
</telerik:RadGridView>
.

I want to enable cell copy without affection the row selectionchanged event how could i achieve this. Please advice.

Thank you.

Stefan
Telerik team
 answered on 25 Mar 2016
2 answers
136 views

When export grid to Excel (using ExcelML format) all numbers are exported as text.

Is there a way to export numbers as formatted  numerik values?

 

Thank you

Dilyan Traykov
Telerik team
 answered on 25 Mar 2016
4 answers
357 views

I am using WPF to build out the mockup shown in the attached image. I wanted to know if the RadTimeline control can be used to build it faster. 

  • General: I saw this post and this other post asking related questions. Has the control changed significantly since then?
  • Group Labels: I saw the world cup demo that has the group labels in the timeline. This works but takes up valuable vertical space for me. What would be the best way to have the label on the same row (before the items) as shown in the mockup?
  • Adding New Items: Clicking the "plus" buttons adds a new item to the timeline row. I was going to use milestones and handle the click event. Is there a better way?
  • Vertical Line: The vertical line moves if a user clicks in an empty region within the timeline control. Would I need to implement it as described in this thread or is there a simpler way now? Can you get the time directly from a click event?
  • Drag/Reorder: Is it possible to reorder the items in a row by dragging and dropping them? Is this method still the best solution?
  • Item Width: Currently, the item width is changed by changing the "duration" properties in the pane below the timeline. Would it possible to have users change the item width directly in the timeline?
  • Item Coloring: The green region in each item indicates it's progress. Hence it is a different width for each item. I am assuming that this can be achieved using the ItemTemplateSelector. Is that correct?

Any other suggestions or tips that might help me?

Thanks!

Martin Ivanov
Telerik team
 answered on 25 Mar 2016
2 answers
150 views

Hi,

What is the best way to implement the feature of switching between Touch and non Touch Screen ?

Is there any way to do it with a single Xaml file not like it is implemented within th telerik WPF Demo ?

Thanks

ajoua taha
Top achievements
Rank 1
 answered on 24 Mar 2016
3 answers
118 views

Hi,

We have a RadDocking control in which one of the RadPane is set to "FloatingDockable" within RadSplitContainer. It is also set to telerik:RadDocking.ExcludedFromLayoutSave="True". At the start of the application we are loading the RadDocking with the saved layout by calling RadDocking.LoadLayoutFromString(layout).

When we load the layout with the above operation, we are not able to see the RadPane that is set to "FloatingDockable". Remaining Rad Panes are appearing without any issue.

Can you please help in identifying what is causing the issue and how to fix the same?

 

Regards,

Alex

Nasko
Telerik team
 answered on 24 Mar 2016
3 answers
170 views

Hi, 

         I have used Scroll Pattern on RadPropertyGrid to get VerticalScroll Percent but the value is '0.0' only even after the scroll happened till end.

 Another problem is  with Scrollpattern.ScrollVertical(ScrollAmount.LargeIncrement) method .It is doing smallincrements instead of PageDown or PageUp and vice versa.

 

Regards,

Nagasree.

   

Stefan Nenchev
Telerik team
 answered on 24 Mar 2016
6 answers
218 views
hi

assume i have a property named MyProperty of type MyType with namespace address of :
NameSpaceMain.Namespace2.Namespace3. ... .LastNameSpace.MyType


as you know when using nested properties the value of the main property (who owns the nested properties) is shown somehow like this in tyhe propertygrid:


+ MyProperty                      NameSpaceMain.Namespace2.Namespace3. ... LastNameSpace.MyType
    nestedproperty1                  true
    nestedproperty2                  false
    nestedproperty3                  true
    nestedproperty4                  false

what should i do to just show the last part (MyType) or even some other manual Name as the value of my property in the peopertygrid
thank you in advance for your answer
Stefan
Telerik team
 answered on 24 Mar 2016
5 answers
216 views

Hello,

When we make RadCombobox IsReadonly="True", the value inside is not looking good. It masks the value.

How can we remove the mask or make more transparent to make the value visible more bright ?

Please guide me,

Masha
Telerik team
 answered on 24 Mar 2016
1 answer
131 views

Hi, I have a schedule view that when an appointment is edited, it disappears every second time. Please help.

                           <telerik:RadScheduleView x:Name="MainSchedule" 
                                                         Grid.Row="1" 
                                                         Margin="2" 
                                                         TimeMarkersSource="{Binding TimeMarkers}"
                                                         CategoriesSource="{Binding Categories}"  
                                                         MinAppointmentHeight="10" 
                                                         NavigationHeaderVisibility="Collapsed" 
                                                         AppointmentsSource="{Binding WorkOrderTasks}" 
                                                         AppointmentCreated="MainSchedule_AppointmentCreated"
                                                         ResourceTypesSource="{Binding ResourceTypes}" 
                                                         AppointmentDeleted="MainSchedule_AppointmentDeleted" 
                                                         AppointmentEdited="MainSchedule_AppointmentEdited"
                                                         CurrentDate="{Binding ElementName=TimeBar,Mode=TwoWay, Path=SelectionStart}" 
                                                         SelectedAppointment="{Binding SelectedWorkOrderTask,Mode=TwoWay}"
                                                         FirstVisibleTime="8:00:00" 
                                                         ShowAppointmentDeleteButton="False"
                                                         ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}">

               
        private void MainSchedule_AppointmentEdited(object sender, AppointmentEditedEventArgs e)
        {
            VisualPlanningBoardViewModel vm = (VisualPlanningBoardViewModel)this.DataContext;
            if (vm != null)
            {
                vm.UpdateWorkOrderTask((WorkOrderTask)e.Appointment);
                vm.UpdateSchedules();               
            }                  
        }

 

      public void UpdateSchedules()
        {
            UpdateMinimap();               
            this.RaisePropertyChanged(() => this.WorkOrderTasks);
            this.RaisePropertyChanged(() => this.MiniMapWorkOrderTasks);
            
        }

Yana
Telerik team
 answered on 24 Mar 2016
2 answers
233 views

Hi! I appreciate your time very high but this time I can't go without your help. Please don't consider me as lazy and slothful programmer but I've tryed to solve my problem for all day today and my efforts to solve it remain ineffectual. The matter is in the following: I've studied the Prism 6 application solution you give me as answer on my question at http://www.telerik.com/forums/can-i-use-telerik-styles-for-prism-window-%28wpf%29-and-prism-usercontrol-%28wpf%29-that-are-supplied-with-prism-template-pack-for-prism-6  and try to write similar application myself. But all that is achieved by me here is that the solution of this application is succsesfully built without errors and runs. But herewith the MainWindow of my application is not displayed on the computer screen! I attached the structure of my application solution  in Teleril_Prism_Unity.PNG file.I use MS VS 2015 Professional (russified).

Below is App.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  </startup>
</configuration>

Below is Bootstrepper:

class FcBootstrapper : UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void InitializeShell()
        {
            ((RadWindow)this.Shell).Show();
        }
    }

Below is App.XAML:

<Application x:Class="FlowmeterConfigurator.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"
             xmlns:local="clr-namespace:FlowmeterConfigurator"
             xmlns:views="clr-namespace:FlowmeterConfigurator.Views">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Below is App.XAML.CS:

public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var bootstrapper = new FcBootstrapper();
            bootstrapper.Run();
        }
    }

Below is MainWindow.XAML:

<telerik:RadWindow x:Class="FlowmeterConfigurator.Views.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"
        xmlns:prism="http://prismlibrary.com/"
        xmlns:views="clr-namespace:FlowmeterConfigurator.Views"
        prism:ViewModelLocator.AutoWireViewModel="True"
        Header="{Binding Title}" Height="300" Width="300">
    <Grid>

    </Grid>
</telerik:RadWindow>

Below is MainWindow.XAML.CS:

public partial class MainWindow : RadWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }

And below is MainWindowViewModel.CS

public class MainWindowViewModel : BindableBase
    {
        private string _title = "Prism Unity Application with Telerik";

        public MainWindowViewModel()
        {

        }

        public string Title
        {
            get { return _title; }
            set { SetProperty(ref _title, value); }
        }
    }

I created this application as Telerik Empty Project and after added folders there. Then I added RadWindow in Views folder and named it MainWindow and then deleted MainWindow (which was WPF Window) created with the solution. And after it I aded Prism 6 for WPF library via NuGet. Please reply me (if this is possible of course) why MainWindow is not visualized when the application runs.  I would be very much obliged to you.

Eugene.

Eugene
Top achievements
Rank 1
 answered on 24 Mar 2016
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?