Telerik Forums
UI for WPF Forum
3 answers
294 views
See attached image. We have a button on our diagram nodes that lets us show more details about the node. The UI element expands thanks to some binding tricks in the template. However, as you can see, the connector follows its relative position. We would like to keep the connector at its original position in order to preserve the "arrow structure". If the arrows/connections start jumping around the user gets a little confused. Is this possible?

I sense that such a functionality requires some advanced template stuff. Please show us an example! Thanks.
Petar Mladenov
Telerik team
 answered on 08 Feb 2013
2 answers
278 views

I have a DataGrid that needs to be filtered programatically.  I populate the dependency grid with a ItemsSource with all my data in it.  When I select an item in a parent grid, I want this grid to filter showing the one or many dependency items. 

So, I'd figured out I can clear the FilterDescriptorCollection and add items to it in using this syntax.  Note FilterSettings = FilterDescriptorCollection:

aggregationGridView.FilterSettings.Clear();
foreach (AggregateDD child in aggregate.ChildList)
{
    FilterDescriptor filter = new FilterDescriptor(
         "AggregateID", FilterOperator.IsEqualTo, child.AggregateID);
    aggregationGridView.FilterSettings.Add(filter);
}

However, this seems to write a query that as AND instead of OR.  This is more the query I'd like to run:

( (AggregateID IsEqualTo 385 MC) OR (AggregateID IsEqualTo 386 MC) OR (AggregateID IsEqualTo 387 MC) OR (AggregateID IsEqualTo 388 MC) )

How do I add a new FilterDescriptor to the FilterDescriptorCollection as an OR?

Thanks for your help.

gans
Top achievements
Rank 1
 answered on 07 Feb 2013
1 answer
219 views
Is there a control that lets us set filtering on multiple controls? Preferably one where the user can set up expressions involving filter operators and fields. (Ex: all rows where column A's numerical values are more than 50 or column B's string values include 'operating'")
Rogério
Top achievements
Rank 2
 answered on 07 Feb 2013
1 answer
162 views
Hi.

i have a window with some Listboxes. I want to Drag a Item from the Listbox and drop it in in a Control on a UserControl,
which is dynamically loaded.

Is there any helpfull example somewhere? PLEASE

thanks
best regards
rene
George
Telerik team
 answered on 07 Feb 2013
15 answers
720 views
Hi,

I'm using VS2008 and Telerik V2012.2.912.35 and I have a proble with the PersistenceFramework. I have a RadWindow with a root control (TabControl with 3 TabItem) and when I launch my application again, in the Loaded event of my RadWindow, I load the RadWindow persistence file previously saved and when I try to click on my second TabItem, I fall in the following exception:

System.ArgumentOutOfRangeException was unhandled by user code
  Message="DisplayIndex out of range! Département\r\nNom du paramètre : displayIndex"
  Source="Telerik.Windows.Controls.GridView"
  ParamName="displayIndex"
  StackTrace:
       à Telerik.Windows.Controls.GridViewColumnCollectionInternal.CheckDisplayIndex(GridViewColumn column, Int32 displayIndex, Boolean isAdding) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumnCollectionInternal.cs:ligne 773
       à Telerik.Windows.Controls.GridViewColumnCollectionInternal.CheckDisplayIndex(GridViewColumn column, Int32 displayIndex) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumnCollectionInternal.cs:ligne 766
       à Telerik.Windows.Controls.GridViewColumnCollectionInternal.InitializeDisplayIndexes() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumnCollectionInternal.cs:ligne 612
       à Telerik.Windows.Controls.GridViewColumnCollectionInternal.get_DisplayIndexes() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumnCollectionInternal.cs:ligne 442
       à Telerik.Windows.Controls.GridViewColumnCollectionInternal.ColumnFromDisplayIndex(Int32 displayIndex) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumnCollectionInternal.cs:ligne 433
       à Telerik.Windows.Controls.GridView.GridViewCellsPanel.InitializeMeasureData() dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:ligne 355
       à Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:ligne 301
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       à System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Control.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Control.MeasureOverride(Size constraint)
       à Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewRowItem.cs:ligne 215
       à Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewHeaderRow.cs:ligne 234
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
       à Telerik.Windows.Controls.GridView.GridViewScrollViewer.MeasureOverride(Size constraint) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\ScrollViewer\GridViewScrollViewer.cs:ligne 180
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Border.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Control.MeasureOverride(Size constraint)
       à Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:ligne 6636
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Panels\RadDockPanel.cs:ligne 85
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       à System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       à System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.Controls.Control.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize) dans c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Panels\RadDockPanel.cs:ligne 85
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       à System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       à System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       à System.Windows.UIElement.Measure(Size availableSize)
       à System.Windows.ContextLayoutManager.UpdateLayout()
       à System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       à System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       à System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       à System.Windows.Threading.DispatcherOperation.InvokeImpl()
       à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       à System.Threading.ExecutionContext.runTryCode(Object userData)
       à System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       à System.Windows.Threading.DispatcherOperation.Invoke()
       à System.Windows.Threading.Dispatcher.ProcessQueue()
       à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       à System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       à System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       à System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       à System.Windows.Window.ShowHelper(Object booleanBox)
       à System.Windows.Window.Show()
       à System.Windows.Window.ShowDialog()
  InnerException:

Thank's
Tina Stancheva
Telerik team
 answered on 07 Feb 2013
6 answers
204 views
hello,

we have a RadGridView with some CheckBox columns defines as follows:

<telerik:RadGridView EditTriggers="CellClick" ItemsSource="{Binding Tickets">
    <telerik:RadGridView.Columns>
        <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsBooked}"/>
 <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsTaken}"/>
 <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsBusy}"/>
 <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsReady}"/>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>


I want to enable edit of all those columns in a single click.
I have managed to do so by setting each column with 

AutoSelectOnEdit="True" EditTriggers="CellClick"


However, when I try to apply them by style it doesnt work!

my style is defined as follows:
<Style TargetType="{x:Type telerik:GridViewCheckBoxColumn}">
    <Setter Property="AutoSelectOnEdit" Value="True"/>
    <Setter Property="EditTriggers" Value="CellClick"/>
</Style>


Please help!
Thanks, 
Omri.
Omri
Top achievements
Rank 1
 answered on 07 Feb 2013
5 answers
622 views
Let me start by saying I am new to DevTools and I have searched for several hours trying to find the answers to these questions. So here I am asking questions that probably have been answered elsewhere. If so just point me in the right direction.

I have an application that presents potentially large tables of read-only data to a user from a SQL Server 2012 database. The problem is that new rows are continually being added to the table and occasionally arbitrary rows in the table change due to external updates to the underlying database. I have external notification via a SQL Query Notification system when specific rows change or when new data is added to the table but I don't know how to best get these changes to the user interface.

I have a nice demo program running using a VirtualQueryableCollectionView linked to a wizard generated ADO.NET Entity Data Model object that becomes the DataContext for a RadGridView control. This code is almost directly copied from the Data Virtualization help. It seems to do a good job of paging through the table without excessive queries and without holding everything in memory. See the following code snips:

EntityConnectionStringBuilder ecb = new EntityConnectionStringBuilder();
ecb.Metadata = "res://*/SurveyModel.csdl|res://*/SurveyModel.ssdl|res://*/SurveyModel.msl";
ecb.Provider = "System.Data.SqlClient";
ecb.ProviderConnectionString = Database.MakeDataSource("DR1Search-bab33c3e-7117-4405-ad58-7b5f6fbfa4cd");
var entity = new MeasurementsEntities(ecb.ConnectionString);
var query = entity.MeasurementPoints.OrderBy(o => o.MeasurementID);
var view = new VirtualQueryableCollectionView(query) { LoadSize = 50 };
DataContext = view;

<telerik:RadGridView Name="radGridView1" ColumnWidth="*" DataLoadMode="Asynchronous" ItemsSource="{Binding}" Margin="0,45,0,0" />

Question 1: How do I trigger an update to the VirtualQueryableCollectionView and the RadGridView when new rows are added to the associated table without resetting the RadGridView and without re-querying rows that are already in the collection? One problem I want to avoid is that when a user is scrolling through the items in the RadGirdView using the up and down arrows I don't want the scroll position to reset every time a new row is added to the table. This system adds 1 row to the table every second.

Question 2: How can I update an item in the collection when the item changes in the table without re-querying a page of data or reseting the RadGridView? I already have the updated item data so all I really need to do is determine if the changed item is cached in the collection and update it. Also if the updated item is visible it needs to be updated in the RadGridView.

Question 3: This should be easy but I just haven't found the answer yet. Given the system described above, how do I scroll the RadGridView to make an arbitrary row in the underlying table visible? In this case I don't care about resetting the control or re-querying data. This only happens in response to a user action and it can take more time and resources to accomplish.

I don't require any automatic monitoring of database changes since I already have a change notification system built into my programs. All I need is to update the controls to be aware of the changes.

Thanks in advance,

Jesse
Vlad
Telerik team
 answered on 07 Feb 2013
1 answer
118 views
Simple problem, I am setting the RadListBox IsEnabled property to false. The selection in the list box no longer appears. This is not the same functionality as the default .net ListBox. Is there any way to achieve this?

**EDIT**

I apologize, this is not the default behavior of the ListBox but it can be styled to still show the selection through the generateditemscontainer template. RadListBox does not have this, is there a way to achieve this using the RadListBox?
George
Telerik team
 answered on 07 Feb 2013
1 answer
316 views
I use ReSharper 6.0 (6.0.2202.688) and I am having problems with getting resharper to resolve symbols at GridViewDataColumns:

As you can see, that ends up in pretty many warnings - which drowns out the real important stuff.

Any way to get around this?
Inger Marie
Top achievements
Rank 1
 answered on 07 Feb 2013
5 answers
123 views
Hi,

I defined reflection setting for RadCarousel  as follows:

'

 

 

 

<telerik:RadCarousel.ReflectionSettings>

 

 

 

 

<telerik:ReflectionSettings Angle="10"

 

 

 

HeightOffset="6"

 

 

 

HiddenPercentage="0.2"

 

 

 

Opacity="1"

 

 

 

Visibility="Visible" />

 

 

 

 

</telerik:RadCarousel.ReflectionSettings>

 

'
It has no effect on the display. Is it supposed to work only in certain cases? my ItemTemplate is an image. that should work?

thanks;

Harri.
Dimitrina
Telerik team
 answered on 07 Feb 2013
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?