Telerik Forums
UI for WPF Forum
5 answers
263 views
Hi,

I would like to bind the visibility property of an annotaiton to a property of my DataContext binded to a checkbox.
It seems that setting the Visibility property of an annotation has no effects.
Is it a bug ? Do i need to remove it from annotation's collection and reinsert it ?

Regards.
Jean-Pierre
Top achievements
Rank 1
 answered on 21 Jan 2013
5 answers
997 views
I've created a DropDownButton which has a sequence of checkboxes and a ok/cancel button pair in the dropdowncontent. The dropdowncontent is not supposed to close unless I click one of the buttons, hit escape, return or click outside the dropdowncontent.

However, the dropdowncontent closes whenever I click the background on the dropdowncontent - which I do occationally because checkboxes are small and hard to hit when in a hurry.

How do I prevent the DropDownContent from disappearing when I click it's background (that is, the grid which holds the entire thing)?

Thanks!
Simon
Top achievements
Rank 1
 answered on 21 Jan 2013
0 answers
80 views

Hello.

I have some custom control (inherits from Control class) and I need to style it as RadWindow (It's need for Mdi window in canvas control). How can I style the control? And how can I save changing theme function on it? Maybe I can use telerik brushes?

Thanks.

Anton
Top achievements
Rank 1
 asked on 20 Jan 2013
0 answers
139 views
I am using version 2012.1.326.35.

I have a RadGridView with a DataTable dt as ItemsSource. The RadGridView appears to render the initial column specification correctly and also recognize the row changes. However, when I update the columns, then I notice that addition and removal of columns are not recognized in the RadGridView.

This is how I refresh my DataTable:

================================================
public void updateData(SomeCustomDataSource data)
dt.Clear();
int num_cols = model.Columns.Length;
for (int i = 0; i < num_cols; i++)
{
SomeCustomColumn c = data.Columns[i];
if (!dt.Columns.Contains(.Name)) // Adding columns not previously existing
{
DataColumn col = CreateDataColumn(c);
dt.Columns.Add(col);
}
}
dt.AcceptChanges();
RefreshGrid(); // Plain old OnPropertyChanged("DataSource");
================================================
I'd like to note that this is just some dummy code. In the actual code I wanted to use, I called dt.Columns.Clear() and re-added every single column on data update. And what happens in that case is that none of the columns changed but when I click on the "click to add new row" row insertion thing, I get a "[Column] does not belong to Table [Table]" ArgumentException, which implies the internal data is not actually refreshed in the RadGridView even though the rows are updated correctly.

Again, if you want my license key in order to provide support, I'd be happy to provide it.
New
Top achievements
Rank 1
 asked on 18 Jan 2013
3 answers
131 views
Hello,

we are using Telerik WPF Controls Version Q2 2011 0920.

We have a scenario where we want to programmatically move TileViewItems from one TileView to another. This is done by removing the item from the RadTileView.Items Collection and adding it to the other in code behind.
The issue is that the header is disappearing if we do that (plain text defined in XAML with HEADER Property) and is doesn't come back if we move the TileViewItem back to the original TileView.

Update: Header-Property is correct after the move but the UI isn't showing anything.

Thanks,

Thomas
Zarko
Telerik team
 answered on 18 Jan 2013
1 answer
133 views

I do not even know where to start with this. I can build a tree that has parents and children, but I cannot figure out how to make it where it is not always symmetric. This is a validation tree so it tells the user error messages. For example, it should look like this:


    Object ID (Main Property)
    - Must start with a number (Description)
    Employee Name (Main Property)
          Employee 1 (SubProperty)
                - Cannot be blank (Description)
          Employee 2 (Subproperty)
                - Cannot be blank (Description)

Any help with this or something that would lead me in the right direction would be helpful. This is my first time working with trees in WPF/C# so please be kind haha.

Tina Stancheva
Telerik team
 answered on 18 Jan 2013
2 answers
135 views
Hi,

I am seeing two different behaviors from RadGridView control for WPF when I use the SelectAll function from two
different versioned libraries (Version: 2011.3.1116.40 & Version: 2012.2.912.40).

In my example I have a RadGridView which I populate with some dummy data. I have added a RowDetailsTemplate
which is Visible when the row is selected. Everything works consistently in both libraries when the row details are
selected one at a time. But when I make use of the SelectAll function I see that the row highlight is missing with
the new versioned library

Images are attached
Mark
Top achievements
Rank 1
 answered on 18 Jan 2013
1 answer
179 views
When I drag a new appointment onto the schedule view the default length is always set to 1 hour and and I can not adjust it until the OnEndEdit is fired off. Is there any way to adjust this length during either the AppointmentEditing or AppointmentSaving events?
Yana
Telerik team
 answered on 18 Jan 2013
4 answers
148 views
Hi guys,

I have a strange problem, I'm using the telerik wpf docking controls version 2012.3.1203.40 with VS2012 when my touchscreen is connected to my pc by USB (touchscreen: iiyama prolite T2250MTS) the RadDockingAutomationPeer throw an nullreference exception on loading.
If the touchscreen is not connected everything works just fine.

I tried to create a testproject for you, but the testproject throws an ArgumentNullException in the RadTabControlAutomationPeer, in this project I'm not using the RadTabControl.
And again if the touchscreen is not connected everything works fine.

The workaround is easy, just disconnect the touchscreen :-). For now this is my workaround, but it is no solution

Can you check it out?

How do I upload my test project?

David.
david
Top achievements
Rank 1
 answered on 18 Jan 2013
4 answers
428 views

telerik RadDocking vs. Prism problems

 

The telerik RadDocking vs. Prism problems are a “show stopper”.  I have invested over fifty hours and cannot get Prism ViewInjection (regionManager.RequestNavigate) to work with telerik RadPanes.

 

Injected telerik RadPane views appear when they are first injected, but the Prism ConfirmNavigationRequest methods are only ever called on the first Injected View.  The same methods on the other ones never fire, and no existing view ever becomes the top view when navigating back.  The top view is ALWAYS the last view injected.  I tried getting a reference from the view model to the view to force the view to the top layer (Bad developer - I know!), but I cannot get a handle to the telerik RadPane views from my view models because they are registered without a Name as a result of using MEF and Prism RequestNavigate.

 

I expected telerik to give me productivity gains, but right now telerik has been a huge drain on my productivity.  In a few more hours I am going to tell my client I cannot get the product built using telerik RadDocking.

We are using VS2010 SP1, .NET 4, WPF, telerik Apr 19, 2011 Q1 2011 SP1 (version 2011.1.0419), Prism 4.

 

Sincerely, Joe

 

ShellView.xaml:

<telerik:RadDocking Padding="0">

  <!-- NavigationRegion -->

  <telerik:RadSplitContainer InitialPosition="DockedLeft">

    <telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static inf:RegionNames.NavigationRegion}"

    IsManipulationEnabled="False"/>

  </telerik:RadSplitContainer>

  <!-- ActionsPaneRegion -->

  <telerik:RadSplitContainer InitialPosition="DockedRight">

    <telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static inf:RegionNames.ActionsPaneRegion}"/>

  </telerik:RadSplitContainer>

  <!-- WorkAreaRegion -->

  <telerik:RadSplitContainer InitialPosition="DockedTop" telerik:DockingPanel.InitialSize="556,717">

    <telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static inf:RegionNames.WorkAreaRegion}" 

    IsManipulationEnabled="False"/>

  </telerik:RadSplitContainer>

</telerik:RadDocking>

 

NavigationViewModel.cs:

workAreaRegion.Context = selectedTreeViewItem;
UriQuery query = new UriQuery();
query.Add("Action""Edit Level");
regionManager.RequestNavigate
(
  RegionNames.WorkAreaRegion,
  new Uri(ViewNames.MarketPropertiesView + query.ToString(), UriKind.Relative),
  a => { }
);

 

WorkAreaViewModel.cs:

#region ConfirmNavigationRequest
 
public void ConfirmNavigationRequest(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext, 
  System.Action<bool> continuationCallback)
{
  // Use this interface if you want to prevent the user from navigating 
  // away from a view before the view is completed. 
  continuationCallback(true);
}
 
public bool IsNavigationTarget(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
{
  // A value of true indicates that this View/ViewModel is the one to handle this navigation request. 
  return true;
}
 
public void OnNavigatedFrom(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
{
  // Use this event for logic BEFORE navigation leaves this View/ViewModel 
  // For example, record which UI control has focus so that when the view is navigated back to,  
  // focus can be restored to the UI control that previously had focus. 
  return;
}
 
public void OnNavigatedTo(Microsoft.Practices.Prism.Regions.NavigationContext navigationContext)
{
  // Use this event to initialize/refresh this View/ViewModel. 
  // Use this method to initiate loading of data and to restore focus to the  
  // UI Control that had focus when the object was navigated away from. 
 
  if (isFirstTime == true)
    isFirstTime = false;
 
  // Get passed NavigationContext URI parameters. 
  if (navigationContext != null)
    Action = navigationContext.Parameters["Action"];
 
  return;
}
 
#endregion ConfirmNavigationRequest

 

George
Telerik team
 answered on 18 Jan 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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?