Telerik Forums
UI for WPF Forum
5 answers
314 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
88 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
132 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
329 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
117 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
231 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
161 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
259 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
133 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
119 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
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?