Telerik Forums
UI for WPF Forum
4 answers
106 views
I have a hierachical grid view that binds to a datasource with autogenerate columns set to true.

I have a timer on my screen that the user can switch on and off to 'auto refresh' the grid

I have noticed that when i next cycle trhough and fetch data and bind, the data in the child tables doesnt get cleared

for example i have 4 rows in my table, each with 2 rows underneath .. next time i refresh i still have 4 rows but they each have 4 underneath

I can clear this by clearing them all before i rebind .. by i thought that binding would sort this out without having to clear them

is the working as it should?
Cameron Molyneux
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
106 views
Hi,

I had a reqirement that i need to generate the dynamic grids in my window and on the button click i need to sort the grids.
i'm able to generate the dynamic grids and i took the array list in which im adding the grid name but now in the button click how can i sort the grids?

can anyone please help me on this issue please.
Vlad
Telerik team
 answered on 25 Feb 2010
4 answers
151 views
we are using picker text box in place of wpf textbox but we are unable to set the background property for pickertextbox.please reply to this.
Sowjanya MV
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
138 views
The most bizarre situation.  I am trying to do a drag/drop within the treeview.  But for some reason, my DragEnded event will never fire.  I have put it on both the Treeview and it code.  But when I run the code, I just get the error "There is not source code available for the current location".  Other events will work fine like PreviewDragEnded.  I have tried two different datasources.  Both an ObservableCollection and then also a link query cast ToList().  I have also tried to re-create these events and it makes no difference.  By the error, it acts as if I don't have a handler, but I do!  You will notice I have tried the handler in both code and markup.

Version: 2009.3.1314.35

This is based off a sample you put up describing how to change the index of the sort

Here is what I have in XAML and in code:

<

 

<Telerik:RadTreeView x:Name="treeColumns" MinHeight="500" DragEnded="treeColumns_DragEnded"
                        VerticalAlignment="Top" SelectionMode="Multiple" IsEditable="True" IsDragDropEnabled="True"
                        ItemTemplate="{StaticResource ItemTemplate}"
                        ItemsSource="{Binding Converter={StaticResource convWorkflow}}"></Telerik:RadTreeView> 

 

 

 

 

 

 

treeColumns.DragEnded +=

new RadTreeViewDragEndedEventHandler(treeColumns_DragEnded);

 

 

 

 

 

 

private void treeColumns_DragEnded(object sender, RadTreeViewDragEndedEventArgs e)
        {
            int index;
            WorkFlow draggedItem = e.DraggedItems[0] as WorkFlow;
            WorkFlow targetItem=e.TargetDropItem.DataContext as WorkFlow;
            if (draggedItem != targetItem)
            {
                switch (e.DropPosition)
                {
                    case DropPosition.After:
                        index = e.TargetDropItem.Index + 1;
                        break;
                    case DropPosition.Before:
                        index = e.TargetDropItem.Index - 1;
                        break;
                    case DropPosition.Inside:
                        index = e.TargetDropItem.Items.IndexOf(draggedItem);
                        break;
                    default:
                        index = -1;
                        break;
                }
            }
            else
            {
                index = e.TargetDropItem.Index;
            }
            draggedItem.SortOrder = index;
            DataAccess.ctx.SubmitChanges();
        }

heavywoody
Top achievements
Rank 1
 answered on 25 Feb 2010
2 answers
135 views
Hi,Telerik.

I have got a problem when using RadCarouselPanel.
How to select the last Image when using RadCarouselPanel? It seems that the last image cannot be selected.
Is there any way to do this?

Wish your help!
Thank you!
xu jundong
Top achievements
Rank 1
 answered on 25 Feb 2010
2 answers
323 views

Hi everyone,

whit others component suite it is possible, example:

 
    <Style TargetType="ComboBox" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.ComboBoxKey}}" />  
    <Style TargetType="TextBox" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.TextBoxKey}}" />  
    <Style TargetType="PasswordBox" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.PasswordBoxKey}}" />  
    <Style TargetType="Button" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.ButtonKey}}" />  
    <Style TargetType="ToolTip" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.ToolTipKey}}" />  
    <Style TargetType="CheckBox" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.CheckBoxKey}}" />  
    <Style TargetType="RadioButton" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.RadioButtonKey}}" />  
    <Style TargetType="ContextMenu" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.ContextMenuKey}}" />  
    <Style TargetType="ScrollViewer" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.ScrollViewerKey}}" /> 


This is possible with the WPF Telerik's suite ?

Thanks,

Massimiliano.
Massimiliano Sorce
Top achievements
Rank 1
 answered on 24 Feb 2010
1 answer
99 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
Boyan
Telerik team
 answered on 24 Feb 2010
1 answer
71 views
Greetings All!

Looking for a way to restrict a RadPanel to only be "dockable" in it's original parent RadPanelGroup? Basically, preventing my tool panels from being able to dock with my DocumentPanel.

Any ideas?

Thanks!


Dave Brock
Top achievements
Rank 1
 answered on 24 Feb 2010
4 answers
381 views
Hi,

We've replaced our earlier use of child grids with a simplified RowDetails, something that looks like this:

       <telerik:RadGridView.RowDetailsTemplate> 
            <DataTemplate> 
                <Grid> 
                    <Grid.ColumnDefinitions> 
                        <ColumnDefinition Width="80" /> <!-- A kind of margin we're using --> 
                        <ColumnDefinition Width="*" /> 
                    </Grid.ColumnDefinitions> 
                    <!-- Here there is a component that appears in column 0 --> 
                     
                    <!-- The actual description  --> 
                    <TextBlock  
                        Grid.Column="1" 
                        Text="{Binding Description, Mode=OneWay}"  
                        TextWrapping="Wrap"/> 
                </Grid> 
            </DataTemplate> 
        </telerik:RadGridView.RowDetailsTemplate> 

When viewing this, the TextBlock fails to wrap the text.

Based on our understanding, this is because the owning Grid is taking more than the visible width. However, it's possible there's a mistake here.

Can you help us understand why the TextBlock is not wrapping?

Thanks,
yonadav
yonadav
Top achievements
Rank 1
 answered on 24 Feb 2010
3 answers
302 views
With the gridview I need to override the delete functionality...When a user hits the delete key on a row in the grid I want to set my entity to Inactive, rather than remove it from the collection.

I tried hooking up KeyDown but it never fires for the delete key, the default functionality of removing the row happens.
I tired hooking up KeyDown with CanUserDeleteRows set to false and the key down never fires for the delete key.
I can use other keys such as backspace etc. but our users want to use delete.

The only thing that seemed to work was to handle the Deleting event and do what I want and set e.Cancel to true. The problem with this event is I can't selectivly remove from the collection ie. if my record is new/unsaved and they hit delete i want it removed but if it's a saved record that they delete i want it marked on screen as inactive. The cancel seems to be an all or nothing. 

What's the best way to do the functionality that i need?
Milan
Telerik team
 answered on 24 Feb 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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?