Telerik Forums
UI for WPF Forum
7 answers
350 views
If you specify a normal tab control as a region and activate one of the views (already added) then the corresponding tab gets selected.
However if the RadTabControl is used as a region then nothing happens when the view is activated (tab doesn't get selected).
Also all tabs remain active views at all times and IsActive property for ViewModel (that implements IActiveAware) doesn't ever change i.e. on switching tabs.

I could have very well used a normal tab control but I want the expression dark theme which is only available for the RadTabControl.
Tina Stancheva
Telerik team
 answered on 28 Jan 2013
2 answers
142 views
Hi,

I need help in loading and controlling RadPanelBar programatically in MVVM pattern start from loading the panelBarItems.
I want to create a RadPanelBar which will have set of items and each item will have the ContentControl (loads an UserControl). I want to control the expand and selection of each item by set of buttons. Let me explain this briefly,

my RadPanelBar has 3 items, each PanelBarItem loads an usercontrol. I should be able to control expand of these panelbar items by a listbox having 3 buttons i.e. 1st RadPanelBar item expands on 1st button click, 2nd item expands on 2nd button click etc.
I should be able to do everything progrmatically i.e. even loading the panelbar items and List box items.

I am attaching the XAML code i have used to achieve this, 
<telerik:RadPanelBar x:Name="mybar" Width="830" Height="430" HorizontalAlignment="Left" Grid.Row="0" Focusable="False"
                                        VerticalAlignment="Stretch" BorderBrush="#FFCBD8E8" BorderThickness="1 1 0 1"                                       ExpandMode="Multiple" Margin="10,10,10,10" Background="Transparent"
                                        ItemsSource="{Binding PanelBarItemsList}"
                                        SelectedItem="{Binding PanelBarSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                         
                        <telerik:RadPanelBar.ItemTemplate>
                            <DataTemplate>
                                <telerik:RadPanelBarItem x:Name="pnliTopic" IsSelected="{Binding IsSelectedValue, Mode=TwoWay}" IsExpanded="{Binding IsExpandedValue, Mode=TwoWay}" >
                                    <telerik:RadPanelBarItem.Header>
                                        <TextBlock Text="{Binding Name}"  />
                                    </telerik:RadPanelBarItem.Header>
                                    <ContentControl x:Name="View" Margin="10,10,10,10" Visibility="Visible"  HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Height="Auto"
                                             Content="{Binding UserControlView}" />
                                </telerik:RadPanelBarItem>
                                </DataTemplate>
                        </telerik:RadPanelBar.ItemTemplate>
</telerik:RadPanelBar>

Here is the view model code,

private ObservableCollection<ToolOption> m_PanelBarItems;
public ObservableCollection<ToolOption> SettingsList
        {
            get { return m_PanelBarItems; }
            set
            {
                m_PanelBarItems = value;
            }
        }
Contructor()
{
 m_PanelBarItems = new ObservableCollection<PanelBarItem>();
 foreach (string strTool in m_LocalCollection)
 {
   PanelBarItem  item= new ToolOption(strTool );
   m_PanelBarItems.Add(item);
 }
 m_PanelBarItems[0].IsExpandedvalue = true;
 m_PanelBarItems[0].IsSelectedValue = true;
 m_PanelBarItems[0].UserControlView = new UserControlView1();
 PanelBarSelected = m_PanelBarItems[0];
 m_PanelBarItems[0].UserControlView.Visibility = Visibility.Visible;
 this.OnPropertyChanged("PanelBarSelectTool");
}
 public object PanelBarSelectTool { get; set; }
 
//PanelBarItem Class definition
 
public class PanelBarItem: INotifyPropertyChanged
    {
        public string Name { get; set; }
        private bool selected;
        private bool expanded;
        public System.Windows.Controls.ContentControl m_View = null;
        //private object m_View = null;
 
        public bool IsSelectedValue
        {
            get
            {
                return selected;
            }
            set
            {
                selected = value;
                this.OnPropertyChanged("IsSelectedValue");
            }
        }
 
        public bool IsExpandedvalue
        {
            get
            {
                return expanded;
            }
            set
            {
                expanded = value;
                this.OnPropertyChanged("IsExpandedvalue");
            }
        }
 
        public System.Windows.Controls.ContentControl UserControlView
        {
            get
            {
                return m_View;
            }
            set
            {
                if (m_View != value)
                {
                    m_View = value;
                }
            }
        }
 
        public PanelBarItem(string name)
        {
            this.Name = name;
            this.IsSelectedValue = false;
            this.IsExpandedvalue = false;
        }
 
        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }

I hope you understand what i want to achieve.
Let me know if you need more information.
Tina Stancheva
Telerik team
 answered on 28 Jan 2013
1 answer
184 views
Hi,
Use ZIndex property doesn't work when i use it like that :

<telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=verticalAxis}"
                                                         Value="0"
                                                         Stroke="White"                                                 
                                                         ZIndex="0"/>

The series are under the annotation.

So, when putting Panel.ZIndex = 0  CartesianGridLineAnnotation  with snoop, shows the annotation under the series like i expect.
Petar Marchev
Telerik team
 answered on 28 Jan 2013
5 answers
317 views
I am encountering a problem when applying implicit themes to a vb.net WPF project. The problem appears to be with the
RibbonView implicit theme: Themes/OfficeBlack/Telerik.Windows.Controls.RibbonView.xaml

I followed the instructions from the help system for implicit themes and created a resource dictionary in the application.xaml file as follows:

<ResourceDictionary.MergedDictionaries>

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.xaml" />

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.Input.xaml" />

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.Navigation.xaml" />

  <ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.RibbonView.xaml" />

</ResourceDictionary.MergedDictionaries>

 

 

 

 

 

I also referenced the corresponding dlls from the installation directory:
C:\Program Files (x86)\Telerik\RadControls for WPF Q3 2012\Themes.Implicit\WPF40\Metro\Themes

The program compiles and runs OK.
The problem is that the xaml designer has the following error

 

System.ArgumentException

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonGallery.Icon' property on a Setter.

The stack Trace indicates that the error takes place in the expression designer. This error is listed 3 times.
There are no errors in the xaml code or in the vb.net code
That same error occurs for several of the themes that I have tried (Windows8, windows7, OfficeBlue, OfficeBlack)

The markup for window that I am designing does not use the radRibbonView, nor does it use the RadRibbonGallery.

When I remove the following line from the application Xaml ResourceDictionary merge:
<ResourceDictionary Source="Themes/OfficeBlack/Telerik.Windows.Controls.RibbonView.xaml">

the errors disappear.

Do you have a bug in the RibbonView.xaml?

Thanks for your help in solving this

Thanks

Philippe



 

 

 

Mark
Top achievements
Rank 1
 answered on 28 Jan 2013
3 answers
359 views
i need to Trigger my methord when Change Value of RadNumericUpDown  Where is My Code :

<telerik:RadNumericUpDown x:Name="tv" HorizontalAlignment="Left" Margin="80,26,0,0" VerticalAlignment="Top" Width="183" IsInteger="True" Value="{Binding MethodParameters[0], BindsDirectlyToSource=True, Mode=OneWayToSource,  Source={StaticResource totalAmountIs},Converter ={StaticResource doubleToString}, UpdateSourceTrigger=PropertyChanged}" UpdateValueEvent="PropertyChanged"/>

But it Doesn`t work. if Bind a textbox with this same code it work fine. here were i am wrong ?? it well be best if give a example

Thank`s for lelp.
Yana
Telerik team
 answered on 28 Jan 2013
4 answers
324 views
Hello, I'm struggling to find guidance in your documentation on how to implement a print preview for your radgridview.  Can you point me to a clear example on how to accomplish this?

Thanks
Dimitrina
Telerik team
 answered on 28 Jan 2013
12 answers
129 views
We have one computer out of many that is having issues with grouping in the gridview. It happens to be the only hp touchsmart in the whole company.

Here is some detail:
WPF 2012.3.1224.40
.NET 4 C#
HP Touchsmart 310-1126
Gridview is inside docking.
Gridview itemsource bound to filteredsource of datafilter.
datafilter itemsource bound to datatable.

When user adds group in group header or program programatically adds grouping we get the followin error from 3-10 times immeditally (same exception over and over at once). We follow the same steps on a bunch of other computers and no issues...

Message: Object reference not set to an instance of an object.

 

Source: Telerik.Windows.Controls.GridView

 

Trace:    at Telerik.Windows.Automation.Peers.GridViewGroupRowAutomationPeer.GetNameCore()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()

   at System.Windows.ContextLayoutManager.fireAutomationEvents()

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

 

Yordanka
Telerik team
 answered on 28 Jan 2013
1 answer
427 views
Hi

I'm looking for a sample for using encryption when exporting pdf files. It should be available now: http://www.telerik.com/support/pits.aspx#/details/Issue=10766

Thanks

Mike
Iva Toteva
Telerik team
 answered on 28 Jan 2013
1 answer
200 views
Whenever I get into VS 2010 I'll get a message that there's an update to the Telerik WPF VSExtensions (my current version is 2011.3.1305.0, and it says the new version is 2012.3.1212.0.) When I tried to update it I get the following error:

"The extension could not be installed because the following error occurred: Telerik WPF VSExtensions is already installed."
Biliana Ficheva
Telerik team
 answered on 28 Jan 2013
2 answers
162 views
I'm trying to figure out a way to have a RadGridView with paging, but NOT have the RadGridView filter based on the page: but simply jump to the page. And the page count be based on the total number of displayed items (based of course on the size of the window).

There's no happy number for 'items on a page' that I can choose that actually work for everybody, with their different resolutions and such. And letting them set it just makes it more complicated. I'm really just looking for a control that's a lot like the RadDataPager, but just tracks and controls the RadGridView's current top-shown record.

Or, alternatively, the "Pager" control could just let you jump to sections based on the first letter of the items. Like, A, B, C D, etc.
Jerome
Top achievements
Rank 1
 answered on 25 Jan 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?