Telerik Forums
UI for WPF Forum
1 answer
358 views
<telerik:RadBusyIndicator IsIndeterminate="True" Grid.Row="1" Grid.ColumnSpan="2" IsBusy="False" x:Name="MainIndicator">
    <Grid x:Name="grdChart">
         <WindowsFormsHost Name="host" Background="Black" >
         </WindowsFormsHost>
     </Grid>
</telerik:RadBusyIndicator>

 

public void ActiveXControlDataLoaded()
{
    this.Dispatcher.BeginInvoke(new System.Action(() =>
    {
           MainIndicator.IsBusy = true;
    }));
}

 

The above XAML code is showing WindowsFormsHost element that is used to host an ActiveX control.

ActiveXControlDataLoaded method will be fired by the ActiveX control whenever it has a new data record.

My problem is RadBusyIndicator is always getting behind WindowsFormsHost element when the later UI is loaded. I tried to disable WindowsFormsHost and Its ActiveX control child but RadBusyIndicator keeps disappearing. Is there any way to show RadBusyIndicator on top of WindowsFormsHost ?

Thanks in advance.

Nasko
Telerik team
 answered on 11 Jan 2017
2 answers
148 views

Hi,

I have added  RadPivotGrid to my vb.net page and RadPersistenceManager . I managed to save and load the user current state with the following:

 RadPersistenceManager1.StorageProviderKey = fileId
        RadPersistenceManager1.SaveState()

 

However, I need to get the XML and save the XML in the db and then load the xml when user clicks the load button.

How do I get the XML for the current state?

 

Thanks

newp
Top achievements
Rank 1
 answered on 11 Jan 2017
5 answers
564 views

I have tried to set up a gridview which includes a date column.

If I have an invalid input for a date column, I get a validation error -> That is OK.

If I THEN use the dropdown to choose a date, the program crashes with the following exception: 'ToolTip' cannot have a logical or visual parent.

My GridViewColumn

<telerik:GridViewComboBoxColumn x:Name="InputValueComboBox" Header="ABC" ItemsSourceBinding="{Binding Inputs}" DataMemberBinding="{Binding Input, ValidatesOnDataErrors=True}" IsComboBoxEditable="True" SelectedValueMemberPath="Value" DisplayMemberPath="Value" SortMemberPath="Value" Width="Auto" CellEditTemplateSelector="{StaticResource InputValueEditTemplateSelector}" />

 

My TemplateSelector:

<DataTemplate x:Key="DateValueEditTemplate">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBox Grid.Column="0" Text="{Binding Input, Mode=TwoWay}" />
                    <telerik:RadDropDownButton x:Name="FilterCalendarDropdown" Grid.Column="1" AutoOpenDelay="0:0:0.0">
                        <telerik:RadDropDownButton.DropDownContent>
                            <telerik:RadCalendar SelectedDate="{Binding DateValue, Mode=TwoWay}" SelectionChanged="OnSelectionChanged" />
                        </telerik:RadDropDownButton.DropDownContent>
                    </telerik:RadDropDownButton>
                </Grid>
            </DataTemplate>
 
            <styleSelectors:PropertyValueDataTemplateSelector x:Key="InputValueEditTemplateSelector" DateTemplate="{StaticResource DateValueEditTemplate}" />

 

Any idea to solve the problem?

Ivan Ivanov
Telerik team
 answered on 10 Jan 2017
5 answers
297 views

Hi,

I'm uploading simple PDF scans to SQL Server and then rendering later them from a memory stream using the RadPDFViewer, but it's been a little inconsistent.  Most of the files display properly, but every so often the PDFViewer does not display the file at all and the control is just a white blank.  Would the orientation (portrait vs landscape) of the scanned PDF file have any affect on this?

 

Also, I am not able to locate the PDFViewerNavigation control in my Toolbox, is this control included with the Telerik UI for WPF?

 

Thanks,

Don

rcmp-grc
Top achievements
Rank 1
 answered on 10 Jan 2017
1 answer
198 views

Is it possible to display text values in the cells or does it have to be numerical only? I don't need any totals or aggregates. I have managed to get the control to display my rows and columns correctly, but I'm not sure how to get it to display the values I need since they are text values.

I want to use this control because I don't know how many columns I will need and its much simpler to matrix my data and let the control figure it out. I could achieve the same results with a GridView, manually adding columns and using a converter to find the correct values, but it would be MUCH simpler to use a PivotGrid.

I have attached an image of what I'm trying to display. My class and data are below.

public class SettingCompareMatrix : IComparable<SettingCompareMatrix>
{
    public int SettingGroupIndex { get; set; }
    public string SettingGroup { get; set; }
    public int SettingIndex { get; set; }
    public string SettingName { get; set; }
    public string Name { get; set; }
    public string Value { get; set; }

    //For sorting the rows, instead of by alphebetical order. Another issue to figure out!
    public int CompareTo(SettingCompareMatrix other)
    {
        if (this.SettingGroupIndex > other.SettingGroupIndex)
            return 1;
        else if (this.SettingGroupIndex < other.SettingGroupIndex)
            return -1;
        else
        {
            if (this.SettingIndex > other.SettingIndex)
                return 1;
            else if (this.SettingIndex < other.SettingIndex)
                return -1;
            else
                return 0;
        }
           
    }
}

private List<SettingCompareMatrix> GeneratePivotData()
{
    return new List<SettingCompareMatrix>()
    {
        new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=0, SettingName="Create Store", Name="Store 1", Value="True" },
        new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=0, SettingName="Create Store", Name="Store 2", Value="False" },
        new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=1, SettingName="Information", Name="Store 1", Value="Modify" },
        new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=1, SettingName="Information", Name="Store 2", Value="Display" },
        new SettingCompareMatrix() { SettingGroupIndex = 1, SettingGroup="Categories", SettingIndex=0, SettingName="Category", Name="Store 1", Value="Add" },
        new SettingCompareMatrix() { SettingGroupIndex = 1, SettingGroup="Categories", SettingIndex=0, SettingName="Category", Name="Store 2", Value="Display" },
        new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=0, SettingName="Information", Name="Store 1", Value="Display" },
        new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=0, SettingName="Information", Name="Store 2", Value="Add" },
        new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=1, SettingName="Settings Price Matrix", Name="Store 1", Value="Add" },
        new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=1, SettingName="Settings Price Matrix", Name="Store 2", Value="Display" },
    };
}

<pivot:LocalDataSourceProvider x:Key="LocalDataProvider" AggregatesPosition="Rows" >
    <pivot:LocalDataSourceProvider.RowGroupDescriptions>
        <pivot:PropertyGroupDescription PropertyName="SettingGroup" />
        <pivot:PropertyGroupDescription PropertyName="SettingName" />
    </pivot:LocalDataSourceProvider.RowGroupDescriptions>
    <pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
        <pivot:PropertyGroupDescription PropertyName="Name" />
    </pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
    <pivot:LocalDataSourceProvider.AggregateDescriptions>
        <pivot:PropertyAggregateDescription PropertyName="Value"/>
    </pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>

<pivot:RadPivotGrid Grid.Row="1" DataProvider="{StaticResource LocalDataProvider}"
                    ColumnGrandTotalsPosition="None" ColumnSubTotalsPosition="None"
                    RowGrandTotalsPosition="None"  RowSubTotalsPosition="None" />

Polya
Telerik team
 answered on 10 Jan 2017
4 answers
372 views

This is my first attempt with this grid. One of my columns contains datetime values. Because I want the button for the editor to always be visible, I created a CellTemplate as I saw mentioned in the forum. This works fine. However, once I'm in the editor, nothing will close or hide the editor, even if I click on another cell or control or hit Escape.

<telerik:GridViewDataColumn DataMemberBinding="{Binding Timestamp}" Width="200">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <telerik:RadDatePicker SelectedDate="{Binding Timestamp}" IsTooltipEnabled="False"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
Stefan Nenchev
Telerik team
 answered on 10 Jan 2017
1 answer
256 views

Hi 

I want to know if it is possible to activate a function who insert a floating text block inside my document like Word ?

If it doesn't, does you plan development of this function in the future ?

Martin Ivanov
Telerik team
 answered on 10 Jan 2017
3 answers
94 views

With version 2016 Q3 SP1 a RadTreeViewItem's Header is being emptied when I initiate editig with radTreeView.SelectedContainer.BeginEdit(). According to other posts in this forum this seems to be a previously known and corrected issue. Obviously it is back again.

Is there anything I can do to work around this issue?

Thanks

Michael

Petar Mladenov
Telerik team
 answered on 10 Jan 2017
1 answer
81 views
09-January-2017 a new version of Dev Craft Complete for WPFwas come (the information message was). But when tryed to load and install it the error message had place. Please tell me - why?
Peshito
Telerik team
 answered on 10 Jan 2017
10 answers
458 views
Hi, when entering the view, I would like the user to be instantly able to type away at the autocompletebox upon view loaded. I tried Autocompletebox.Focus event but that doesn't quite focus. May I ask how abouts do I focus Autocompletebox?
Nasko
Telerik team
 answered on 10 Jan 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?