Telerik Forums
UI for WPF Forum
4 answers
372 views
Hi,

Is it possible that the propertygrid content is filled with a class that has attributes, like
the winform propertygrid?

for example, I have a class from a winform application with some attributes that are shown
in a winform propertygrid
 some attributes are:

   [Category("Description")]
     
 or 
  [CategoryAttribute("Properties"), DefaultValueAttribute(false)]
or
[Category("Description"), Browsable(false)]   <- this one will not show up in the propertygrid

I noticed that I see all the properties for the class even the properties I don't want the user to see or fill

David.
david
Top achievements
Rank 1
 answered on 25 Aug 2011
2 answers
146 views
Hi,

Two issues with the WPF tileview:

1) I have a .xbap file integrated within a asp.net page (.xbap file is called thru iframe). Some changes has been done to the .xbap file and is getting reflected when you run the WPF application. But when the asp.net page is run from the client's end, the older version is populated. I have also replaced the .xbap file in the asp.net folder. 
"rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache"  when run from the cmd cleared the cache and the newer version was loaded. But it is tedious to do so everytime.
Do we have an option where we can automate this (whenever the URL is accessed, the newer version of .xbap is shown) rather than the client clearing the cache manually every time.

2) I need to remove the forward and back navigation keys shown as default above the tileview control. Couldnt find any property. Please let me know how to hide them.
Hemant
Top achievements
Rank 1
 answered on 25 Aug 2011
1 answer
82 views
HI,

I'm new to WPF and the Telerik Controls, Can anybody  help me with very simple sample to do the drag and Drop to RadTreeView.
I only need the OnDragQuery() code.

        If Me.RadGridView2 IsNot Nothing Then
            Dim selectedItems As IList = Me.RadGridView2.SelectedItem
            e.QueryResult = selectedItems.Count > 0
            e.Options.Payload = selectedItems
        End If

        e.QueryResult = True
        e.Handled = True
 I used the above code to do so, but i'm not getting the actual data to tree view rather the name of the class of which the content of Gridview is made.

I need a small example with static data .

regards,

Swaroop
Maya
Telerik team
 answered on 24 Aug 2011
1 answer
160 views
Hi Telerik,

I have added a BusyIndicator to my main form and have it incapsulating my RadDocking, menu etc.

I works like a charm.

However ;-) - if the user undocks a window before running a 'busy-ecapsulated' function, the undocked window will still be accessible during the long-running function.

Is there a recommended way of handling this situation?

Thanks,

Anders, Denmark
Yana
Telerik team
 answered on 24 Aug 2011
1 answer
128 views
Hi, i add mappinpoins via codebehind from datatable. I need add information from ReverseGeocodeRequest. How loop all mappinpoints from my radmap control?

Thanks
Andrey
Telerik team
 answered on 24 Aug 2011
8 answers
503 views
There is a RadDocking.PaneStateChanged event, but it does not carry information about the old and new states. I need to detect a condition when a Pane becomes a floating pane. How can it be done?
Also, perhaps there is a preview event to cancel the change?
Thanks
 
Frank
Top achievements
Rank 1
 answered on 24 Aug 2011
1 answer
140 views
I have a situation where I have a RadcarouselPanel set as the itemPanelTemplate of a RadCarousel.  Is there a way to wrap the RadCarouselPanel in a scrollviewer when it is used this way?  I'd still like to use a traditional scroll bar as the navigation method as opposed to the buttons supplied with the RadCarousel.  I also want to use the scrollviewer's scroll event so I can determine when the items have been moved. Is this possible?
Dimitrina
Telerik team
 answered on 24 Aug 2011
3 answers
153 views
If the RadRibbonGroup is Collapsed the AcessText does not display. This can been seen in the demo supplied with the product, but setting the Variant priority to 0 for Collapsed in the tabs of the "Telerik Word". Using the AccessKey to select the Tab, shows the AccessText for all the menu option on RadRibbonGroups that are expanded, but not for the groups that are collapsed.

Is there something special that should be done to get this to work correctly?

Thanks
Kendrew
Petar Mladenov
Telerik team
 answered on 24 Aug 2011
1 answer
155 views
I am trying to set a date format for my definitions. I get an exception. What is the problem? Is this a bug?
private void SetTimeFormat(ViewDefinitionBase baseView)
        {
            if (baseView.GetType() == typeof(WeekViewDefinition))
            {
                //((WeekViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                //((WeekViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
                //((WeekViewDefinition)(baseView)).TimerulerMinorTickStringFormat = ":{0:mm}";
            }
            else if (baseView.GetType() == typeof(DayViewDefinition))
            {
                //((DayViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                //((DayViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
                //((DayViewDefinition)(baseView)).TimerulerMinorTickStringFormat = ":{0:mm}";
            }
            else if (baseView.GetType() == typeof(TimelineViewDefinition))
            {
                ((TimelineViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                ((TimelineViewDefinition)(baseView)).TimerulerGroupStringFormat = "";
                ((TimelineViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
                ((TimelineViewDefinition)(baseView)).TimerulerMinorTickStringFormat = ":{0:mm}";
            }
            else if (baseView.GetType() == typeof(MonthViewDefinition))
            {
                //((MonthViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                //((MonthViewDefinition)(baseView)).TimerulerGroupStringFormat = ":{0:mm}";
                //((MonthViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
            }

System.FormatException: Input string was not in a correct format.
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Telerik.Windows.Controls.ViewDefinitionBase.FormatTimerulerTickContent(IFormatProvider formatInfo, TickData tick)
   at Telerik.Windows.Controls.MultidayViewDefinition.FormatTimerulerTickContent(IFormatProvider formatInfo, TickData tick)
   at Telerik.Windows.Controls.ViewDefinitionBase.FormatTimerulerItemContent(IFormatProvider formatInfo, ITimeRange data)
   at Telerik.Windows.Controls.ScheduleView.TimerRulerItemProxy.UpdateData(IFormatProvider formatInfo, ViewDefinitionBase tickFormatProvider)
   at Telerik.Windows.Controls.TimeRulerPanel.PrepareItem(TimeRulerItemBase item)
   at Telerik.Windows.Controls.RecycleHelper`1.PrepareItem(Int32 index)
   at Telerik.Windows.Controls.RecycleHelper`1.PrepareItems(IValuesContainer indexTree, DateTime startDate, DateTime endDate)
   at Telerik.Windows.Controls.TimeRulerPanel.PrepareItems()
   at Telerik.Windows.Controls.TimeRulerPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.ScheduleViewBase.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   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.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(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.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   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.WrappedInvoke(Delegate callback, 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.Application.RunInternal(Window window)
   at System.Windows.Application.Run()
   at Metrix.UI.App.Main() in C:\Users\rodneyy\Documents\MetrixDevelopment\MetrixDevelopment\Client\Metrix.UI\obj\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
   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()

Yana
Telerik team
 answered on 24 Aug 2011
1 answer
162 views
Hi Team,

You rock.

Please help me too....
I  have a string property which has data in below format 

<MyData xmlns=http://schemas.microsoft.com/win/2004/>
<Tournament>
<Venue Name='Delhi' id='{123-345-567}' 
Duration='15 Days'/>
<SportID Participants='16384'>1111</SportID>
<Title>Football</Title>
<Level>Semifinal</Level>
<RedCards>0</RedCards>
<YellowCard>0</YellowCard>
<GreenCard>5</GreenCard>
<Duration SystemTime='2011-08-02'/>
<Sponser/>
<Refree Name='Karlos' Experience='2 Years'/>
<Security/>
</Tournament>


<TournamentData>
<Data Name='param1'>200 Teams</Data>
<Data Name='param2'>running</Data>
<XYZ>57</XYZ>
</TournamentData>


</MyData>

I want to display this data in radtreeview with proper parent child relation ship.

Please note that i am using MVVM pattern.

Any help would be highly appreciated.

Thanks in advance.



Petar Mladenov
Telerik team
 answered on 24 Aug 2011
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?