Telerik Forums
UI for WPF Forum
1 answer
129 views

WPF v2011.2.712.40

We have a grid showing a list of contacts with email addresses.  If an email is not valid a UriFormatException is thrown when just hovering over the hyperlink or trying to click on the hyperlink.  How can we trap this and stop the exception from being thrown?  I looked for error events on the grid and could not find anything obvious.

<telerik:GridViewDynamicHyperlinkColumn Header="Email" NavigateUrlMemberPaths="EmailAddress" NavigateUrlFormatString="{} mailto:{0}"  DataMemberBinding="{Binding EmailAddress}" />
Vlad
Telerik team
 answered on 21 Oct 2011
1 answer
175 views
Hello,

We have a RadTreeView inside the selected contents of a RadOutlookbar.
 
There are
4 items for RadOutlookbar, and each click on each item loads the same TreeView.

However we have an unpleasant side effect, the control gives the impression of a collapse / expand every time.

1. Is it possible to avoid this behavior?
2. Is there a way to load a xaml part in a right side (imagine the details of the mails in Outlook after clicking folder). This means that the left side would never be reloaded. (FYI : We have implemented a MVC with Magellan)

thank you very much
Herve
Petar Mladenov
Telerik team
 answered on 21 Oct 2011
1 answer
142 views
Hello Telerik,
I've to develop a new project based on WPF (I've done SL for 3 years), one request is modularity so I've studied a bit and found my needs in prism 4.0 and in a MVVM pattern. Since prims utilize a shell, can I have it living with a Telerik Docking control? I've seen that there's a SL implementation of a template : http://www.telerik.com/community/code-library/silverlight/general/sl-mvvm-modular-prism-4-0-template.aspx

does it also work with WPF?

What's the approach of Telerik controls with MVVM?
Thanks
Paolo
George
Telerik team
 answered on 21 Oct 2011
5 answers
334 views
Hello

I add a ComboboxColumn to my grid
and I bind the data to the grid with a datatable
but no value is set to the combobox column
this is my code

<

 

telerik:GridViewComboBoxColumn

 

 

 

DataMemberBinding="{Binding Path=ActivityType}"

 

 

DisplayMemberPath="Name"

 

 

SelectedValueMemberPath="ID"

 

 

HeaderText="‘…‚&#13;”’‰Œ…š"

 

 

UniqueName="ActivityType" /> 

 

 

((

GridViewComboBoxColumn)this.RadGridView1.Columns[10]).ItemsSource = GetActivityTypes();

 

 

RadGridView1.ItemsSource = GetDataGrid();

 

 

 

 

 

 

 

 

 

 

 

christine
Top achievements
Rank 1
 answered on 21 Oct 2011
1 answer
106 views
I am attempting to use the ExpressionEditor to build an expression string for an object (building a custom template designer) pretty similar to the examples using it to filter data. The difference however is I'll have multiple tables/objects, and won't know which one I'll need till run time (I'll only build the string for one table/object like in the examples).

 I currently have the Item bound to an object, and that gets set after the user selected the object to build the string for. The object is getting set, but the Selected Category Items Pane is not getting refreshed after the object gets updated. I can set up to where the user selected the item on a previous screen, but would really like the list to be truly dynamic.

Item="{Binding BindingObject,NotifyOnSourceUpdated=True,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"

Basically, is there a way to refresh the Selected Category Items Pane, or a better way to bind the item dynamically?
Maya
Telerik team
 answered on 20 Oct 2011
3 answers
153 views
Does anyone have a behavior or attached property that would enabled me to create GridViewDataColumn "templates" for all of the possible columns that are autogenerated from DataTable?  The ItemsSource is a DataTable that could have various different columns from a finite list of all potential columns.  I'd like to template every potential column.
AdaDog
Top achievements
Rank 1
 answered on 20 Oct 2011
7 answers
346 views
Hi,
  I am working on dynamic loading of RadPanelBar Control. I am having a collections where 2 levels of topics would be there
The data would be in the below format
Id             Name             ParentCategoryID     LEVEL
19741         A                         19737                         1
19749         B                         19737                         1
19750         C                         19749                         2
19772         D                         19749                         2
19742         E                         19741                         2
19743         F                         19741                         2
19744         G                        19741                         2
I want to bind the Level 1 data in the parent level and Level 2 data with whose parentid matches with the id will be displayed as the child level
Eg) A and B are at the parent levels.
C,D will be displayed under B and E,F,G will be displayed under A
I created the following template to display this

<telerik:RadPanelBar x:Name="pnlTopic" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" ExpandMode="Single" telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" ItemsSource="{Binding Topics}" SelectedItem="{Binding SelectedTopic}">
                                          <telerik:RadPanelBar.ItemTemplate>
                                              <DataTemplate>
                                                  <telerik:RadPanelBarItem Header="{Binding Name}" IsSelected="True" IsExpanded="{Binding DataContext.IsExpanded,ElementName=pnlTopic}" x:Name="pnliTopic" >
                                                      <ListBox x:Name="lstSubTopics" ItemsSource="{Binding DataContext.SubTopics,ElementName=pnlTopic}">
                                                          <ListBox.ItemTemplate>
                                                              <DataTemplate>
                                                                  <TextBlock Text="{Binding Name}" Margin="2" FontWeight="SemiBold" />
                                                              </DataTemplate>
                                                          </ListBox.ItemTemplate>
                                                      </ListBox>
                                                  </telerik:RadPanelBarItem>
                                              </DataTemplate>
                                          </telerik:RadPanelBar.ItemTemplate>
                                          <i:Interaction.Triggers>
                                              <i:EventTrigger EventName="SelectionChanged">
                                                  <i:InvokeCommandAction Command="{Binding AccordionSelectionChange}" CommandParameter="{Binding Item}"/>
                                              </i:EventTrigger>
                                          </i:Interaction.Triggers>
                                      </telerik:RadPanelBar>

I am getting the topics correctly and I was not able to filter the second level elements since the selecteditem for RadPanelBar always return null values(I'm using MVVM model). Also I was not able to expand the radpanelbar items in design. Should i need to add code for that? i want to expand the selected element. please respond me asap.

Regards,
R.Saranya.
 
Petar Mladenov
Telerik team
 answered on 20 Oct 2011
1 answer
136 views
Is there a way to extend the DataFilter so that you can select how the Filtered Results get sorted from within the editor? Something like, Sort Ascending or Descending that shows up in the drop-down list.

Thanks,
Shawn
Nedyalko Nikolov
Telerik team
 answered on 20 Oct 2011
1 answer
247 views
Hello.

I have a simple wpf application based on the RadWindow which contains an UserControl. In the UserControl i have two controls: ListBox and RadScheduleView.  i used very good example from Telerik WPF Demos "RadScheduleView Drag And Drop" section. It works good when everything placed into a Window (or RadWindow). But when i am using UserControl instead of window and i am trying to drag some item from the ListBox i get exception: "Value cannot be null. Parameter name: second"

Stack Trace:

   at System.Linq.Enumerable.Union[TSource](IEnumerable`1 first, IEnumerable`1 second)
   at Telerik.Windows.DragDrop.Behaviors.DragPayload.PartialTrustPayload.GetFormats(Boolean autoConvert) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\DragDropManager\Behaviors\Common\DragPayload.cs:line 107
   at System.Windows.DataObject.FormatEnumerator..ctor(DataObject dataObject)
   at System.Windows.DataObject.System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc(DATADIR dwDirection)

Call Stack:

         [External Code]    
     Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.Behaviors.DragPayload.PartialTrustPayload.GetFormats(bool autoConvert) Line 107 + 0x30 bytes    C#
     [External Code]    
     Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragDropManager.DoDragDrop(System.Windows.DependencyObject dragSource, object data, System.Windows.DragDropEffects allowedEffects, System.Windows.DragDropKeyStates initialKeyState, object dragVisual, System.Windows.Point relativeStartPoint, System.Windows.Point dragVisualOffset) Line 1012 + 0xe bytes    C#
     Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragInitializer.StartDrag() Line 181    C#
     Telerik.Windows.Controls.dll!Telerik.Windows.DragDrop.DragInitializer.DragSourcePreviewMouseMove(object sender, System.Windows.Input.MouseEventArgs e) Line 157    C#
     [External Code]    
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.Open(bool isModal) Line 35 + 0x19 bytes    C#
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.WindowBase.ShowWindow(bool isModal) Line 716    C#
     Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadWindow.ShowDialog() Line 420    C#
>    RadDragDrop.exe!RadDragDrop.MainWindow.MainWindow_Activated(object sender, System.EventArgs e) Line 35 + 0x1e bytes    C#
     [External Code]    

Best Regards,
Stas.
stas
Top achievements
Rank 1
 answered on 20 Oct 2011
2 answers
181 views
Hi,

How to hide week numbers in RADDateTimePicker control in 2011 Q2 Release ? I could not find AreWeekNumbersVisible property in this version. Any help?

With Thanks and Regards
Jeyakumar
jeya
Top achievements
Rank 1
 answered on 20 Oct 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?