Telerik Forums
UI for WPF Forum
6 answers
45 views
Hello there,

I just tried to use the WPF GridView control. But I ran into a very weird issue. 
Repro steps:
1. Double click a cell to enter edit mode
2. You changed the cell but then dobule click a cell in another row
3. You expect that the previous row will save the change
4. But now you get the exception see the attached image.

I can't repro this every time. What I feel is that if I run this in a lowend machine (2G memory), it will occur much often than a highend machine.
Any help will be highly appreicated.
David
David
Top achievements
Rank 1
 answered on 26 Jan 2011
2 answers
210 views
I followed the example of using a self joined hierarchtical treeview using your DataItemCollection and extending my Entity to include SetOwner, Children, etc.  You showed me in this post http://www.telerik.com/community/forums/wpf/treeview/persist-item-order.aspx.  That all works perfectly!  What I am unsure of is how to delete a bound child then.  I thought if I just handled the ObservableCollection.CollectionChanged and removed the item from the underlining datasource it would update the visual tree, but it doesnt.  Here is what I am doing:

private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var selcontainer = treeColumns.SelectedContainer;
                WorkFlow selitem = treeColumns.SelectedItem as WorkFlow;

                _collection.Remove(selitem);
            }
          }

I also handled the CollectedChanged event:

    void _collection_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            try
            {

                if (e.Action == NotifyCollectionChangedAction.Remove)
                {
                    foreach (object geoobject in e.OldItems)
                    {
                        ctx.WorkFlows.DeleteObject((WorkFlow)geoobject);
                    }
                }

                ctx.SaveChanges();
            }
            catch (Exception ex)
            {
                Helper.SetError(ex);
            }
        }

What do I need to do to actually refresh the treeview so that the object is gone, or should I be taking another approach?

Petar Mladenov
Telerik team
 answered on 26 Jan 2011
3 answers
187 views
I am using the RadTreeView control and was wondering if it was possible to have a context sensitive ContextMenu.  I have a tree with different types of items and I would like to have different ContextMenu content based on the type of item that was clicked.  I looked at the documenation and it doesn't seem this is possible.  Is it?

Thanks.

Derek
Petar Mladenov
Telerik team
 answered on 26 Jan 2011
1 answer
148 views
I am making a virtual keyboard in xaml/cs and running into a few problems.

Shift/control. Currently I detect keys by having the user type in a textbox. Depending on the key entered into the textbox I will highlight the appropriate key and delete anything in the textbox. This runs into the problem of shift and control not actually typing a character. How might I detect shift/control?

I also have a similar problem with delete. I had an idea of defaulting the textbox to a space, so I can see the space go away and know there was a delete pressed. However the text curser keeps going to the beginning of the textbox before the space. Any method of forcing the curser to the end of the line?
Ivan Ivanov
Telerik team
 answered on 26 Jan 2011
6 answers
293 views
We're only using the DayViewDefinition in our implementation so there is only one button "Day".  Is there any way to hide this button since it isn't needed?

Thanks,
Greg
Greg
Top achievements
Rank 1
 answered on 26 Jan 2011
1 answer
268 views
Hi,
      I have one clarification.
I am using telerik radcombo box in our latest project.here i am inserting  all country values from one XML file to one rad combo box.

Every thing is fine.But the selected value is not showing on combo box. also the editable option not working.
<Window x:Class="WpfApplication7.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Window.Resources>
        <XmlDataProvider x:Key="XmlData" Source="CountryList.xml" XPath="CountryList"/>
    </Window.Resources>
    <Grid>
        <telerik:RadComboBox Height="23" ItemsSource="{Binding Source={StaticResource XmlData}, XPath=./CountryName}" DisplayMemberPath="@Name"  HorizontalAlignment="Left" Margin="176,88,0,0" Name="comboBox1" VerticalAlignment="Top" Width="156" IsEditable="True" />
    </Grid>
</Window>
and This is my countrylist Xml file.
<?xml version="1.0" encoding="utf-8" ?>
<CountryList>
  <CountryName Name="Afghanistan"/>
  <CountryName Name="Akrotiri"/>
  <CountryName Name="Albania"/>
  <CountryName Name="Algeria"/>
  <CountryName Name="American Samoa"/>
  <CountryName Name="Andorra"/>
  <CountryName Name="Angola"/>
  <CountryName Name="Anguilla"/>
  <CountryName Name="Mauritius"/>
  <CountryName Name="Mayotte"/>
  <CountryName Name="Mexico"/>
  <CountryName Name="Micronesia"/>
  <CountryName Name="Moldova"/>
  <CountryName Name="Monaco"/>
  <CountryName Name="Mongolia"/>
  <CountryName Name="Montserrat"/>
  <CountryName Name="Morocco"/>
  <CountryName Name="Western Sahara"/>
  <CountryName Name="Yemen"/>
  <CountryName Name="Zambia"/>
  <CountryName Name="Zimbabwe"/>
  </CountryList>

i am setting isEditable=True;(If i want to select india mean i just put cursor on combo box then press i.that time all country name will display with first letter i.But here not working.)

I have attached the sample solution also here.

pls give me correct solution.
Konstantina
Telerik team
 answered on 26 Jan 2011
2 answers
89 views
I'm having trouble with my row details. How do I get text in a textblock to wrap so that the user doesn't have to scroll horizontally to view the details?

My Row Details Template is as follows:
<StackPanel Margin="8,4">
   <TextBlock Text="Description:" FontWeight="Bold" />
   <TextBlock Text="{Binding Description}" FontStyle="Italic" TextWrapping="WrapWithOverflow" />
</StackPanel>

If the Description is longer than the current width of the grid, I get scrollbars. No matter what I set the TextWrapping attribute to. How do I wrap the text to the width of the grid?
Rayne
Top achievements
Rank 1
 answered on 26 Jan 2011
3 answers
641 views
Hi!

In my application, I am using the built-in Summer Theme. It almost fits my requirements, however, I would need a little bit darker blue blue on RadGridViews and in general, everywhere where this blue color is used, I would like to apply a different one (dark blue) instead. (Or red instead of blue)

Is it possible without overriding the colors for each controltype one by one? 

Any help or suggestion is welcome.

Thanks,
                G. M.
Vanya Pavlova
Telerik team
 answered on 26 Jan 2011
2 answers
130 views
When dragging a pane to be docked, I'd like to disable the center compass indicator.
How can I do this?
I'm handling PreviewShowCompass, but I'm not sure how I can use this.  I see TargetGroup in the PreviewShowCompassEventArgs argument, but I don't see how to use this to my advantage yet.

I'm not sure if it matters, but my DocumentHost does not contain any DocumentPanes, but rather a ContentControl whose ContentTemplate is basically a RadTileView.  The tile view is only populated programmatically by me.
I don't necessary need to use a DocumentHost.  I just used it for it's ability to automatically fill the space in the RadDocking.

Thanks for any help!
Buzz
Buzz
Top achievements
Rank 1
 answered on 26 Jan 2011
1 answer
150 views
How to prevent a floating RadPane (ToolWindow) gathering other RadPanes or rather to prevent a floating RadPane to dock to a already floating RadPane (ToolWindow), that means we don't wan't a already floating RadPane (ToolWindow) be able to contain 2 RadPanes.
Konstantina
Telerik team
 answered on 26 Jan 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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?