Telerik Forums
UI for WPF Forum
3 answers
194 views

I'm converting from 2011.3.1116.35 to 2017-3-913.40.  This works in the old version but not in the new version.

My RadGridView is bound to an ObservableCollection named DrugList, however the ComboBoxColumn is bound to a different ObservableCollection named BrandGenericCodeList.  I'm trying to do the binding in XAML:

<UserControl x:Class="MyApp.ucDrug"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" 
             xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
...
                <telerikGrid:RadGridView x:Name="radGridView"
                                         Grid.Row="1"
                                         AutoGenerateColumns="False"
                                         CanUserDeleteRows="True"
                                         IsSynchronizedWithCurrentItem="True"
                                         ItemsSource="{Binding DrugList}"
                                         ShowColumnFooters="True"
                                         Deleting="radGridView_Deleting"
                                         RowValidating="radGridView_RowValidating"
                                         SelectionChanged="radGridView_SelectionChanged">
                    <telerikGrid:RadGridView.Columns>
                        <telerikGrid:GridViewDataColumn Header="Name" DataMemberBinding="{Binding DrugName}" />
                        <telerikGrid:GridViewComboBoxColumn Header="Brand/Generic"
                                                            DataMemberBinding="{Binding BrandGenericCode}"
                                                            DisplayMemberPath="Value"
                                                            IsLightweightModeEnabled="True"
                                                            ItemsSource="{Binding BrandGenericCodeList}"
                                                            SelectedValueMemberPath="Name"
                                                            UniqueName="BGC" />

 

Any help is appreciated.  Thank you.

Wellpartner
Top achievements
Rank 1
 answered on 29 Dec 2017
6 answers
152 views
I was wondering if anyone has any sample code that shows how to properly invoke RadSpellChecker (without using codebehind, but proper MVVM methodology) on a TextBox when a user is submits a form for persistence. Also, if the user dismisses the spell checker while there are still misspelled words, a notification alert box should pop-up allowing the user to either continue (with "misspellings" not corrected) or cancel and allow the submit action to cancel itself. I don't see how RadSpellChecker allows for the ability to determine if the user has left behind any non-corrected words. My guess is that the DocumentSpellChecker must somehow be put to use, but I'm hoping to minimize complexity. Thanks for any assistance in advance.
Bruce
Top achievements
Rank 2
 answered on 29 Dec 2017
11 answers
288 views
Hi telerik,

Currently I do as below, which I thought was the way to do it. It has no effect on drag-cursor. What is your recommendation?
Thanks,

Anders, Denmark
        public void OnDragOver(object sender, DragEventArgs args)
        {
...
            if ( [disallow drag] )
            {
                args.Effects = DragDropEffects.None;
            }
            args.Handled = true;
        }
Vladimir Stoyanov
Telerik team
 answered on 29 Dec 2017
1 answer
303 views

Hello,

Is it possible to create 3D Pie Charts using UI Telerik for WPF library? In SDK Sample Browser I didn't find any sample regards it, meanwhile by this link https://docs.telerik.com/devtools/wpf/controls/radchart/features/chart-types/3d-charts I found it.

Could you please help with this question since on this depends question of purchasing of the WPF library

Kind Regards,

Vladimir

 

Sia
Telerik team
 answered on 28 Dec 2017
6 answers
203 views
When I use a RadTileView control in a RadRibbonBackstageItem, the RadTileViewItems run right out off the visible area. This Code works in a normal application window. How can I solve this?
Sia
Telerik team
 answered on 28 Dec 2017
1 answer
108 views
Hi,
I have a column with "FilterRow" filtering mode.
when I type some words in column filter area and wanna select a word, the Column will be dragged.
For Example:
I type "Ahmad Reza" in filtering TextBox and wanna change Ahmad To Ali
when I wanna select Ahmad, the Column will be dragged.
How do I Fix that?
Thanks.
Yoan
Telerik team
 answered on 28 Dec 2017
8 answers
1.0K+ views
I am inserting some text that conains linebreaks, "\n", into a new Span in a RadDocument based on a docx template and then I save the document as a PDF using the PDF provider.

The problem is that there is everything is printed on the same line and the LineBreake itself i replaced by two Squares (i asume that is since the LineBreak character is not recognized).

I have tried replacing the LineBreak with "FormattingSymbolLayoutBox.LINE_BREAK", but the text is still on one line and I get a ¬ character instead of the two Squares.

Is it impossible to insert a LineBreak inside a Span, or is it possible to fix this?

Please note that I am only using the RadDocument class and that I am not and do not want to use the actual RichTextBox Control!
Boby
Telerik team
 answered on 28 Dec 2017
2 answers
195 views
Is It possible to show connectors on mouse hover?
Amiel
Top achievements
Rank 1
 answered on 27 Dec 2017
1 answer
769 views

Hi, all. How can I catch click action for any checkbox in GridViewSelectColumn via MVVM or smth else ?

XAML markup contains only one grid with two column (first is selectable checkboxes):

<telerik:RadGridView ...
                             namespace:MySelectedItemsBindingBehavior.SelectedItems="{Binding SelectedItemsHere}"
 ...>
    <telerik:RadGridView.Columns>
        <telerik:GridViewSelectColumn CheckBoxStyle="{StaticResource CheckBoxStyle}"/>
            <telerik:GridViewDataColumn ...>
            <telerik:GridViewDataColumn.CellTemplate>
                <DataTemplate ...>
                    <StackPanel ...>
                        ...
                    </StackPanel>
                </DataTemplate>
            </telerik:GridViewDataColumn.CellTemplate>
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

P.S. Exactly click event, not the changing of underlying collection.

Dilyan Traykov
Telerik team
 answered on 27 Dec 2017
3 answers
353 views

Hello,

 

This is my first post here and I sense that it's not last, due to your unhelpfull documentation and demos. I have RadGridView with data bound. Everything is connected to ADO and dynnamically loaded and refreshed. Also, I can pass parameter of my gridView.SelectedItem to Linq query, to retrieve the data. What I want to do is pass parameter of expanted data. For full clarification:

1. After I press "+" button my row is expanding to row details

2. I have 2 tabs there, 1st is a simple grid, 2nd is a grid view with table.

3. I need to pass parameter (Id of row I'm expanding) to query. 

 

As I mentioned, my connection and data binding works, because I can achieve this by using SelectedItem property. The problem is that, SelectedItem property passes Id of selected item, not expanded one, which means I can pass id of another item, to my expanded item. All I need here is to get something like "ExpandedItem" property, how do I get it?

 

XAML

<Grid>
        <telerik:RadGridView  x:Name="ListaProduktow" GroupRenderMode="Flat"
                                  CanUserFreezeColumns="False"
                                  RowIndicatorVisibility="Collapsed"
                                  ItemsSource="{Binding}"
                                    AutoGenerateColumns="False"
                              ShowGroupPanel="False"
                              FilteringMode="Popup"
                              ShowSearchPanel="True"
                              IsSearchingDeferred="True"
                              AlternationCount="2"
                              LoadingRowDetails="SzczegolyClick"
                             >
 
        <telerik:RadGridView.Columns>
 
            <telerik:GridViewToggleRowDetailsColumn />
 
                <telerik:GridViewDataColumn Header="Departament" TextWrapping="Wrap"
                                                DataMemberBinding="{Binding Departament}"
                                            Width="100"
                                            IsReadOnly="True"
                                            />
 
...OTHER COLUMNS...
 
 
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <telerik:RadTabControl x:Name="SzczegolyForm"
                                           Width="702"
                                           HorizontalAlignment="Left"
                                           Margin="8"
                                           VerticalAlignment="Center"
                                          >
...1st TAB...
 
 </telerik:RadTabItem>
                        
                            <telerik:RadTabItem Header="Stany Magazynowe"
                                                TabIndex="2"
                                               >
                            <telerik:RadGridView
                                                 Width="Auto"
                                                 HorizontalAlignment="Stretch"
                                                 IsReadOnly="True"
                                                 ShowGroupPanel="False"
                                                 AutoGenerateColumns="False"
                                                ItemsSource="{Binding StanyMagazynowe}"
                                                Name="StanyMagazynoweForm">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Magazyn}"
                                                                Header="Kod Magazynu" />
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Ilość}"
                                                                Header="Ilość" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadTabItem>
                        </telerik:RadTabControl>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>
</Grid>

 

Code behind:

 

  private void SzczegolyClick(object sender, GridViewRowDetailsEventArgs e)
       {
           WarehouseDetails();
           ListaProduktow.ItemsSource = products;
       }
 
private void WarehouseDetails()
       {
           string productId;
           var selectedProduct = ListaProduktow.SelectedItem as V_PRODUCTS_LIST;
           
           if (selectedProduct != null)
           {
               productId = selectedProduct.Id_Product;
               selectedProduct.StanyMagazynowe = products.Where(e => e.Id_Product == productId).Select(product =>
                   new StanyMagazynowe()
                   {
                       Magazyn = product.Magazyn,
                       Ilość = product.Ilość
                   }).ToList();
           }
      
           
       }
Yoan
Telerik team
 answered on 27 Dec 2017
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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?