Telerik Forums
UI for WPF Forum
1 answer
79 views

Good morning Telerik,

I am looking for advice on how to accomplish something.

I am working on an app that will allow separated parents to easily plot out who has their children and when.  I am wanting to use Telerik's controls to visually display display something that looks like a combination between a Gannt view and a calendar.  Do you have any suggestions on how I might go about that?

 

Thanks!

Yana
Telerik team
 answered on 15 Mar 2016
8 answers
449 views
We meet again!  I've been figuring stuff out on my own pretty well for a few weeks without having to make any posts, but I'm stuck again...doh!

 

So I've seen the WPF demo app that shows how to use a PersistenceManager to save and load using a Stream.  The demo works well, I have no issues with it...however I modified it to do the saving and loading during the Loaded and Unloaded events, and when this line of code is executed, it throws a NullReferenceException...

this.stream.Position = 0L;

Which isn't shocking since I do not see anywhere that the Stream object is instantiated except when executing the line...

this.stream = manager.Save(this.gridView);

So...I'm getting the feeling that a PersistenceManger object wasn't intended to be used between launches of an app...or am I just not understanding something here?

 

 

 

 

 

 

adfad
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Mar 2016
3 answers
55 views

Hello Telerik Support team,

In order to purchase your product, I must build a grid able to perform many of the basic operations at the same time.

I want it to be able to:

 

  • Support MVVM
  • Contain a large amount of data: 1.000.000 rows. Linq to SQL should do the job here
  • Header Filter the whole grid (your built in filter only filters the current page)
  • Group by columns
  • Sort the whole grid
  • Expand/collapse the Children (hiding the + button when the row has no children - note your demos dont have this function)
  • Paginate
  • and last but surely not least: have a good performance
Telerik Demos only perform one of the above at a time, and for that reason things seem to mess up when we merge everything together



It would be nice if you could provide me an example that does all those functionalities together.

I shall provide some code of what I have achieved to far, if requested.

 

Thank you

Stefan
Telerik team
 answered on 14 Mar 2016
3 answers
157 views

Hello Telerik team

We're considering using RadMap in our new WPF application

I'm trying to add my custom webclient which uses custom user-agent and referrer

solutions i'v tried:

- adding this mechanism to getCachedTile(), but it seems not using Asyc method so it makes the progrom very laggy and slow

- adding dummy Uri in GetTile() then add tile retriever to GetCachedTileAsync(), it works but i can't cancel out-of-view tile requests after fast zoom or drag

Is there any way else to get around this issue?

regards

Martin Ivanov
Telerik team
 answered on 14 Mar 2016
1 answer
212 views

I have a gridview bound to a dictionary... working well except this part.  I'm trying to pass a the value component of the item in the grid as a command parameter to the view model.  I get a null object as the parameter.  examples of this anywhere?

 

when the collection was just an observable collection the xaml worked as follows:

CommandParameter= {Binding}

this gave me the item in the collection as the command parameter.  When i changed my collection to a dictionary (from observableCollection) it started being null.     

Martin
Telerik team
 answered on 14 Mar 2016
6 answers
118 views

I am using Visual Studio 2013 with Telerik 2015.2.623.45 and I am seeing some very odd behavior with the Designer when I add a RadRibbonSplitButton to a RadRibbonView. Here is my simple test code.

<telerik:RadRibbonView>
  <telerik:RadRibbonTab Header="Home">
    <telerik:RadRibbonGroup Header="Search">
      <telerik:RadRibbonSplitButton Text="Sketch" Size = Large" />
    </telerik:RadRibbonGroup>
  </telerik:RadRibbonTab>
</telerik:RadRibbonView>

When I am trying to type more XAML into the XAML tab (and the Designer is not even open, its minimized) the Designer keeps opening and selecting the RadRibbonSplitButton. Its very add (and extremely frustrating) that while I am typing or using the keyboard in the XAML tab the Designer will just take over and open directly on top of everything. I added a color picker as the content of the RadRibbonSplitButton and the color picker will draw on top of the XAML and the designer is minimized (collapsed). As it stands right now I can't even use the RadRibbonSplitButton or my Designer just takes over.

 Anyone else seeing this behavior?

 

 

 

 

Evgenia
Telerik team
 answered on 14 Mar 2016
2 answers
220 views

Hi, is there any way to wrap text on merged cells? I'm using a custom template the style of  the merged cells but I haven't been able to wrap the text con those cells.

 

Thanks.

Carlos
Top achievements
Rank 1
 answered on 13 Mar 2016
1 answer
97 views

Hello dear,

i am so tired, to implement a sample, i want make a sample Map project in WPF for SalesDashboard only, but i alwasy have a problem,

can you provide a sample map especially only a salesdashboard project only and send to me please

Dinko | Tech Support Engineer
Telerik team
 answered on 11 Mar 2016
3 answers
85 views

Hello All,

I would first like to thank Martin again, he's sample got me pretty far.  In fact in the first sample included below, I got my Labels and the slider bar behaving as I would like.  When I tried porting over to my main application (the second sample below Sample2), I got some BUT not all behavior...  Namely, the trackbar is not coloring correctly, nor does it have the proper thumbs, for the selector.  I see in Martin's sample code that there is an application resource defined in the app.xaml file.  

 

<Application x:Class="BaseApplicationProject.App"
      
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             
StartupUri="MainWindow.xaml">
    <
Application.Resources>
        <
ControlTemplate x:Key="largeDecreaseButtonTemplate" TargetType="{x:Type RepeatButton}">
            <
Grid Background="{TemplateBinding Background}"/>
        </
ControlTemplate>
    </
Application.Resources>
</
Application>

 

 

However, my lack of familiarity with this has caused some problems.  You see in my main app the App.xaml file has a ResourceDictionary defined:

 

<Application x:Class="Worms.App"
     
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     
              Startup="OnStartup" Exit="OnExit">
    <
Application.Resources>
        <
ResourceDictionary>
            <
ResourceDictionary.MergedDictionaries>
               
 <ResourceDictionary Source="/Fluent;Component/Themes/Generic.xaml" />                 <ResourceDictionary Source="/Fluent;Component/Themes/Office2010/Silver.xaml" />                 <ResourceDictionary Source="Theme/Colors/Silver.xaml"/>                 <ResourceDictionary Source="Theme/Theme.xaml"/>                 <ResourceDictionary Source="Theme/Resources.xaml"/>                 <ResourceDictionary Source="pack://application:,,,/AvalonDock.Themes;component/themes/dev2010.xaml"/>                 <ResourceDictionary Source="Theme/AvalonDockTheme.xaml"/>
            </
ResourceDictionary.MergedDictionaries>
        </
ResourceDictionary>
    </
Application.Resources>
</
Application>

 

So, I tried to put the ControlTemplate in one of the included files of the ResourceDictionary, more precisely into either Theme/Theme.xaml or Theme/Resources.xaml.  Neither one seemed to work.  The problem I get is a Null reference in the SliderUtilities.cs file in the slider_Loaded function:

 

1.static void slider_Loaded(object sender, RoutedEventArgs e)
2.{
3.    var slider = (RadSlider)sender;
4.    var button = slider.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name == "LargeDecreaseButton");
5.    button.Template = (ControlTemplate)Application.Current.Resources["largeDecreaseButtonTemplate"];
6.     
7.    slider.Tag = button;
8.}

 

When I step through this function in Martin's sample after line 4 is executed, button is instantiated to a good value.  In my main app, when I step through the same function, button is null...  Not Good!  Also the slider variable in Martin's sample has an instantiated decreaseButton and increaseButton of type System.Windows.Controls.Primitives.RepeatButton.  In my main app, they are both null....

Any ideas why the slider control/variable is NOT picking up the ControlTemplate for the repeatbuttons???

 

Thanks again in advance!,

 

Kevin Orcutt
Senior Software Engineer

Wurth Electronics ICS, Inc.
7496 Webster St., Dayton, OH 45414
Tel: 937.415.7700 
Toll Free: 877.690.2207
Fax: 937.415.7710
Email: kevin.orcutt@we-ics.com
http://www.we-ics.com

Kiril Vandov
Telerik team
 answered on 11 Mar 2016
1 answer
85 views

hai

 

I am creating a user control with datagrid and i created a property called DataGridNumeric column and I want to add this property for my control.

Please he me hos to do this.

 

I use this code for creating column collection

 public Collection<DataGridColumn> field = new Collection<DataGridColumn>();
        [Category("Data")]
        [Description("New Column Creation")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public Collection<DataGridColumn> Columns
        {
            get { return field; }
        }

 

Thanks.

Dilyan Traykov
Telerik team
 answered on 11 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?