Telerik Forums
UI for WPF Forum
7 answers
334 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
119 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
237 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
162 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
5 answers
264 views
Hi, I am trying to filter RadGridView in the background thread, to keep the UI active while user is typing his/her search string. All I am doing curretly is using custom predicate for all columns. With too many rows > 1K the UI get sluggish.


A
Nedyalko Nikolov
Telerik team
 answered on 20 Oct 2011
1 answer
137 views
Does the TileView support grouping with a CollectionViewSource like how a ListBox does?
If it does can i get a sample?

Thanks

Petar Mladenov
Telerik team
 answered on 20 Oct 2011
1 answer
124 views
Hi,

Is it possible to have the GridView set to isBusy while a pasting operation is underway?  Sometimes it takes a few seconds to complete a large paste and it'd be nice to be able to have it show the user it is busy.  Thanks
Maya
Telerik team
 answered on 20 Oct 2011
1 answer
108 views

Hi There,

we are planning to use "RADDataFilter" only as the UI to provide Search criteria and then use those criteria's as an input to sql procedure and search against the database. so to do this we need to get the criteria's entered by the user from DataFilter.
i checked properties of the DataFilter ,but could not get any which provides the information. 

Any help/comments would be appreciated.

Regards
Deepak
Dimitrina
Telerik team
 answered on 20 Oct 2011
2 answers
154 views
Hi! I am having a bit of a problem with a RadGridView. The F5-key, which I would like to use to refresh the entire view, is being consumed by the grid, How can I work around this problem?
Morten
Top achievements
Rank 1
 answered on 20 Oct 2011
1 answer
138 views
We are using the default theme.
How can we get rid of the yellow background of the ApplicationButtonContent.

If the solution is using Stretch=Fill what aspect ratio should the image have? 19:9?

I created a support ticket for this question.
Tina Stancheva
Telerik team
 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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?