Telerik Forums
UI for WPF Forum
2 answers
125 views
Hi, we have very strange GridViewComboBoxColumn's behaviour. Code is very simple, but we have different result when execute our program on different PC. Normal behaviour should be next:
1) select any item in 3rd row combobox;
2) choose second cell in this row.
3) selected item in 1st column should be selected!!!

But on 50% PC we don't have this, i.e. selected item pull down everywhere. We lose selected item on LostFocus. In debug mode we saw, that debugger comes to GET of Employee.Name property after ComboBox selection changed (on the PC with wrong behaviour). And debugger comes to SET of this property on the PC with normal behaviour. It's hard to believe and to explain. What's wrong with this control?

BUT !!! We don't have any trouble if use common template with ComboBox (i.e. without using GridViewComboBoxColumn) - ex.code3.

Ex.code1: Main Window XAML:
<telerik:RadGridView Name="dGrid" AutoGenerateColumns="False" Height="188" VerticalAlignment="Top">
    <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn
            ItemsSourceBinding ="{Binding Path=Names, Mode=TwoWay}"
            DataMemberBinding="{Binding Path=Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
            UniqueName="ClmNames"
            >
        </telerik:GridViewComboBoxColumn>
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Path=Name, Mode=TwoWay}">
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>

Ex.code2: Main window C#:
public MainWindow()
{
    InitializeComponent();
 
    _employees = new List<Employee>(){
                 new Employee {Names = new List<string>{"Ann", "Nata"}, Name = "Ann"},
                 new Employee {Names = new List<string>{"Elise", "Ivan", "Марк"}, Name = "Ivan"},
                 new Employee {Names = new List<string>{"Elise", "Ivan", "Марк"}},
    };
 
    dGrid.ItemsSource = _employees;
}

Ex.code3: Working template XAML:
<telerik:GridViewDataColumn.CellTemplate><br>
      <DataTemplate><br>
       <ComboBox ItemsSource="{Binding Path=ImprovementList}" DisplayMemberPath="refimprovement.name_full"<br>
           SelectedItem="{Binding Path=RecalcManualItem.cfaccimprovementlist, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"<br>
           SelectionChanged="ComboBox_SelectionChanged" /><br>
      </DataTemplate><br>
     </telerik:GridViewDataColumn.CellTemplate>
Peter
Top achievements
Rank 1
 answered on 09 Jul 2012
3 answers
380 views
Hi,

Is it possible to get the longitude and latitude of the visible area on screen?

The scenario is the user has zoomed into a city, I want to be able to get the upper left lat and long, the lower right lat and long and then based on those values go to the database and get all the branches in that area.

Simplistic code example.

public void ItemsRequest(object sender, ItemsRequestEventArgs e)
{
    var dataContext = page.DataContext as MappingViewModel;
    if (dataContext == null)
        return;
 
    //var minZoom = e.MinZoom;
    var upperLeft = e.UpperLeft;
    var lowerRight = e.LowerRight;
     
    var branches = _repository.GetBranches(upperLeft.Latitude, upperLeft.Longitude, lowerRight.Latitude, lowerRight.Longitude);
 
    dataContext.SetBranches(branches, e);
}

The problem is that the e.upperLeft and e.LowerRight latitude and longitude values don't seem to represent what is in the visible area.

Sorry for my lack of understanding, this is the first time I have developed for maps so this may be a really stupid question! :-)

Regards,
Mark
Andrey
Telerik team
 answered on 09 Jul 2012
1 answer
121 views

i download the free trial  RadControlsForWpfSetup_2012_2_611,and i study to us the gauge controls following this page : http://www.telerik.com/help/wpf/radgauge-overview.html

but when i run this corde

<Window x:Class="WpfApp.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadialScale>
            <telerik:IndicatorList>
                <telerik:StateIndicator Name="stateIndicator"
   Left="0.45"
   Top="0.25"
   RelativeWidth="0.2"
   RelativeHeight="0.2">
                </telerik:StateIndicator>
            </telerik:IndicatorList>
        </telerik:RadialScale>
    </Grid>
</Window>

there are some erro message:
1、can't find the type"telerik:IndicatorList"
2、there is no Left 、Top、 RelativeWidth and RelativeHeight proprietary in StateIndicator
i also reference the these .dll: Telerik.Windows.Controls.DataVisualization.dll Telerik.Windows.Controls.dll Telerik.Windows.Data.dll
I do not konw the reason .
who can help me
Thanks !

Andrey
Telerik team
 answered on 09 Jul 2012
2 answers
103 views
Hello,

I'm trying since friday to use telerik: a greate product, but I have an issue.
I have Datagrid with large string columns and activated Expression_Dark theme.

        <telerik:RadGridView  telerik:StyleManager.Theme="Expression_Dark" ItemsSource="{Binding Path=Collection}" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Path" DataMemberBinding="{Binding Path=Path}"/>
                <telerik:GridViewDataColumn Header="Path2" DataMemberBinding="{Binding Path=Path}"/>
                <telerik:GridViewDataColumn Header="Path3" DataMemberBinding="{Binding Path=Path}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>



After Application startup I scrolled directly with the slider to the right end of datagrid window and clicked Filter button on Path3
My Application is frozen. 

You can reproduce this Issuue with my Project: http://ysoft.de/filtertest.zip

Could you please check the issue and give me a reply?
Kravetsker
Top achievements
Rank 1
 answered on 09 Jul 2012
1 answer
47 views
Hi,

I got a RadTabControl whose itemsource is databinded to an observablecollection and it's itemtemplate has a RadBook. I am also using a RadPager attached to the RadBook in the itemtemplate. Everything with the binding and stuff works fine.

When I have two objects in the collection, two tabs are generated. This is ok and each tab has its RadBook fully loaded as expected. Browsing and fliping the pages are also ok. But, when I move from one tab to the other, the previous tab's RadBook (the one that lost focus) goes back or resets to the front page. The page that was last viewed does not hold.

Why is that?

Thanks
Petar Mladenov
Telerik team
 answered on 09 Jul 2012
12 answers
282 views
I couldn't find a better place to put this request or opinion...
I would also like to see the ganttview work with the different themes as I am finding it is the one control in our entire application that you can't read and looks out of place if the user select certain themes, especially expression_dark.

It would be really nice if you could simply
StyleManager.ApplicationTheme = (Theme)themeUserSelected;
InitializeComponent();
and have the ganttview match the rest of the application without having to use downloaded resource dictionaries or workarounds.
Guru
Top achievements
Rank 2
 answered on 06 Jul 2012
2 answers
95 views
I would like the TreeListView to display a vector image for each Item state instead of a graphics file (png/jpg) and use for example, this path as defined in the Xaml.

Is that possible?
<Window.Resources>
   <Path x:Key="MyVectorImage" 
              x:Shared="False"
              Stroke="DarkGoldenRod"
              StrokeThickness="3"
              Data="M 10,20 C 10,25 40,35 40,17 H 28"
              Stretch="Fill"
              Width="100"
              Height="40"/>
</Window.Resources>

OmegaMan
Top achievements
Rank 1
 answered on 06 Jul 2012
1 answer
84 views
Hi,

Is anyone else experiencing issues with the telerik docking floating window when using a Microsoft Touch Mouse?

For some reason, when I use the two finger gesture to expand a docking floating window the window disappears off of the screen. I am then unable to retrieve the window as it is nowhere to be seen or accessed.

http://www.microsoft.com/hardware/en-gb/p/touch-mouse#details

Thanks,

Rob
Yana
Telerik team
 answered on 06 Jul 2012
4 answers
259 views
I am trying to localize the column headers using the following code for each of the column in the parent and the child gridviews in a hierarchical view.

<telerik:GridViewColumn.Header>
            <TextBlock Text="JudgementCode" telerik:LocalizationManager.ResourceKey="JudgementCode"></TextBlock>
  </telerik:GridViewColumn.Header>

This works fine for the main grid, but when I expand a row to see its child gridview, the child table column headers are not localized.

Is there something different I need to be doing for hierarchical gridveiw.
asp.net
Top achievements
Rank 1
 answered on 06 Jul 2012
5 answers
389 views
Hi!

I've a Scheduler view, which has custom appointments.

I need to have some of these appointment that aren't drag&dropable, depending of a value of one resource of the appointment.

My question is:
On which property of the xaml(in the datatemplate?) can I bind a value which indicate if the current appointment is drag&dropable?
OR
Is there a event in which I enter when I try to do the drag&drop? Where I can cancel if I want the change?

Thank you
Yana
Telerik team
 answered on 06 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?