Telerik Forums
UI for WPF Forum
5 answers
202 views
Hi everyone,
I have a radgridview with 2 comboboxcolumn, (product and package )when the user add new ítem and select ítem from the first combobox(product) should fill the second combobox with records associated with the first combobox selected ítem.

i working with mvvm pattern i was try with itemsourcebinding but doesn't work because in the itemsource's grid is empty
thanks in advance
Willy
Maya
Telerik team
 answered on 02 Apr 2013
4 answers
334 views
I am using RadTiles in my project, and as a requirement I need to implement enable/disable of tiles (means visible/hidden respectively), But I am getting strange exception in My TileViewPanel.cs. "Sequence contains no elements", when I set visibility of all tiles to false. I have tried with latest assemblies of Telerik i.e. Q1 2013. but no difference.

private void Button_Click(object sender, RoutedEventArgs e)
        {
            
try
            {
                
for (int i = 0; i < 3;i++ )
                    ((RadTileViewItem)firstTileView.Items[i]).Visibility = System.Windows.Visibility.Hidden;
            }
            
catch (Exception ex)
            {
                
throw ex;
            }
           
        }

When I press the Hide 1 button as in screen shot, I get the following exception.

   at System.Linq.Enumerable.Average(IEnumerable`1 source)
   at System.Linq.Enumerable.Average[TSource](IEnumerable`1 source, Func`2 selector)
   at Telerik.Windows.Controls.TileViewPanel.TryToRecalculatePositonsAndOffsets() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TileView\TileViewPanel.cs:line 1120
   at Telerik.Windows.Controls.TileViewPanel.MeasureRestoredChildren(Boolean isVirtualized, Int32 row) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TileView\TileViewPanel.cs:line 1087
   at Telerik.Windows.Controls.TileViewPanel.MeasureItems() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TileView\TileViewPanel.cs:line 979
   at Telerik.Windows.Controls.TileViewPanel.MeasureOverride(Size availableSize) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TileView\TileViewPanel.cs:line 398
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   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.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at TileViewDnD.App.Main() in C:\Users\m.iqbal\Desktop\362970_TileViewDnD\362970_TileViewDnD\362970_TileViewDnD\TileViewDnD\TileViewDnD\obj\x86\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()


Please help me out?
Muhammad Ummar
Top achievements
Rank 1
 answered on 02 Apr 2013
3 answers
232 views
Hi,

How can I use a RadDiagramContainerShape with a mvvm datababing in a RadDiagram

Regards

Laurent
Pavel R. Pavlov
Telerik team
 answered on 01 Apr 2013
0 answers
106 views
Hi,
 We need to set the width of the columns in RadGridview from a xml file. It is working fine in WPF datagrid. And also it is working fine in RadGridview in visual studio design mode but in run time the widths are not taken from the xml file. Find the code below

--data1.xml
<?xml version="1.0" encoding="utf-8" ?>  
<DatagridColumns xmlns="">
    <DatagridColumn Case_ColumnWidth="150" />
    <DatagridColumn Order_ColumnWidth="100" />
    <DatagridColumn IPName_ColumnWidth="150" />
</DatagridColumns>

--RAdGridview code (Main window)
<Window x:Class="TelerikGridviewColumnWidth.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.Resources>
            <XmlDataProvider x:Key="xmlProvider" Source="XML/data1.xml" XPath="/DatagridColumns/DatagridColumn"/>
        </Grid.Resources>
 
        <telerik:RadGridView AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Case" Width="{Binding Source={StaticResource xmlProvider}, XPath=//@Case_ColumnWidth}" />
                <telerik:GridViewDataColumn Header="Order" Width="{Binding Source={StaticResource xmlProvider}, XPath=//@Order_ColumnWidth}" />
                <telerik:GridViewDataColumn Header="IpName" Width="{Binding Source={StaticResource xmlProvider}, XPath=//@IPName_ColumnWidth}"/>
                </telerik:RadGridView.Columns>
 
        </telerik:RadGridView>
    </Grid>
</Window>

Let us know how to configure the column widths from xml file

Thanks,
Parthasarathy  K.
Parthasarathy
Top achievements
Rank 1
 asked on 01 Apr 2013
2 answers
156 views
Hi Telerik!

I have successfully implemented the RadDiagram into my application and I am dynamically loading data to populate the Shapes and Connections via my GraphSource. This works perfectly! The only issue I have left is that when I load the application, each Shape is now stacked on top of each other. I can move them around individually and all of the Connections are correct and it looks great once they have been moved manually. I was wondering if you have run into this problem before. I believe it has something to do with the TreeLayoutSettings but after inspecting them in the code behind it looks like the default settings have been loaded but I could be wrong. I have also tried initializing a different TreeLayoutSettings object and tried to set my "Root/Parent Node" via the Shapes[0] index and this still shows unexpected results (all shapes stacked on top of each other). This is the last hurdle I have to complete this application, and any help would be appreciated. Thank you! :)

Jacob
Jacob
Top achievements
Rank 1
 answered on 01 Apr 2013
4 answers
136 views
I am attempting to persist a gridview with custom filteringer.  I am using the GridViewCustomPropertyProvider class in your example and see that I am hitting the ProvideValue method but in the if condition for FilterDescriptors I have no ColumnFilterDescriptor which IsActive is true.  If I remove my custom filter I do find the IsActive column.

 

My custom filter does function get applied to the grid as I am implementing the IFIlteringControl.  I also do have an IsActive DependencyProperty on my class.  In fact, the basis for my custom control was from your example code as well.

Is there some issue with using the PersistanceManagers Save method when the filter is a custom filter or am I missing something?

Thanks

Paul
Paul
Top achievements
Rank 1
 answered on 01 Apr 2013
1 answer
104 views
I am trying to figure out how to get the Treeview to ignore the SelectedUnfocused VisualState. I am also trying to use the Windows8Theme with my project as well. When ever I try to edit the template, I always get the default colors. I would also like to be able to have the ability to change the theme at any given time. Is there an option I am missing that can enable and disable that function?

I am sorry if this is a duplicate, I did look to see if anyone else was having this exact issue. :)

Thanks
ZS

 

 

 

Pavel R. Pavlov
Telerik team
 answered on 01 Apr 2013
5 answers
494 views
Hi all,

I am currently using the RadGridView with the IDataErroInfo interface to perform validation with my View Model.

This is currently working as expected but I would like to change the cell validation style, in particular the tooltip and the how the red border around the cell works.

I would like to continue to use the IDataErrorInfo interface for the validation but just change the error template being used (rather then to start building cell template selectors for example)

Thanks in advance!
Yoan
Telerik team
 answered on 01 Apr 2013
4 answers
92 views
I have a HierarchyChildTemplate which contains a TabControl.  The model driving content for to the HierachyChildTemplate has collections to drive the content in each TabControl.  The issue is when there is a change to a collection driving one of the tabs the tab fires the SelectionChanged event.  One of these tab items holds the the FlowDocumentReader control so the SelectionChanged cannot be bubbled up and caught by the TabControl.  The update to the data is reflected correctly by the way.

I replaced the Microsoft TabControl with the RadTabControl in hopes that your control will have special handling for this, like the additional support you provide with the IsContentPreserved property.  However, I see no default handling for this and find nothing within the RadTabControl I can use to deal with this.

How can I keep the tab fro changing to index 0 every time there is a change?

Thanks

Paul
Paul
Top achievements
Rank 1
 answered on 01 Apr 2013
10 answers
300 views
I do not see a way of zooming using touch without adding code on my part.  I hope that full touch manipulations would be added in a future release.  In the mean time, any examples showing the easiest way in your opinion to add a simple two finger zoom would be nice.

An example of how to bind DocumentSource to a string, would also be nice.  I see a reference to a PdfDocumentSourceConverter in the docs, but I see no examples of how to use it, nor any clues as to what xlmns namespace we have to expose to see it. 

I would also like to understand what if anything we need to do to clean up when we switch DocumentSources. 

The documentation on this control is pretty sparse. 

Thanks
Paul
Kammen
Telerik team
 answered on 01 Apr 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?