Telerik Forums
UI for WPF Forum
1 answer
147 views
Hello Telerik Team,

I am using the DraggableListBox from the RAD WPF controls set. Now i have requirement of dragging multiple files from the source listbox and drop into destination list box.

How to achive this requirement?

Thanks,
Kranthi


Tihomir Petkov
Telerik team
 answered on 20 Aug 2009
1 answer
176 views
I was looking at the RadProgressBar for WPF demo via FireFox 3.5.2. When you go to the "View Code" and select the code behind file the contents does not change. Works fine from the downloaded copy.
Tihomir Petkov
Telerik team
 answered on 20 Aug 2009
3 answers
167 views
Is possible to bind IQueryable data source to your grid in such way that it loads record from data source in fragment? Now when i bind collection, that implements IQueryable, grid retrievies all record (in my case it takes up to 2 minutes ).
Vlad
Telerik team
 answered on 20 Aug 2009
7 answers
392 views
Hi

I would like to change the WPF Treeview scrollbar colours, editing the template has yielded some minor results, I managed to change the color of the bottom right area to green (where the horizontal and vertical scrollbars would interleave if extended) but I cannot change the main scrollbar colors, I think this would be the Thumb and RepeatButtons and other such scrollbar elements. It is as if values are coerced from some higher priority property, as I can find the elements, but changes are not reflected at design or runtime. Screenshot: http://i30.tinypic.com/x21gld.png


My second request is how to make the drag and drop tooltip appear adjacent (to the right) of the mouse pointer when the operation starts. This was the behaviour I had with an earlier version of Telerik WPF but upgrading to version 2009.2.701.35 seems to have broken this. The issue is that the drag/drop tooltip is appearing about 100 pixels to the right of the mouse pointer, which looks weird.
Any ideas would be helpful. Screenshot: http://i29.tinypic.com/6t3cqt.png

Regards
Miroslav
Telerik team
 answered on 20 Aug 2009
1 answer
270 views
Is there an event that indicates when the value has changed via the spinner not just that the value has changed? I have a situation where a change in the value from the spinner results in rebinding the value which triggers the ValueChanged event which rebinds... A spinner click or something equilivent would solve the issue or even better would be the ability to suppress the value change event when the cause of the change is data binding vs. the UI.
Hristo Borisov
Telerik team
 answered on 20 Aug 2009
5 answers
510 views

I am trying to use the RadCalendar (for WPF) to display multiple months and shade (color background) school and public holidays. Some questions:

1. Using custom IValueConverters or creating a StyleSelector seems to let me affect the CalendarButtonContent Properties or Style (respectively), but only Font Size/Weight and not Background/Border. Is this because these are CalendarButton properties? What is the simplest way to set the background of all the holiday dates?

2. In the IValueConverter or StyleSelector I have to manually 'range check' each Date. Is there a way to DataBind to this control (a collection of DateTime)? When people use the 'selection' ability to add a new holiday date/range, I want to just update the underlying collection and have that selection now 'background colored'.

3. I have set the following properties (expecting the calendar to show the entire "year" of 2008 from January to December)... but it always starts with August (the current month) in the top-left rather than January.

SelectableDateStart="2008-01-01"
SelectableDateEnd="2008-12-31"
DisplayDateStart="2008-01-01"
DisplayDateEnd="2008-12-31"
SelectedDate="2008-01-01"
Rows="4"
Columns="3"
Tia...

Kaloyan
Telerik team
 answered on 20 Aug 2009
3 answers
117 views
Hi,

how can I hide the GroupPanel in the nested grid of a Table Hierachy?
Further there seem to be a problem with the vertical grid lines in the
nested grid - they do not match the cell width.

Thanks a lot

              Mischa
Vlad
Telerik team
 answered on 20 Aug 2009
3 answers
171 views
Hi... I have a basic question. Sorry, I have little experience with these Telerik Controls and overall with WPF. Basically, I have code like this:

public

 

Window1()

 

{

myAccess =

new DOAccess();

 

mySet =

new DataSet();

 

InitializeComponent();

mySet = myAccess.GetForecastData(mySet, 200802, 0, 0, 0);

mySet.Relations.Add(

"Item", mySet.Tables[0].Columns["forecast_rollup_id"],

 

mySet.Tables[1].Columns[

"forecast_rollup_id"]);

 

mySet.Relations.Add(

"Detail", mySet.Tables[1].Columns["forecast_item_id"],

 

mySet.Tables[2].Columns[

"forecast_item_id"]);

 

 

 

 

this

 

.radGridViewCustomHierarchy.DataMember = mySet.Tables[0].TableName;

 

 

this.radGridViewCustomHierarchy.ItemsSource = mySet;

 

 

}

The thing is that some columns coming from the DataSet were labeled such as "forecast_rollup_id" and I want to change the name of the actual column in the actual grid to something like "Main Item Number" (something more user-friendly). Since I am using a DataSet and I am loading information to the RadDataGrid dynamically, I am not sure how I can change the column name because when I try to get access to the columns property, I get a count value = 0 (So int columns = this.radGridViewCustomHierarchy.Columns.Count; returns zero) therefore I cannot simply do something like this: this.radGridViewCustomHierarchy.Columns["forecast_rollup_id"].HeaderText = "Main Item #"; because I get a xaml error. Furthermore, I may need to rename some columns that contain dynamic values (Thus, I cannot use alies for columns in SQL). A column may be called 200801 which needs to be renamed "Q1 2008" (Quarter One of 2008) in the grid itself. Could you please let me know how I can accomplish this change in naming to columns that were originally populated from a DataSet?

 

 

 

 

Vlad
Telerik team
 answered on 20 Aug 2009
4 answers
126 views
Hi I have just upgraded to SP1, removed the old references from my project and added the new ones but I now get the following unhandled exception when I open my main.xaml in VS2008

'-17' is not a valid value for property 'ViewportSize'.  
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)  
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)  
   at System.Windows.Controls.Primitives.ScrollBar.set_ViewportSize(Double value)  
   at Telerik.Windows.Controls.GridView.ScrollBarStateController.UpdateScrollBar(ScrollBar scrollBar, ScrollBarProperties properties) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\ScrollBarStateController.cs:line 60  
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars() in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 503  
   at Telerik.Windows.Controls.GridView.GridViewScrollViewer.GridViewScrollViewer_LayoutUpdated(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\GridView_WPF_2009_Q2_SP1\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewScrollViewer.cs:line 534  
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()  
   at System.Windows.ContextLayoutManager.UpdateLayout()  
   at System.Windows.UIElement.UpdateLayout()  
   at System.Windows.Interop.HwndSource.SetLayoutSize()  
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)  
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)  
   at MS.Internal.Designer.DocumentOutline.ContentHolder.Initialize()  
   at MS.Internal.Designer.DocumentOutline.Intitalize()  
   at MS.Internal.Designer.DocumentOutline.get_ContentHolderControl()  
   at MS.Internal.Designer.DocumentOutline.get_Handle()  
   at MS.Internal.Designer.VSIsolatedViewFactory.VSIsolatedView.get_ViewHandle()  
   at MS.Internal.Host.Isolation.IsolatedView.get_ViewHandle()  
   at MS.Internal.Host.Isolation.IsolatedViewHolder.SetContent(IsolatedView view)  
   at MS.Internal.Designer.DesignerPane.AttachDocumentOutline()  
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()  
 
 

Any advice?

Thanks in advance,
Kevin Preston.
Vlad
Telerik team
 answered on 20 Aug 2009
4 answers
178 views
Is there a way to use a Delegate on the TabControl?

Currently, I have (in XAML):
  SelectionChanged="radTabControl1_SelectionChanged"

in the ViewModel:
        public ICommand TabSelectionChangedCommand { get; private set; } 
 
            TabSelectionChangedCommand = new DelegateCommand<object>(param => 
            { 
                SelectionChanged(param); 
            }); 
 
        private void SelectionChanged(object obj) 
        { stuff } 

     And my otherwise empty .xaml.cs file:

        private void radTabControl1_SelectionChanged(object sender, System.Windows.RoutedEventArgs e) 
        { 
            FrameworkElement fe = (FrameworkElement)sender; 
            MyViewModel mvm = (MyViewModel) ((ObjectDataProvider)fe.DataContext).ObjectInstance; 
            if (mvm != null) 
            { 
                mvm.TabSelectionChangedCommand.Execute(sender); 
            } 
        } 
    
 
 
It works, but aren't we supposed to be able to do things without the code-behind?

Or, is there a better way to bind to the SelectedIndex ?

Adam
Top achievements
Rank 1
 answered on 19 Aug 2009
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?