Telerik Forums
UI for WPF Forum
1 answer
73 views
Are there plans for porting Map control into Windows 8?
Andrey
Telerik team
 answered on 13 Jul 2012
5 answers
132 views

I am creating a form where the columns will be created and recreated dynamically.
The user selects a predefined view with sorting, filtering and grouping.
He then enters filter criterias and retrievs data from a service.
The problem occurs when the user selects another view which may contain other columns.
At that point the column collection is cleared and the ItemsSource is set to null but this
seems to cause exceptions in the filtering mechanism. I can't figure out how to get around this problem.
I am using the new FilterRow but I think the problem also affects the popup mode.

The code below illustrates the problem when theButton is pressed TWICE.

        private void theButton_Click(object sender, RoutedEventArgs e)
        {
            radGridView1.Columns.Clear();

            // Create grid columns
            radGridView1.Columns.Add(new GridViewDataColumn() { Name = "A", DataType = typeof(string),
               DataMemberBinding = new Binding("A") });

            radGridView1.Columns.Add(new GridViewDataColumn() { Name = "B", DataType = typeof(string),
               DataMemberBinding = new Binding("B") });           

            // Create dummy data
            DataTable dataTable = new DataTable();
            dataTable.Columns.Add("A", typeof(string));
            dataTable.Columns.Add("B", typeof(string));
            dataTable.Rows.Add(new object[] { "0A", "0B" });
            dataTable.Rows.Add(new object[] { "1A", "1B" });
            radGridView1.ItemsSource = dataTable;

            // Filter data
            radGridView1.Columns["A"].ColumnFilterDescriptor.FieldFilter.Filter1.Value = "0";
            radGridView1.Columns["A"].ColumnFilterDescriptor.FieldFilter.Filter1.Operator =
               Telerik.Windows.Data.FilterOperator.Contains;

        }

The second time the button is pressed the following exception occurs:

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.GridView
  StackTrace:
       at Telerik.Windows.Controls.GridView.FieldFilterControlViewModel.RefreshEditorIsEnabled()...

Konstantina
Telerik team
 answered on 13 Jul 2012
7 answers
173 views
ok...this "throw away line" in teh documentation for custom appoitnemnts in radcheduleView has me tearing my hair out

Now that we have our custom IsDone property, let's add a CheckBox for it and bind to it. First, you need to generate the code for the EditAppointment dialog from Expression Blend. Then, add the following snippet in the ControlTemplate of the dialog: 


Well the themes fail to load in blend, complaining about the reference to 
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"

So what's the easiest way to extract the metro style EditAppointment dialog?


[Even a sample project of the FULL code described in the documentation would help]
Vladi
Telerik team
 answered on 13 Jul 2012
1 answer
198 views
When I included the Telerik RAD components into my current project I started getting some new folders rendered into the output directory (see attached image).

I have a custom (XML-based) localization solution running so I don't need this feature. How can I configure Telerik libraries NOT to produce these folders?
Maya
Telerik team
 answered on 13 Jul 2012
1 answer
128 views
I'm having some issues implementing this in general, so I was wondering if the RDP had some support for this built in?  How can I configure it so that, for example, left/right moves to the previous record/next record?
Nick
Telerik team
 answered on 13 Jul 2012
5 answers
372 views
Hi,

Is it possible to change the orientation of just one of the pages in a document or must all pages be arranged with the same orientation?

Thanks,

Rob
Robert
Top achievements
Rank 1
 answered on 13 Jul 2012
1 answer
128 views
I have a screen with a gridview on it where the user can select a row and it populates information on the screen.  In the edit section I have created a Next and Previous button
private void NextButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {           
            GeneralLedgerGridView.Items.MoveCurrentToNext();
            var selectCommand = RadGridViewCommands.SelectCurrentUnit as RoutedUICommand;
            selectCommand.Execute(null, this.GeneralLedgerGridView);
        }

The problem is is if the user clicks on a row with the mouse then hit the previous or next button the application seems unaware of the current row that was selected by the mouse click.  How do I set the Currentrow info on a mouse click.
Eric Klein
Top achievements
Rank 1
 answered on 12 Jul 2012
2 answers
298 views
Hello,

I have dock that starts out docked right.  When I undock it, and try to add it to the document host (center) on the right side, I get a null reference exception before I even realease the mouse.  The exception detail is listed below, as well as a shortened version of the docking I am using.  Any idea why this might happen?

EDIT: Using Q2, WPF, .Net 4.0

Thanks,
Eric

<telerik:RadDocking Grid.Row="1" x:Name="radDock"
                            telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True"
                            BorderThickness="0"  Padding="0" Visibility="Hidden">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadPaneGroup x:Name="MainGroup">
                    <telerik:RadPane x:Name="GanttPane" Header="Build Directories" ContextMenuTemplate="{x:Null}">
                        <Grid>
                       </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="300,800" x:Name="RightContainer" InitialPosition="DockedRight">
                <telerik:RadPaneGroup x:Name="RightGroup">
                    <telerik:RadPane x:Name="DirInfoPane" Header="Directory Information" IsHidden="True">
                        <ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                        </ListBox>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
</telerik:RadDocking>


System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.Docking
  StackTrace:
       at Telerik.Windows.Controls.RadDocking.GetElementPositionAtScreenRoot(FrameworkElement element) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1473
       at Telerik.Windows.Controls.RadDocking.GetCuePosition(RadPaneGroup targetGroup, DockPosition position, Size draggedElementRelativeSize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1370
       at Telerik.Windows.Controls.RadDocking.AdjustCueSizeAndLocation(Size draggedElementRelativeSize, Size draggedElementInitialSize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 1385
       at Telerik.Windows.Controls.RadDocking.OnDragContainer(RadSplitContainer container, Point globalMousePosition) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 389
       at Telerik.Windows.Controls.RadDocking.OnToolWindowDrag(ToolWindow window, Point globalMousePosition) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 276
       at Telerik.Windows.Controls.Docking.ToolWindow.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Parts\ToolWindow.cs:line 522
       at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1267
       at Telerik.Windows.Controls.InternalWindow.WindowHostBase.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowHostBase.cs:line 85
       at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.OnWindowPositionUpdating(Rect windowPosition) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowChrome\ChromelessWindowHelper.cs:line 350
       at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleMoving(IntPtr hwnd, IntPtr wParam, IntPtr lParam, Boolean& handled) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowChrome\ChromelessWindowHelper.cs:line 551
       at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowChrome\ChromelessWindowHelper.cs:line 857
       at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  InnerException:
Eric
Top achievements
Rank 1
 answered on 12 Jul 2012
0 answers
157 views
Hi,

How to bind radGridview directly from a dataReader, without the need to fetch to an intermediate DataTable or object List.
I have an inmemory database (SQLLite) and need to bind directly to a table.

Thanks
imad
Top achievements
Rank 1
 asked on 12 Jul 2012
3 answers
229 views
I'm currently using the mvvm pattern along with the Timeline to display time based information.
I can't seem to find a good way of displaying the varying sets of data with a preset zoom level.

Sometimes, the dataset will contain values that are within seconds of one another. In this case, I would want to zoom level to show 6 gaps of 10 seconds. Other times, my dataset may have values that are minutes within one another or hours within one another. I would want the zoom level to be lower so that I can see all of the data at the first glance.

Using the mvvm pattern, I set RadTimeline.Intervals once in the XAML but they don't necessarily suit my needs for all the varying sets of data.

For example, say my Intervals are:
<telerik:MinuteInterval/>
<telerik:SecondInterval/>

I then set the Start and End periods to be that of the first and last data point.


Is it possible to change the Interval time depending on the data that is being displayed?
Robert
Top achievements
Rank 1
 answered on 12 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?