Telerik Forums
UI for WPF Forum
2 answers
254 views

Hello guys

I'm evaluating RadControls for WPF and OA ORM for my next project. I'm just playing with it for just one day, but I'm already impressed with your work guys. Though, as a beginner, I can't figure out how to select a cell when new row is added to gridview. In other words, I want to select first editable cell and put it in edit mode when new row is added from InsertRow button. How is this accomplished?

EDITED
_____________________________

I will ask this one too here.
When cell validation fails, it would be nice to show the error message, without the need to move the cursor to the cell's red point. Is it also possible? 

EDITED 2 :)
____________________________

is it possible to tell gridview not to change selection until all cells of the grid is validated? now it's possible to persist rows despite validation failure, which breaks business rule.

thanks 

David
Top achievements
Rank 1
 answered on 21 Dec 2010
3 answers
145 views
Hi ,
     I am unable to register row selection change event for rad grid 
     I need previous row information to validate before i move on to next row.
    There is row validating event which is restricting deletion of the row.i should be able to delete the row too.

    I also need need delete row event.

Please suggest me how to handle the above issues.

Thanks,
Swathi
 
Veselin Vasilev
Telerik team
 answered on 21 Dec 2010
0 answers
151 views
We have identified several occurrences of multiple/duplicated ToolBox items existing in the Visual Studio Toolbox. Unfortunately these seem to stem from a glitch in Visual Studio, which was still not reproduced reliably so that we can fix it, or ask Microsoft for a fix.

Below are the different kinds of occurrences and their possible fixes:

    * Duplicate Toolbox items, remaining two entries per control:
          o this could be a result of having parallel RadControls installations, which is the correct behavior (Visual Studio 2008 only)
          o this could be the result of an improper deregistration of an older RadControls distribution, followed by the registration of the newer one. Usually either of the two approaches below helps fixing the problem:
                + Close Visual Studio instances, start Windows Explorer, navigate to %localappdata%\Microsoft\VisualStudio\10.0 and delete the *.tbd files
                + Right-click the Toolbox inside Visual Studio and click Reset
    * Multiple entries per control, number increasing with each start of the IDE: this is the worst scenario we have come across. All the registry entries and files on the customer machine seemed fine in this case. The only fix we were able to apply was a complete uninstall of RadControls and Visual Studio 2010, followed by a clean install of the IDE and the RadControls.

Kind regards,
Erjan Gavalji
The Telerik team 
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 21 Dec 2010
1 answer
171 views
Hi, how can I get screenshot of sparkline?

I do the following:

RadSparklineBase sparkline = new RadLinearSparkline();sparkline.XValuePath = "X";sparkline.YValuePath = "Y";sparkline.Margin = new Thickness(0);sparkline.Width = width;sparkline.Height = height;sparkline.ItemsSource = new SparkPoint[]{new SparkPoint(10, 10),new SparkPoint(10, 20),new SparkPoint(20, 10),new SparkPoint(10, 5)};DrawingVisual visual = new DrawingVisual();using (visual.RenderOpen()){new VisualBrush sparkline);}using (MemoryStream stream = new MemoryStream()){Rect rect = new Rect(0, 0, (int)width, (int)height);RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)width, (int)height, 96, 96, PixelFormats.Pbgra32);sparkline.Arrange(rect);renderTargetBitmap.Render(sparkline);PngBitmapEncoder pngBitmapEncoder = new PngBitmapEncoder();pngBitmapEncoder.Frames.Add(BitmapFrame.Create(renderTargetBitmap));pngBitmapEncoder.Save(stream);stream.Flush();image = Image.FromStream(stream);}

Is it possible to make it work? Thanks.
Yavor
Telerik team
 answered on 21 Dec 2010
4 answers
159 views
There seems to be a bug in the RadGridView. If I select the grid and press the delete shortcut key, the selected row is removed from the grid. If I edit a cell before trying to select a row and deleting it; the delete shortcut stops working (pressing it has no effect). The grid is bound to a BindingList. I have noticed the same effect on two different grids, I've also noticed that if I remove an item from the bound collection, the radgridview updates as expected (its just the delete shortcut which is gone). Is this a known issue, and are there any workarounds for it?

I've also created a custom command provider and observed that the delete command is being created and sent to the grid after the del key is pressed.

Update:

I've managed to reproduce this in a small test project.

This is what I bound to:

    internal class ViewModel
    {
        private readonly BindingList<Item> _items = new BindingList<Item>();

        public ViewModel()
        {
            _items.Add(new Item{ A = "First item", B = "howdy"});
            _items.Add(new Item { A = "Second item", B = "doodle" });
        }

        public BindingList<Item> Items
        {
            get { return _items; }
        }
    }
}

This is the view:

<Window x:Class="TelerikWpfBugs.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    
    <Window.Resources>
        
        <Style TargetType="telerik:RadGridView">
            <Setter Property="AutoGenerateColumns" Value="False"></Setter>
            <Setter Property="KeyboardNavigation.TabNavigation" Value="Continue"></Setter>
            <Setter Property="telerik:StyleManager.Theme" Value="Office_Blue"></Setter>
            <Setter Property="ShowGroupPanel" Value="False"></Setter>
            <Setter Property="ShowColumnHeaders" Value="False"></Setter>
            <Setter Property="RowIndicatorVisibility" Value="Collapsed"></Setter>
            <Setter Property="IsFilteringAllowed" Value="false"></Setter>
        </Style>

    </Window.Resources>
    
    <Grid>
        <telerik:RadGridView ItemsSource="{Binding Items}" ShowInsertRow="true">

            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn Header="A" DataMemberBinding="{Binding A}"></telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="B" DataMemberBinding="{Binding B}"></telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

3. Just set the viewmodel as the datacontext for the window upon initialization.

Steps to reproduce (i'm using the wpf q2 2010 sp2 release) :

1. Start test project, notice that you can select rows and delete them
2. Restart test project, double click on a cell to put it into edit mode
3. Go out of edit mode by pressing "escape"
4. Try hitting the del key, the selected row will not be deleted.

I've submitted a support ticket on the issue: 378153
Marius
Top achievements
Rank 1
 answered on 21 Dec 2010
5 answers
214 views
Hi

I have a hierarchy structure like this. Can i use RadTreeList to display the structure. I understand we can SelfReferenceHierarchy feature of RadGridView but is this supported in RadTreeListView

Task 1
    Task 1.1
        Task 1.1.1
Task 2
    Task 2.1

The problem I am facing with RadGridView is that columns are not coming up aligned so i wanted to see if RadTreeListView solves my problem

Regards
Kiran
Pavel Pavlov
Telerik team
 answered on 21 Dec 2010
1 answer
88 views
I have the Q1 2010 Telerik controls.
We implemented the RadSchedulet and I implemented a custom AppointmnetTemplate.
When you move over an appointment an x appears and when you hover over this x it lights up. I want to add an extra button that has the same behavior style wise. but I can not find wich styles are applied to the button and also if I make a copy of the origonal AppointmentTemplate I can not find the button.
Can you give me the Xaml code for the origonal button so I can reuse it?
Konstantina
Telerik team
 answered on 21 Dec 2010
4 answers
109 views
  Hi

I'm trying to design a full screen interface where static panel with no boundary frames can have a dock panel on the right and on the bottom, but I don't know how to eliminate the header tab in the document pane and eliminate the margin frames.

 Is it possible to create such an interface with Dock Control?

 Regards,

Carlos.
Carlos
Top achievements
Rank 1
 answered on 21 Dec 2010
1 answer
46 views
Hi there,

this is a feature request :-)

I would like to have a DataForm control simular to the Silverlight DataForm control which is included within the Silverlight-Toolkit.

While the Silverlight DataForm allows to edit collections, I am more interested using the control for editing a single class/record.
I used the XAML PowerToys (http://karlshifflett.wordpress.com/xaml-power-toys/ scroll down for some screenshots) for a initial layout of a DataForm - would be really helpfull, if I can get something like that for the new WPF DataForm control.

What do you think?

Regards,
Sörnt


Pavel Pavlov
Telerik team
 answered on 21 Dec 2010
4 answers
94 views

Hello

  1. I have cell template with text block and button in grid Data column.

I need when the button clicked to copy the content of the cell to the cell below

Like control + D in excel.

How can I do this?

 We are working MVVM, I add picture of the cell.

 

  1. How I Reach to specific cell in grid and change is value?

Best regards

Ehud

 

 

Avi Avni
Top achievements
Rank 1
 answered on 20 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?