Telerik Forums
UI for WPF Forum
1 answer
106 views
I've noticed that when I add drag and drop to a grid the column sizing no loger works.

I have implemented the drag/drop events..

        private void OnDropQuery(object sender, DragDropQueryEventArgs e)
        {

            Type sourceType = e.Options.Source.GetType();
            if (sourceType == typeof(GridViewHeaderCell))
            {
                return;
            }
        .
        .
        .

and
        #region dragQuery
        protected virtual void OnDragQuery(object sender, DragDropQueryEventArgs e)
        {
            if (sourceType == typeof(GridViewHeaderCell))
            {
                e.QueryResult = true;
            }
        .
        .
        .

How should the drag and drop respond to the GridViewHeader?

Tsvyatko
Telerik team
 answered on 11 May 2010
4 answers
182 views
Hi,
I have typed the following text in Google-translator, so it goes faster, so please excuse any errors.
I have the following problem with the WPF RadWindows:
Whenever it opens, is thrown a System.ArgumentException. Whether it's own window, or create the controls of their choice.
The windows are always at the upper corner of the screen. If I want to move the window, thrown the exception.
Here is a screenshot of a window of RadShedule: http://img1.bildupload.com/4ed9dbb35ad45e65eb4bc6814fa455cf.jpg and as attachment.

I searched for this error (google and Telerik) and have found several entries. Unfortunately, none has been solved so far.
I've tried the following workarounds:
1. Catch the ecxeption in app_DispatcherUnhandledException does work, but the application also crashes after short time (when moving), so no solution
2. refer to this thread: http://www.telerik.com/community/forums/silverlight/gridview/radgridview-exception-onclose-of-radwindow.aspx: still no solution
3. i found this: http://www.telerik.com/community/forums/silverlight/window/exception-value-does-not-fall-within-the-expected-range-when-displaying-nested-rad-windows.aspx, but there is also no solution, only a reference at the HACKS class (but this is still private, perhaps in the internal user) you.

I'm desperate, I can indeed use for my own window, the standard Window class, but all of the windows, for example RadShedule are RadWindows.
The error also appears in your wpf example application. (detailed see screenshots):

http://img1.bildupload.com/1c6f66118fa997a217583dbfeb422b91.jpg
http://img1.bildupload.com/b5d4ab2f5cdc6b38f735a9cc0f21c441.jpg

But...,
in Silverlight the moving, resizing and closing and reopening of the window works with no problems: http://img1.bildupload.com/60332521dc5deec8783c99ae08dc5f84.jpg


I would like to thank you very much if you could deal with the problem, since all other contributions were offered no further assistance or solutions. I can send you all important project data, unless you can reproduce the problem.
Can it possibly be constellation problem with my system. If you suspect this, I send you also necessary system parameters (os: Vista Ultimate 64-bit video card: NVIDIA 9800 SLI (2 units) and so on)

Many many thanks in advance.
Gregor Daskaloff

Miroslav Nedyalkov
Telerik team
 answered on 11 May 2010
1 answer
142 views
Hi, I've been reading the demo for few hours and could'nt get how it works.

I want to do a simple thing. I Have a StackPanel with few buttons, and want to make the transition to another Panel, with a text block.

Could you help me? Posting code would be very helpful

Thanks!
Kaloyan
Telerik team
 answered on 11 May 2010
3 answers
173 views
I have chart as below :

<telerik:RadChart x:Name="radChart" ItemsSource="{Binding ChartData}" telerik:StyleManager.Theme="Office_Blue">
                            
                            <telerik:RadChart.SeriesMappings>
                                <telerik:SeriesMapping ChartAreaName="chartArea">
                                    <telerik:SeriesMapping.SeriesDefinition>
                                        <telerik:Bar3DSeriesDefinition/>
                                    </telerik:SeriesMapping.SeriesDefinition>

                                    <telerik:SeriesMapping.GroupingSettings>
                                        <telerik:GroupingSettings>
                                            <telerik:GroupingSettings.GroupDescriptors>
                                                <telerik:ChartGroupDescriptor Member="Server"/>
                                            </telerik:GroupingSettings.GroupDescriptors>
                                        </telerik:GroupingSettings>
                                    </telerik:SeriesMapping.GroupingSettings>
                                                                        
                                    <telerik:SeriesMapping.ItemMappings>
                                        <telerik:ItemMapping FieldName="Quantity" DataPointMember="YValue"/>
                                        <telerik:ItemMapping FieldName="OSName" DataPointMember="XCategory"/>
                                    </telerik:SeriesMapping.ItemMappings>
                                </telerik:SeriesMapping>
                            </telerik:RadChart.SeriesMappings>
                            
                            <telerik:RadChart.DefaultView>
                                <telerik:ChartDefaultView>
                                                                        
                                    <telerik:ChartDefaultView.ChartArea>
                                        
                                        <telerik:ChartArea Name="chartArea" LegendName="chartLegend" SmartLabelsEnabled="True">
                                        </telerik:ChartArea>
                                        
                                    </telerik:ChartDefaultView.ChartArea>
                                    
                                    <telerik:ChartDefaultView.ChartTitle>
                                        <telerik:ChartTitle Content="OSの分布" HorizontalAlignment="Center"/>
                                    </telerik:ChartDefaultView.ChartTitle>

                                    <telerik:ChartDefaultView.ChartLegend>
                                        <telerik:ChartLegend x:Name="chartLegend" Header="サーバ" UseAutoGeneratedItems="True" />
                                    </telerik:ChartDefaultView.ChartLegend>

                                </telerik:ChartDefaultView>
                            </telerik:RadChart.DefaultView>
                            
                        </telerik:RadChart>

And ChartData as structure below :
OSName                     Server              Quantity
Windows XP                Server 01            10
Windows XP                Server 02            15
Windows XP                Server 03            20
Windows Vista            Server 01            10
Windows Vista            Server 02            10
Windows Vista            Server 03            10
Windows 2000            Server 01            5
Windows 2000            Server 02            5
Windows 2000            Server 03            5
Windows 7                  Server 01            20
Windows 7                  Server 02            15
Windows 7                  Server 03            10

My Problem : 2D chart show category label on x-axis, but 3D chart not show
Pls refer attached image for more details

Pls help me.....
Dwight
Telerik team
 answered on 11 May 2010
1 answer
101 views
Hi

Just thought I'd make a suggestion for a new WPF control.

I not sure if there's a name for it already but basically its kind of a spinning progress indicator, to show the user that something is happening but it doesn't actually show progress. Like if you were loading data to the UI.

The best example I can think of is in Firefox when its loading a website. In the tab, there's a small circle of circles and each circle flashes around the main circle, whilst the page is being loaded.

I've already created something similar but it took me ages to get the animation (see attached).

Just being able to drop the control and set a few animation properties would have saved me several days work.

I think it would be popular.




Hristo
Telerik team
 answered on 10 May 2010
2 answers
147 views
Hi,

I have a carousel on a WPF page and it seems the Height of the CarouselItem does not allow me to set it above about 300 pixels.  See my attached screen shot A and B. 

I am setting the CarouselItem template using the following XAML:
       <Style TargetType="{x:Type telerik:CarouselItem}">  
            <Style.Resources> 
                <loc:StaleTagValueConverter x:Key="TagStateConverter" /> 
            </Style.Resources> 
            <Setter Property="Width" Value="400" /> 
 
            <Setter Property="Template" > 
                <Setter.Value> 
                    <ControlTemplate TargetType="{x:Type telerik:CarouselItem}" > 
 
                        <Border BorderBrush="Black" BorderThickness="1"  VerticalAlignment="Stretch"  CornerRadius="8" d:IsHidden="False">  
                            <Border.Background> 
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                    <GradientStop Color="#FF38A4DE" Offset="1"/>  
                                    <GradientStop Color="#FFC4E9F8"/>  
                                </LinearGradientBrush> 
                            </Border.Background> 
                            <Grid Margin="7" d:IsHidden="False">  
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="0.415*"/>  
                                    <ColumnDefinition Width="0.585*"/>  
                                </Grid.ColumnDefinitions> 
                                <Grid.RowDefinitions> 
                                    <RowDefinition Height="0.768*"/>  
                                    <RowDefinition Height="0.232*"/>  
                                </Grid.RowDefinitions> 
                                <Border BorderThickness="1" Margin="0,0,0,8" Background="White" CornerRadius="0,0,3,3" Grid.ColumnSpan="2" d:IsHidden="False">  
                                    <Grid Margin="7" d:IsHidden="False">  
                                        <Grid.ColumnDefinitions> 
                                            <ColumnDefinition Width="0.542*"/>  
                                            <ColumnDefinition Width="0.458*"/>  
                                        </Grid.ColumnDefinitions> 
                                        <Image Margin="8,7,4,8" Source="/Styles/Resources/circuit.jpg" Stretch="Fill" d:IsHidden="False"/>  
                                        <StackPanel Grid.Column="1" Margin="8,4,0,4" d:IsHidden="False">  
                                            <TextBlock Height="45" Margin="0" Style="{DynamicResource BasicTextBlock-Normal}" Foreground="Black" d:IsHidden="False"><Run Foreground="Gray" Text="Bin Location"/><LineBreak/><Run Text="Warehouse 1"/></TextBlock> 
                                            <TextBlock Height="45" Margin="0,2,0,0" Style="{DynamicResource BasicTextBlock-Normal}" Foreground="Black" d:IsHidden="False"><Run Foreground="Gray" Text="Item"/><LineBreak/><Run Text="0101-0028"/></TextBlock> 
                                            <TextBlock Height="45" Margin="0,2,0,0" Style="{DynamicResource BasicTextBlock-Normal}" Foreground="Black" d:IsHidden="False"><Run Foreground="Gray" Text="Serial"/><LineBreak/><Run Text="BABEFF01"/></TextBlock> 
                                        </StackPanel> 
                                    </Grid> 
                                </Border> 
                                <Image Margin="4" Grid.Row="1" Source="/Styles/Resources/barcode_black.png" Stretch="Fill" Height="20" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="170" d:IsHidden="False"/>  
                                <TextBlock Margin="8,32,8,8" Grid.Row="1" Style="{DynamicResource BasicTextBlock-Normal}" Text="E2000900002005011523602991" Foreground="Black" Grid.ColumnSpan="2" d:LayoutOverrides="HorizontalAlignment" TextAlignment="Center" d:IsHidden="False"/>  
                            </Grid> 
                        </Border> 
 
                    </ControlTemplate> 
                </Setter.Value> 
            </Setter> 
 
 
        </Style> 

Even if I set the Height property with this:

       <Style TargetType="{x:Type telerik:CarouselItem}">  
            <Style.Resources> 
                <loc:StaleTagValueConverter x:Key="TagStateConverter" /> 
            </Style.Resources> 
            <Setter Property="Width" Value="400" /> 
            <Setter Property="Height" Value="450" /> 
            <Setter Property="Template" > 
And set the main border inside the control template to this:
<Setter Property="Template" > 
                <Setter.Value> 
                    <ControlTemplate TargetType="{x:Type telerik:CarouselItem}" > 
 
                        <Border BorderBrush="Black" BorderThickness="1"  VerticalAlignment="Stretch"  CornerRadius="8" d:IsHidden="False" Height="400">  
                            <Border.Background> 
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                    <GradientStop Color="#FF38A4DE" Offset="1"/> 

It still clips the content to what appears to be somewhere between 250 and 300 pixels. 

How can I make the content template height larger to fit my content?

Thanks,
David Sandor

David Sandor
Top achievements
Rank 1
 answered on 10 May 2010
2 answers
184 views
Hello!

I'm not sure what I'm missing here.
I have a RadGridView with the following structure:

            <Controls:RadGridView x:Name="radGridView" 
                                  ScrollMode="RealTime" 
                                  ShowGroupPanel="False" 
                                  CanUserReorderColumns="False" 
                                  CanUserDeleteRows="False" 
                                  CanUserInsertRows="False" 
                                  Grid.Row="1" 
                                  ItemsSource="{Binding Metadata}" 
                                  AutoGenerateColumns="False" 
                                  ShipMonitoring:DataInfoHeaderMenu.IsEnabled="True"
                <Controls:RadGridView.Columns> 
                    <Controls:GridViewDataColumn DataMemberBinding="{Binding Name}" 
                                                 Header="Symbol" 
                                                 IsReadOnly="True" /> 
                    <Controls:GridViewDataColumn DataMemberBinding="{Binding ClearName}" 
                                                 Header="Name" 
                                                 IsReadOnly="True" /> 
                    <Controls:GridViewDataColumn DataMemberBinding="{Binding Description}" 
                                                 Header="Description" 
                                                 IsReadOnly="True" /> 
                    <Controls:GridViewDataColumn DataMemberBinding="{Binding Source}" 
                                                 Header="Source" 
                                                 IsReadOnly="True" /> 
                    <Controls:GridViewDataColumn DataMemberBinding="{Binding Unit}" 
                                                 Header="Unit" 
                                                 IsReadOnly="True" /> 
                    <Controls:GridViewDataColumn DataMemberBinding="{Binding Category}" 
                                                 Header="Category" 
                                                 IsReadOnly="True" /> 
                    <Controls:GridViewDataColumn Header="Select " 
                                                 IsReadOnly="True" 
                                                 DataMemberBinding="{Binding Used}"
                        <Controls:GridViewDataColumn.CellTemplate> 
                            <DataTemplate> 
                                <CheckBox IsChecked="{Binding Used, Mode=TwoWay}" 
                                          HorizontalAlignment="Center" 
                                          Checked="DataInfo_CheckedUnchecked" 
                                          Unchecked="DataInfo_CheckedUnchecked" /> 
                            </DataTemplate> 
                        </Controls:GridViewDataColumn.CellTemplate> 
                    </Controls:GridViewDataColumn> 
                </Controls:RadGridView.Columns> 
 
            </Controls:RadGridView> 


the "Metadata" from binding represents a List<Metadata> where Metadata object has this "Used" field represented by a checkbox.
In DataInfoHeaderMenu I can choose to select or deselect all rows in the radGridView 
I retrieve the metadata list from grid view 
(List<Metadata>)radGridView , I iterate over it and set for each object Used = true.

the problem is that this should have as a result all check-boxes checked but id doesn't!

Please help!
Roxana
RoxanaC
Top achievements
Rank 1
 answered on 10 May 2010
5 answers
146 views
Hi, 
we updated to Telerik 2010 Q1 Beta, and now we can drag the floating window outside of the main window, but we no longer can drag and drop from one floating window into another or into the main window.
What should we do to make the drag and drop work between the windows.
Thanks
Nick
Miroslav Nedyalkov
Telerik team
 answered on 10 May 2010
1 answer
108 views
Hello,
How i can set the drag event to mouse right click?

Thank you
Bobi
Telerik team
 answered on 10 May 2010
5 answers
373 views
Hi,

How do I set the DateFormat in the RadDatePicker.

For example, I want to show the date 9/7/09 as July 9, 2009 in the textbox. Any help would be appreciated.

Thanks,
wpfguy
Kaloyan
Telerik team
 answered on 10 May 2010
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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?