Telerik Forums
UI for WPF Forum
3 answers
332 views
I have two instances where I drag appointment onto the ScheduleView. Once dragging from a listview to the scheduleview, and once when you drag within the scheduleview. In both cases I would like to complete some kind of action after the drop is completed. I have added the appropriate drop info handler but it never gets hit. I do have a custom drag behavior that handles the drop action itself. What do I have to do to make something happen after the drop is completed. OnDropInfo never fires...
//Drag and Drop handlers to the result listview and ScheduleView
            RadDragAndDropManager.AddDragQueryHandler(resultListView, OnDragQuery);
            RadDragAndDropManager.SetAllowDrop(taskBoardScheduleView, true);
            RadDragAndDropManager.AddDropInfoHandler(taskBoardScheduleView, OnDropInfo);
            taskBoardScheduleView.DragDropBehavior = new TaskBoardDragDropBehavior();


protected virtual void OnDropInfo(object sender, DragDropEventArgs e)
        {
            if (e.Options.Status == DragStatus.DropComplete)
            {
                RefreshScheduleView();
                //DateSpan dateSpan = new DateSpan(taskBoardScheduleView.VisibleRange.Start, taskBoardScheduleView.VisibleRange.End);
                //viewModel.GetTaskAppointments(dateSpan);
            }
        }
Valeri Hristov
Telerik team
 answered on 20 Sep 2011
1 answer
80 views
Buen dia, quiciera saber como invocar o llamar a un evento cuando se da click sobre el boton que cambia la vista del mes?

muchas gracias, si exitste dicho evento?
Yana
Telerik team
 answered on 20 Sep 2011
5 answers
179 views
Hey,

I need to customize how theCarousel animate its' items and how it's placing them.
The default behavior looks like this (Bold is the selected item, usually it looks different):

item1, item2, item3, item4, item5.

when you scroll left it looks like this:

item0, item1, item2, item3, item4, 

I need the carousel to behave like this:

item1, item2, item3, item4, item5.

when you scroll left it looks like this:

item1, item2, item3, item4

I hope it is clearn enough.

Ariel
Maya
Telerik team
 answered on 20 Sep 2011
1 answer
59 views
Is function IndexOf in DataItemCollecion using Equals method on objects?
Nedyalko Nikolov
Telerik team
 answered on 20 Sep 2011
0 answers
113 views
I want to put check box before "+" (expande and collapse icon) .
Actually I want a single check box for all child item under "+".
How can I do it ?
saurabh
Top achievements
Rank 1
 asked on 20 Sep 2011
1 answer
141 views
Hello all.

I'm trying to display rowdetails in a nice tabcontrol.
I can display the rowdetails without any flaw using this method, but only if my grid is not wrapped in a tabcontrol:

XAML

<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate x:Name="TrackGrid">
                      <telerik:RadGridView Name="innerGrid"></telerik:RadGridView>
                </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>

Code

Dim club As New .Album
club = TryCast(RadGridView1.SelectedItem, Album)
 
Dim innerDataGrid As RadGridView = TryCast(e.DetailsElement, RadGridView)
innerDataGrid.ItemsSource = Track.GetAll(club.AlbumID)

As i work in VB, and i'm just switching  to WPF, i can't seem to find some decent exaples how to do this action while using a tabcontrol in my rowdetails. So what i need is to wrap my grid in a radtabcontrol, and then get the same output, in a tab, like this

<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate x:Name="TrackGrid">
                    <telerik:RadTabControl>
                        <telerik:RadTabItem>
                           <telerik:RadGridView Name="innerGrid"></telerik:RadGridView>
                        </telerik:RadTabItem>
                    </telerik:RadTabControl> 
                </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>

I'm looking towards your answer to this.

Greetings

Dimitrina
Telerik team
 answered on 20 Sep 2011
0 answers
109 views
Hi,

I had a requirement like this. I am having a radgridview in which I want a functionality like I should be able to insert a new row on Insert button click at whatever location I required like...

1. Below the selected row.
2. Above the selected row.

Can u please suggest me how to implement this...? Waiting for ur response...!!!

Thanks
Prakash.
Siva Prakash
Top achievements
Rank 1
 asked on 20 Sep 2011
4 answers
223 views

Hi,

I am using a RadGrid from Telerik RadControls for WPF. i have this requirement where by the header column should remain as it is, but the grid entries are required to merge cells as required. i am attaching an image, showing a sample of what i require. Can this be done in RadGrid? If so, how?
enter image description here

Siva Prakash
Top achievements
Rank 1
 answered on 20 Sep 2011
4 answers
1.9K+ views
Hey there-
I am attempting to AutoFit my GridView in a DockPanel, which is causing me difficulties. I have not set a height or width, but I have set a minimum and maximum width for when it resizes. My question is what snippet of code is need in order to AutoFit the GridView in a DockPanel. 
Thanks in advance,
Chris
Ryan
Top achievements
Rank 1
 answered on 19 Sep 2011
3 answers
191 views
Hi everybody,
I have a problem with a NumericUpDown inside the DataTemplate used for the ItemTemplate in the RadCarousel,
This is my data template:

<DataTemplate x:Key="PPRTypeTemplate">
        <Border BorderBrush="{DynamicResource BorderBrush}" BorderThickness="3" CornerRadius="3">
        <Grid Height="Auto" Width="250">
        <Grid.RowDefinitions>
        <RowDefinition Height="30"/>
        <RowDefinition Height="20"/>
        <RowDefinition Height="100"/>
                        <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
<telerik:RadButton Width="50" 
Command="{Binding ElementName=LayoutRoot, Path=DataContext.CreateCommand}" 
CommandParameter="{Binding}"
ToolTip="Create PPR" 
HorizontalAlignment="Center"  >
<Image Source="../Images/wand.png"/>
</telerik:RadButton>
<Image Source="{Binding Image, Converter ={StaticResource ImageConverter}}" Grid.Row="2" Grid.RowSpan="1"></Image>
        <TextBlock Foreground="Black" HorizontalAlignment="Center" TextWrapping="Wrap" Text="{Binding Description}" VerticalAlignment="Center" Grid.Row="1" FontSize="13.333" TextAlignment="Center"/>


                    <Border  Grid.Row="3" BorderThickness="0,3,0,0" BorderBrush="{StaticResource BorderBrush}">
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Loop Type" TextAlignment="Center"
                                    Visibility="{Binding UseLoop, Converter={StaticResource BTVConv}}"/>
                        <ComboBox   SelectedItem="{Binding LoopType}"
                                                  Visibility="{Binding UseLoop, Converter={StaticResource BTVConv}}"
                                                  Margin="10,2,10,2"
                                                SelectedIndex="0"
                                    ItemsSource="{Binding Source={x:Type tools:NodeType},
                      Converter={StaticResource EnumToArrayConverter}}">
                        </ComboBox>
                        <TextBlock Text="Number of PS" TextAlignment="Center"
                                    Visibility="{Binding PSCount, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding PSCount, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding PSCount, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of PS Reference" TextAlignment="Center"
                                   Visibility="{Binding RefCount, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding RefCount, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding RefCount, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of Parallel Branches" TextAlignment="Center"
                                   Visibility="{Binding ParallelCount, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding ParallelCount, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding ParallelCount, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of PS in TRUE branch" TextAlignment="Center"
                                   Visibility="{Binding TrueCount, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding TrueCount, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding TrueCount, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of PS in FALSE branch" TextAlignment="Center"
                                   Visibility="{Binding FalseCount, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding FalseCount, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding FalseCount, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of PS before loop" TextAlignment="Center"
                                   Visibility="{Binding PSPreInnerLoop, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding PSPreInnerLoop, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding PSPreInnerLoop, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of PS inside loop" TextAlignment="Center"
                                   Visibility="{Binding PSInnerLoop, Converter={StaticResource TemplateParametersConverter}}"/>
                            <telerik:RadNumericUpDown Value="{Binding PSInnerLoop, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding PSInnerLoop, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>
                        <TextBlock Text="Number of nested PPRs" TextAlignment="Center"
                                   Visibility="{Binding NestCount, Converter={StaticResource TemplateParametersConverter}}"/>
                        <telerik:RadNumericUpDown Value="{Binding NestCount, Mode=TwoWay}" 
                                                  Minimum="1"
                                                  Visibility="{Binding NestCount, Converter={StaticResource TemplateParametersConverter}}"
                                                  NumberDecimalDigits="0"
                                                  Margin="10,2,10,2"/>


                    </StackPanel>
                    </Border>
                </Grid>
        </Border>
        </DataTemplate>

the value in the properties bounded in the NumericUpDown (in bold)
are not updated while im'changing the value in the control or on the lost focus event...
Instead if i change the control with a normal TextBox everything works, what i did wrong?
Thanks!

Ray
Claudio
Top achievements
Rank 1
 answered on 19 Sep 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?