Telerik Forums
UI for WPF Forum
6 answers
202 views
Hi,

When the QuickAccessToolbar of the RadRibbonView has many items added to it, not all items are visible or accessible.  Is there a way to cause the QuickAccessToolbar to grow in size (i.e. double in size)?  Or is there a way to automatically add items that are not visible to overflow?

Thanks,
Trang
Tina Stancheva
Telerik team
 answered on 18 Jul 2012
1 answer
272 views
Hi,  Is there a way to set the DataFormDataField so that the TextBox has a MaxWidth, and the Label width stretches to cover the rest of the width of the DataField?

I'm trying to create a form where the responses will all be numeric (so the TextBox doesn't need to stretch to Infinity), but the length of the label varies wildly (ergo, does need to stretch).  The labels on my DataFormDataFields are being cut off to allow the TextBox (plus spacing) to have more room.  If I increase the width of the DataField, this increases the amount of space between the TextBox and the Label. 

I've played with the Width of the DataField, the Min, Max & Width of the DataField.Label, the Width of TextBoxes, all to no joy.  Similar results messing with HorizontalAlignment, HorizontalContentAlignment, and even ZIndex (I thought I could bring the label above the text box).

Thanks for any ideas, I'm at the stage where I'm about to start coding a Label + TextBox in a Stackpanel solution for each of my datafields, and I'd _really_ prefer not to.  

Also (coz I think it's relevant but I'm not sure), I don't have Expression Blend.

cheers

Alex



Dimitrina
Telerik team
 answered on 18 Jul 2012
1 answer
100 views
How to get the main RadPaneGroup (host)?
The following example is not possible to obtain the public RadPaneGroup (host). 

RadPane rp = new RadPane();
//rp.content = ......;
//......;
RadSplitContainer splitContainer = radDocking.DocumentHost as RadSplitContainer;
RadPaneGroup paneGroup = (splitContainer.Items as IEnumerable<RadPaneGroup>).FirstOrDefault(s => s.IsInDocumentHost == true);//(get error)
paneGroup.Items.Add(rp);


Vladi
Telerik team
 answered on 18 Jul 2012
8 answers
228 views
Hi,

in my application I use a RadCarousel. When I click on my document RadButton, I open a PDF document with 2 pages, I extract each page as an image, after each image extraction, I the add the new created image into my RadCarousel and I call the following method:
 

pCarousel.BringDataItemIntoView(pCarousel.Items[0]);

to have the first page ont top. The 2nd page in my carousel sill white (empty) until I scroll the 2nd page ouside the carousel view and bring it back into th carousel view, at this time I can see the 2nd page content.

Thank's

 

Nick
Telerik team
 answered on 18 Jul 2012
7 answers
179 views
Hello,

First off all, I'd like to state the excellent work you guys did on the WPF controls. I'm using the ScheduleView quite heavily and the SP release fitted most of my needs. And I was able to add some features:

- resource availabilities (by the specialslots)
- alternative resource selection in the group headers (combobox style)
- fixed scroll when updating the resources/resourcetypecollection
- centered zooming (the zooming example zooms at the daystarttime, which is not really what it should be)
- current time - line on the dayview
- custom dragdop behavior for readonly appointments
- overriding the CalculatedScrollBarVisibilities

Currently I'm stuck on the following issue. I'd like to use the vertical dayview where I can drag existing appointments up down.
What I'm trying to achieve is that when the dragged appointment (visual cue) is near the top the calendar starts scrolling (until the start day time is met), of course I'd like to do the same thing when dragging and resizing down ! Any clue how to do this?

Thanks,
Nico


Vladi
Telerik team
 answered on 18 Jul 2012
5 answers
1.0K+ views
Hi,
q1 : I want to remove the grey background from the pdfviewer (for making a style)?

Is there a way to do this?

thanks
Kammen
Telerik team
 answered on 18 Jul 2012
1 answer
393 views
Hi,

I am looking for displaying 3D PDF in my  WPF application.  Does Telerik PDF Viewer support 3D PDF?


Thanks
Neeraj Dev 
Kammen
Telerik team
 answered on 18 Jul 2012
1 answer
158 views
Hello. I need change theme dynamic. So I  added in reference dll from Binaries.NoXaml, and added resource dictionary into app.Resources
 <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="themes\System.Windows.xaml"/>
                <ResourceDictionary Source="themes\Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="themes\Telerik.Windows.Controls.Navigation.xaml"/>
                <ResourceDictionary Source="themes\Telerik.Windows.Controls.RibbonView.xaml"/>
                <ResourceDictionary Source="themes\Telerik.Windows.Controls.RichTextBoxUI.xaml"/>
                <ResourceDictionary Source="themes\Telerik.Windows.Documents.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

reference dll 
Telerik.Windows.Controls.dll
Telerik.Windows.Controls.Input.dll
Telerik.Windows.Controls.Navigation.dll
Telerik.Windows.Controls.RibbonView.dll
Telerik.Windows.Controls.RichTextBoxUI.dll
Telerik.Windows.Data.dll
Telerik.Windows.Documents.dll

but   RadRichTextBoxRibbonUI dont show. if i add reference dll from Binary Folder then control display.


Andrew
Telerik team
 answered on 18 Jul 2012
1 answer
306 views
Hi

I am using a system in which I supply an object with a DataTepmlate.
The object has an interface which has a DataTemplate property (dynamic DataTemplate)

I apply an ItemTemplateSelector which returns the 'DataTemplate' Property

I also have a collection (Obserable) for these objects...

I Try to implement a SplitButton with a DropDownContent but I have 2 main problems.
1) The Menu appears but a MenuItem with childs only shows the Arrow but will not open not with click and with hover.
2) The MenuItems show`s an inner button, liks there the MenuItem and a RadButton inside....

This is my XAML:
SplitButton whereas local:SplitButtonVisualCommand is my business object.
<DataTemplate DataType="{x:Type local:SplitButtonVisualCommand}">
    <telerik:RadSplitButton Command="{Binding Command}" 
                            CommandParameter="{Binding GetParameters}"
                            Opacity="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={StaticResource DisabledWorkAround}}"
                            IsToggle="{Binding RelativeSource={RelativeSource Self}, Path = IsOpen}"
                            DropDownContent="{Binding Childs}"   
                            DropDownContentTemplateSelector="{StaticResource VisualTempSelector}">
        <telerik:RadSplitButton.Content>
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Image}" Margin="0 0 2 0"/> 
                <TextBlock Text="{Binding Caption}" />
            </StackPanel>                
        </telerik:RadSplitButton.Content>            
    </telerik:RadSplitButton>
</DataTemplate>
.
The 'Childs' DropDownContent is an Observable collection which returns the following DataTemplate:
(The Childs object also implement the 'DataTemplae' Property....)
<DataTemplate  DataType="{x:Type VisualCommands:VisualCommandCollection}">
    <telNav:RadContextMenu  ClickToOpen="False"
                            ItemsSource="{Binding}" 
                            ItemTemplateSelector="{StaticResource VisualTemplateSelector}"/>
</DataTemplate>

As you can see, it shows itself as a RadContextMenu (can be altered to RadMenu...) and sets itself as the ItemsSource as it holds the following Business Objects:

<DataTemplate DataType="{x:Type local:ContextMenuVisualCommand}">
    <telNav:RadMenuItem Header="{Binding Caption}"
                        Icon="{Binding Image}"
                        ItemsSource="{Binding Childs}"     
                        ItemTemplateSelector="{StaticResource VisualTemplateSelector}"
                        Command="{Binding Command}" 
                        CommandParameter="{Binding GetParameters}"
                        Opacity="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={StaticResource DisabledWorkAround}}">
    </telNav:RadMenuItem>
</DataTemplate>

local:ContextMenuVisualCommand are the same as local:SplitButtonVisualCommand , they just have a different DataTemplate.
The present as RadMenuItem....

I`v attached an Image to visualize it...

The 1st menu item knows it has childs, but wont show them.
Also, what is this strange box inside the MenuItem? does it inhrit from the SplitButton?

I also know that
ItemTemplateSelector.SelectTemplate 
gets called Twice for each sub item in the SplitButton DropDownContent, this might explain the extra box inside the MenuItem.
This is strange becuase 'SelectTemplate' is called once for all other Business objects.

Also, 'SelectTemplate' is not called for the MenuItem inside the 1st MenuItem, which has logic since it never 'Show' it...
Thanks!
Shlomi.


Shlomi
Top achievements
Rank 1
 answered on 18 Jul 2012
1 answer
179 views
Hi guys,

I'm having a very weird problem, my current telerik version is 2011.2.920.35.

I'm parsing an XML file creating a list of objects which I'm binding to the grid, the type that implements IDataErrorInfo and it's functioning well, getting a list of errors where data is erroneous. 

The problem is that the rows are not highlighted red unless the erroneous cells are visible, so if the grid does not fit in screen, the erroneous records are displayed as normal until the user scrolls right. Once these records are highlighted red they will remain so even if the user scrolls back to left - however if the user scrolls right and scrolls down and back up, these records will not be red any more. See screenshot for explanation.

Any help will be greatly appreciated.

Thanks,
Daryl
Markus
Top achievements
Rank 1
 answered on 17 Jul 2012
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?