Telerik Forums
UI for WPF Forum
5 answers
129 views
Hi,

i have a viewmodel 'people' with a list of persons. Each person has a name and a list of addresses.
How can i show this data in two panelbars?

The first panelbar should be filled with the data of the people and for each person should be a panelbar filled with the addresses.

- person1
  - adress1
     - street
     - postal code
  - adress2
     - street
     - postal code
- person2
  - adress1
     - street
     - postal code
  - adress2
     - street
     - postal code
- person3
...

thx 4 help
Kiril Stanoev
Telerik team
 answered on 01 Mar 2011
3 answers
85 views
I created a test application I put URL at bottom.  I am getting weird behavior.  The situation is that we have a dynamic workflow that the treeview will read at runtime, ondemand.  So the workflow for all the same type objects is the same, which seems to throw off the treeview.  So follow these steps and you should see what I mean:

1) Expand "Arrow Canyon" and select a child node "Comment"
2) Now expand another section like "Buck Mountain".  Notice that "Comment" is already selected just like the first section.
3) Now select a different child item under "Buck Mountain", like Reference.  Notice what changes is the items under "Arrow Canyon".

So even though they are different instances, it always acts like you are working with the first instance.  And in fact, in my program I am writing, every reference is to the first section, no matter which instance I am using.

I figured  it had something to do with each node using the same workflow.  But they are different instances, so I assumed this would be fine.  Perhaps you could educate me on how I should be using this correctly so only one item is selected at a time and it is in the correct section?

http://www.geostratsys.org/DrillDownTest.zip
Tina Stancheva
Telerik team
 answered on 01 Mar 2011
2 answers
323 views
How can I remove the corner radius from my toolbar.  I want my corners to be square.
I do NOT have access to Expression Blend.

Thanks for any help!
Buzz
Buzz
Top achievements
Rank 1
 answered on 01 Mar 2011
10 answers
210 views
I am prototyping a Windows WPF application using Windows 7's built-in multitouch gestures.  I'd like to use telerik controls but before making the purchase I'd like to know if using the c# source will allow for me to capture gesture messages?
Sergej Mertens
Top achievements
Rank 1
 answered on 01 Mar 2011
4 answers
92 views
I have the following code:

<
Gauges:RangeList>
    <Gauges:RadialRange Min="0" Max="50"
                                        StartWidth="0.02" EndWidth="0.03"
                                         Location="Inside"
                                         Background="#7F579132"
                                         BorderBrush="{x:Null}"
                                         IndicatorBackground="#FF4AB408" Offset="-0.07"/>
        <Gauges:RadialRange Min="50" Max="75"
                                          StartWidth="0.03" EndWidth="0.04"
                                          Location="Inside"
                                          Background="#7F9FAB32"
                                          BorderBrush="{x:Null}"
                                          IndicatorBackground="#FFF7E40D" Offset="-0.07"/>
     <Gauges:RadialRange Min="75" Max="100"
                                            StartWidth="0.04" EndWidth="0.05"
                                            Location="Inside"
                                            Background="#7F973C3C"
                                            BorderBrush="{x:Null}"
                                            IndicatorBackground="Red" Offset="-0.07" LabelForeground="{x:Null}"/>
                                                          
</Gauges:RangeList>
<Gauges:IndicatorList Height="247" Width="247">
    <Gauges:StateIndicator Left="0.8" Value="{TemplateBinding Value}" UseRangeColor="True"/>

And the State Indicator shows the colour of the range rather than IndicatorBackground.
What is the reason for that?
Vitalij
Top achievements
Rank 1
 answered on 01 Mar 2011
1 answer
168 views
we have created two tab items in RadTabContol....one of them contains "browsercontrol". Browser is not getting refreshed by executing webbrowser.Refresh().

Regards
Deepak
Kiril Stanoev
Telerik team
 answered on 01 Mar 2011
4 answers
465 views
Hello Telerik Team,
                                   I have a doupt in radcolorpicker with radgridview.
We are fan of telerik controls.
         In my last project our master page contains 5 fields including radcolorpicker.our aim is the row details are shown in radgridview with diffrent color.The color value is user gives when adding each  entries.

     Here i am binding in XAML below:-
<Label Content="Color" Height="24"  Margin="5,8,191,0" Name="label24" FontSize="11" Grid.Column="1" Grid.Row="3" VerticalAlignment="Top" />
<telerik:RadColorPicker SelectedColor="{Binding Path=Colour,Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" Height="24" Margin="124,8,0,0" Name="rclrColour" TabIndex="24" FontSize="11" Grid.Column="1" Grid.Row="3" Width="39" />
The color value is stored in database as hexadecimal value.

i am using RowLoaded event for display color details.
private void rgrdCompanyViewAll_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
        {
            var row = e.Row as GridViewRow;
            if (row != null)
            {
                    var cell = ((CompanyBO)e.Row.Item).Colour;
                    if (cell != null)
                    {
                        var value = cell;
                        e.Row.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(value.ToString()));
                    }
            }
        }

Here is my QUESTION:-
Every thing is fine.But the colors display in radgridview are changed each and every minute when i am using scroll bar(vertical).

i make mistake at anywhere?

Pls suggest me?

sivakanth
Top achievements
Rank 1
 answered on 01 Mar 2011
1 answer
78 views
Hi there, 

I have implemented Drag and Drop using RadDragAndDropManager. And in order to make the DragCue consistent with RadTreeListView, I would like to re-use RadTreeListView's DragCue since I use Drag and Drop capability in RadTreeListView.

so, how can I achieve that?
So far I've done this:
ContentControl dragCue = RadDragAndDropManager.GenerateVisualCue();
dragCue.Content = draggedItem.DataContext;
dragCue.ContentTemplate = this.Resources["DragCueTemplate"] as DataTemplate;
e.Options.DragCue = dragCue;

But, the appearance is still different with RadTreeListView.

Thanks and best regards, 

Arinto
Tsvyatko
Telerik team
 answered on 01 Mar 2011
1 answer
222 views
Hi,

after invoke command from button:
           <telerik:RadButton  Content="Cancel"         
          Command="telerik:RadGridViewCommands.CancelRowEdit"
          CommandTarget="{Binding ElementName=nameOfRGV}" />

edit mode is canceled but values in cells are not undoing...
I use ActionAfterLostFocus="None" attribute on my gridview and in RowEditEnded event dictiorany OldValues is empty...
How can i force gridview to load old data?

I use List<MyClass> as ItemsSource for gargridview instead of ObservableCollection<MyClass>. Can it cause the problem?

I think that my source list is updated after each cell editing. I thought that source will be updated after commitedit event...
Nedyalko Nikolov
Telerik team
 answered on 01 Mar 2011
4 answers
283 views

Hello,

I’m having a issue with RadGridView for WPF.

When dragging a column header into the grouping bar, It throws the following exception:

System.InvalidOperationException was unhandled.

Message=Root AdornerLayer Not Found. Please make sure that your root visual is Window or other element that has an adorner layer. Alternatively, wrap your root panel in an <AdornerDecorator> element.

I have tried to wrap the root panel (and any other panel) into an AdornerDecorator in xaml code. Alternatively, I tried to create an AdornerLayer by code and wrap the panel/s in AdornerDecorators but the result was always the same.

I’m using RadGridView in a custom control derived from Control class. It applies a generic template defined at generic.xaml file and this control is part of an independent assembly referenced in a main project.

Thank you  very much for your help.


Tsvyatko
Telerik team
 answered on 01 Mar 2011
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?