Telerik Forums
UI for WPF Forum
2 answers
137 views
Hi, support team,

We've upgraded to 2012.2.0607.40 recently and I found one chagne in the RadGridView that impacts user experience.
Basically we have input boxes (hosted inside the grid) to allow user to enter something to filter the grid. The problem is every time user entered something in the text box, GridViewDataControl.OnItemsChanged will be executed, and the grid found that it has the focus (because we host the text box in the grid) so it call a PreserveFocus internally to set the focus to itself and actually steal the focus from the text box inside the grid.

Right now my work around is to override the OnItemsChanged to set the focus back but it's still having problem sometimes.
     protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
     {
      var inputElement = Keyboard.FocusedElement;
      base.OnItemsChanged(e);
      if (inputElement is TextBox)
      {
        Dispatcher.BeginInvoke(() => Keyboard.Focus(inputElement), DispatcherPriority.Input);
      }
    }

Can you look into fix the problem?

Thanks
Jason
Jason
Top achievements
Rank 1
 answered on 10 Jul 2012
2 answers
101 views
Hi,

I would like to ask the experts and the general community users telerik his advice on the correct selection of controls for a scenario like this:

An application (WPF Web Application) that at runtime, the creation of multiple items (a user control perhaps) but these items can be classified into 1 of 5 types ..... ie item 1 can be type A, type B item 2, etc ..... forming a list of selectable items grouping by type....

Furthermore, these elements must be contained in a manner that allows the user to drag and drop on another control or container.

The variety of Telerik controls is impressive and in some tests I made ​​several mistakes .... or several ways to do wrong .... in any case, what kind of controls may be used for a similar scenario .... I permitted through the functionality that is required?

In advance, thank you all.
Romell
Top achievements
Rank 1
 answered on 09 Jul 2012
0 answers
147 views
Hi All,

I can successfully compile the installed WPF demos included in the commerical version.  But I cannot preview the XAML views.  I get the error below.  I only have Q1 2012 installed for all the Telerik Products on this this machine, I uninstalled all others.


Error 82 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Telerik.Windows.Examples.RibbonView' that is not included in the assembly. C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\RibbonView\WPF\RibbonWindow\Example.xaml 4 15 RibbonView.WPF


Can someone point out what might be happening here?

Thanks,

Reid
Reid
Top achievements
Rank 2
 asked on 09 Jul 2012
3 answers
165 views
I exported the style in Blend but don't see a way to change the Column header background. Is this possible to do?
Rod
Vlad
Telerik team
 answered on 09 Jul 2012
2 answers
144 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
444 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
141 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
119 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
67 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
316 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
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?