Telerik Forums
UI for WPF Forum
1 answer
148 views

Hey telerik,

 

My grid's external spinner (RadBusyIndicator) won't work when grouping the grid. It works only when loading data.

Here is some sample code illustrating my scenario:

<telerik:RadBusyIndicator Name="busyIndicator" IsBusy="True" DisplayAfter="0">
           <telerik:RadGridView Name="RadGridView"  ItemsSource="{Binding View}" IsReadOnly="True" Style="{StaticResource VitorStyle}"  AutoGenerateColumns="False">

private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ((ViewModel)DataContext).Load(complete);
            var view = (DataContext as ViewModel).View;
            view.ItemsLoading += View_ItemsLoading;
            view.ItemsLoaded += View_ItemsLoaded;
 
 
            //the spinner wont work for the grouping.
            //this.RadGridView.Grouping += RadGridView_Grouping;
            //this.RadGridView.Grouped += RadGridView_Grouped;
            //this.RadGridView.GroupRowIsExpandedChanging += RadGridView_GroupRowIsExpandedChanging;
            //this.RadGridView.GroupRowIsExpandedChanged += RadGridView_GroupRowIsExpandedChanged;
        }
        //private void RadGridView_GroupRowIsExpandedChanged(object sender, Telerik.Windows.Controls.GridView.GroupRowEventArgs e)
        //{
        //    this.busyIndicator.IsBusy = false;
        //}
 
 
        //private void RadGridView_GroupRowIsExpandedChanging(object sender, Telerik.Windows.Controls.GridView.GroupRowCancelEventArgs e)
        //{
        //    this.busyIndicator.IsBusy = true;
        //}
 
 
        //private void RadGridView_Grouped(object sender, GridViewGroupedEventArgs e)
        //{
        //    this.busyIndicator.IsBusy = false;
        //}
 
 
        //private void RadGridView_Grouping(object sender, GridViewGroupingEventArgs e)
        //{
        //    this.busyIndicator.IsBusy = true;
        //}
 
 
        //B)
        private void View_ItemsLoading(object sender, VirtualQueryableCollectionViewItemsLoadingEventArgs e)
        {
            this.busyIndicator.IsBusy = true;
        }
 
        private void View_ItemsLoaded(object sender, VirtualQueryableCollectionViewItemsLoadedEventArgs e)
        {
            this.busyIndicator.IsBusy = false;
        }

public class ViewModel
{
    public VirtualQueryableCollectionView View { get; set; }
    Controller controller;
 
    public ViewModel()
    {
        controller = new Controller();
    }
    public void Load(bool complete)
    {
        //G the virtual queryable collection. this is the Key Class telerik grid needs to perform the Infinite scrolling. or virtualization.
        View = new VirtualQueryableCollectionView(controller.GetList(complete)) { LoadSize = 10 };
    }
 }

 

This spinning issue has been troubling me for quite some time by now.

It won't show on grouping, sorting and filtering.

 

please send a light

 

Thank you!

Stefan Nenchev
Telerik team
 answered on 19 Sep 2016
3 answers
77 views

Hi,

I'm creating RibbonView with an ApplicationMenu, I have several items, and it structured in 2 levels.

The 2nd level can has a lot of voice, these voices exeeds over ApplicationMenu area.

I tryed to value ApplicationMenu.Content with Grid sized, but ApplicationMenu area does not expand.

How should I go about doing this?

 

Dario Concilio
Top achievements
Rank 2
 answered on 19 Sep 2016
2 answers
204 views

Hi to all,

I create a docking, when add new usercontrol, I insert a new RadPane that contains the usercontrol selected, ok.

After I add other one usercontrol, docking activates my last usercontrol, ok.

In my 2nd usercontrol I have gridview, apply filter by filtersearch.

Click on 1st usercontrol (first radpaneheader),

after that, click again on 2nd, my filter is cleared, and gridview reload all data.

Can I disable this behavior?

 

 

Dario Concilio
Top achievements
Rank 2
 answered on 19 Sep 2016
3 answers
77 views

I am currently upgrading our customer Aplication from Telerik UI for WPF version 2010.3.1314 to Telerik UI for WPF version 2016.2.613

Currently I am upgrading RadScheduler to RadScheduleView in XAML file.

  • ViewMode="Day"
    ===> ActiveViewDefinitionIndex="0"
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:DayViewDefinition/>
        <telerik:MonthViewDefinition/>
        <telerik:WeekViewDefinition/>
        <telerik:TimelineViewDefinition/>
    </telerik:RadScheduleView.ViewDefinitions>
  • AppointmentTemplate="{StaticResource AppointmentTemplate}"
    ===> AppointmentItemContentTemplate="{StaticResource AppointmentTemplate}"
  • SelectedViewStartDateChanged="_RadScheduler_SelectedViewStartDateChanged"
    ===> VisibleRangeChanged="_RadScheduler_SelectedViewStartDateChanged"
  • SelectedTimeSlot="{Binding Path=SelectedTimeSlot,Mode=TwoWay}"
    ===> SelectedSlot="{Binding Path=SelectedTimeSlot,Mode=TwoWay}"
  • IsReadOnly="True"
    ===> SpecialSlotsSource="{Binding EventSlots}"
  • IsViewModeNavigationEnabled="True"
    ===> NavigationHeaderVisibility="Collapsed"
  • MonthViewScrollBarVisibility="Collapsed"
    ===> ???
  • CalendarVisibility="Visible"
    ===>???
  • DisplayEmptyGroup="False"
    ===><telerik:RadScheduleView.GroupDescriptionsSource ShowNullGroup="False">
            <telerik:GroupDescriptionCollection />
            </telerik:RadScheduleView.GroupDescriptionsSource>
  • ActiveViewDefinitionChanged="_RadScheduler_ActiveViewDefinitionChanged"
    ===>AppointmentSelectionChanged ="_RadScheduler_ActiveViewDefinitionChanged"
  • TimeSlotTemplateSelector="{StaticResource SelectTemplate}"
    ===>AppointmentItemContentTemplateSelector="{StaticResource SelectTemplate}"

I cannot run the program yet because of a large number line of code in project.

Please help me to review my modify source code, expecialy how to migrate MonthViewScrollBarVisibility="Collapsed" and  alendarVisibility="Visible". 

Thanks,Liem.

Yana
Telerik team
 answered on 19 Sep 2016
7 answers
235 views

Hi,

RadGridView behavior after update/insert row is different between NewRowPosition="Top" and NewRowPosition="Bottom".
When position is defined "top", after saving the scroll is on the same position as before saving. However, when the position is defined "Bottom", after saving it scrolls to top.
Workaround with ScrollIntoView() is not useful in my case, because I may have many rows updated.
How can I achieve the same behaviour as NewRowPosition="Top" after saving?

Thanks

Lynda Golomb
Top achievements
Rank 1
 answered on 18 Sep 2016
9 answers
2.2K+ views
How I can programmatically clear all filters that have been manually set using the built in 'column' filters?
I want to add a 'CLEAR FILTERS' button.
thx again
John
Top achievements
Rank 1
Iron
 answered on 16 Sep 2016
4 answers
200 views
On the left of the grid records there is a gray area of a few pixels, is there any way to remove this so that the records data is directly left-aligned against the edge of the grid?
Stefan
Telerik team
 answered on 16 Sep 2016
3 answers
356 views

Hi,

  I want to show ListItems with Checkboxes as shown in the attached image,so that user can select multiple options in the dropdown option of PropertyGrid.

How to achieve this??

Regards,

Nagasree.

 

  

Stefan Nenchev
Telerik team
 answered on 16 Sep 2016
2 answers
219 views

Hi,

I am new to using Telerik Framework. I am trying to write automated tests for a WPF application that we have, but I keep getting a null reference exception when I try and use the code described in this page http://docs.telerik.com/teststudio/testing-framework/write-tests-in-code/silverlight-wpf-automation-wtc/wpf-ui-automation. 

 

This happens in the line that is launching the application 'WpfApplication foo = myManager.LaunchNewApplication(@"C:\Users\e-ddcr\Documents\GAV\2.0\gav-app\PokeMoon\PokeMoon.Startup\bin\Debug\PokeMoon.Startup.exe"); '. Unfortunately the error does not seem to give me very much to go on, and I could not find anything online that helped resolve the issue. 

Below you have the details of the error and my code. Any help would be hugely appreciated.

 

Many thanks,

 

Error:

Test Name: Open_Application
Test FullName: UnitTestProject2.TelerikNUnitTest1.Open_Application
Test Source: C:\Users\e-ddcr\Documents\GAV\2.0\gav-app\PokeMoon\UnitTestProject2\TelerikNUnitTest1.cs : line 37
Test Outcome: Failed
Test Duration: 0:00:10,4944389

Result StackTrace:
at ArtOfTest.Common.Win32.Connector.InjectCode(IntPtr handle, String assemblyAndClass, String pipename, String pid, Boolean waitForDocument, Int32 waitForDocumentTimeout)
   at ArtOfTest.WebAii.Wpf.WpfWindow.ConnectToWindow(IntPtr handle, String pipename, String pid)
   at ArtOfTest.WebAii.Wpf.WpfApplication.get_MainWindow()
   at ArtOfTest.WebAii.Core.Manager.LaunchNewApplication(ProcessStartInfo pinfo)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewApplication(String path, String[] args)
   at UnitTestProject2.TelerikNUnitTest1.Open_Application() in C:\Users\e-ddcr\Documents\GAV\2.0\gav-app\PokeMoon\UnitTestProject2\TelerikNUnitTest1.cs:line 48
Result Message:
Test method UnitTestProject2.TelerikNUnitTest1.Open_Application threw exception: 
System.NullReferenceException: Object reference not set to an instance of an object.

 

Code:

using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.TestTemplates;
using ArtOfTest.WebAii.Wpf;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTestProject2
{
    /// <summary>
    /// Summary description for TelerikNUnitTest1
    /// </summary>
    [TestClass]
    public class TelerikNUnitTest1 : BaseWpfTest
    {

        private TestContext testContextInstance;

        public WpfApplication foo { get; private set; }

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>

        [TestMethod]
        public void Open_Application()
        {
            // Create my own Settings object and then modify the defaults
            Settings mySettings = new Settings();
            mySettings.ClientReadyTimeout = 60000;

            // Use my Settings object to construct my Manager object
            Manager myManager = new Manager(mySettings);

            // Launch the application instance from its location in file system
            WpfApplication foo = myManager.LaunchNewApplication(@"C:\Users\e-ddcr\Documents\GAV\2.0\gav-app\PokeMoon\PokeMoon.Startup\bin\Debug\PokeMoon.Startup.exe"); 

            //// Validate the title of the homepage
            //ArtOfTest.Common.UnitTesting.Assert.IsTrue(foo.MainWindow.Window.Caption.Equals("MainWindow"));
         
            Button np = foo.MainWindow.Find.ByName<Button>("New project...");
            np.User.Click();
        }
        
    }
}

 

David
Top achievements
Rank 1
 answered on 16 Sep 2016
7 answers
190 views

It looks like the RadPropertyGrid doesn't supply an ITypeDescriptorContext when invoking TypeConverters on a property (the context is alwayas null). This makes it impossible to use custom type converters that do things like provide custom standard values. Is this a known limitation, are there plans to add support for this?

 

Thanks

Stefan
Telerik team
 answered on 16 Sep 2016
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?