Telerik Forums
UI for WPF Forum
1 answer
144 views
Hi,

we're not happy with the gradient in Blue Theme of RadOutlookbar. So we want to have no gradient in the ItemTemplate of the OutlookBar.
Bright icons are hard to see clearly.

How can i edit the gradient of the ItemTemplate.
I tried to set a new ItemTemplate, but it stays gradient like in the skin.

Best regards,

David
Pavel R. Pavlov
Telerik team
 answered on 07 Dec 2012
1 answer
251 views
If you take a look at the Demo of PanelBar (http://demos.telerik.com/silverlight/#PanelBar/FirstLook) that is essentially what I want, but with the added functionality of collapsing the entire PanelBar to Left and information on the right expanding to the left. With just a button or something to re-expand the menu.

Apologies if there was a more appropriate area to post this, as this was my best guess.
Stefan
Telerik team
 answered on 07 Dec 2012
1 answer
92 views
Hi,

I am attempting to recreate the print and export example for WPF in my code. I have the PrintAndExportWithRadDocumentModel and Commands, and in my XAML I have 

<Window.Resources>
    <local:PrintAndExportWithRadDocumentModel x:Key="context" />
  </Window.Resources>

and 

<telerik:RadButton Content="Export"
        Height="40"
     Width="50"
        Command="{Binding ExportCommand, Source={StaticResource context}}"
        CommandParameter="{Binding}" />
<telerik:RadButton Content="Print"
        Height="20"
     Width="50"
        Command="{Binding PrintCommand, Source={StaticResource context}}"
       CommandParameter="{Binding}" />

However, when I click on the button I get a null object parameter in the Print method (in the PrintAndExportWithRadDocumentModel class). My question is, how do I bind the RadGridView to the button click so it gets passed as the parameter?





Vlad
Telerik team
 answered on 07 Dec 2012
4 answers
87 views
I have a problem with my TreeListView not responding the INotifyCollectionChanged events immediately.

When a user requests to change the order of a node, my code will remove and then reinsert all of the children of the node into a different position with a different display name. But the tree list view still displays the children in the old order and with the old name. If I expand some unrelated node, the children will change to the new order and the new display names.
Is there a way to get the tree list view change immediately?
My ItemsSource is an IQuerable against an ObservableCollection. It looks like this:
Public ReadOnly Property Children As IQueryable(Of BaseLimb)
  Get
    Return pGrouper.Children.Select(Function(e) e.Owner).AsQueryable
  End Get
End Property

I had other problems when I just may it an IEnumerable.
Is there some else I should be doing to make the change immediate?




Vlad
Telerik team
 answered on 07 Dec 2012
1 answer
119 views
I have a set of tabbed views that correspond to RadTreeViewItems so that when the treeViewItem is clicked, the correct tab is selected and when a different tab is clicked, the correct treeViewItem is selected.  I am binding to the RadTreeViewItem.Command property so that I am notified when the user clicks on the treeViewItem..

The problem is that programmatically changing the IsSelected property of a treeViewItem does not "reset the active" treeViewItem, meaning that the original treeVIewItem will not fire its Command when the user clicks on it.  Visually, everything looks correct, but I don't know how to notify the treeview that I programmatically changed the active treeViewItem.

Example, the user clicks on treeViewItem1 --> treeViewItem1 highlights and then highlights tab1.  The user then selects tab2 --> tab2 highlights and treeViewItem2.IsSelected is set to true.  When the user clicks back on treeViewItem1, its Command is not fired. 

Additionally, I do not want the treeViewItem that is programmatically set as IsSelected to fire its Command.  That would cause in infinite loop in my current code.
Ricky
Top achievements
Rank 1
 answered on 06 Dec 2012
0 answers
118 views
Hi,

We created a custom column (based on GridViewBoundColumnBase using the CreateCell* methods to create the various controls) to display a TextBox and a RadButton.  The purpose of the button is to show a modal window to display the content of the TextBox (because our TextBox cannot not accept multilines).

 Here an example of what we're doing:

|    SSN       |  Another column  | My Custom column |
--------------------------------------------------------------
|                  |                             |  *Text Box*   |Button|   <----- New Row
--------------------------------------------------------------
| 111111111 |                             |  *Text Box*   |Button|
--------------------------------------------------------------

There is a validation on the mandatory SSN column.


First implementation
Both the Cell and cell edit template define the button with IsEnabled = true.

  • When we click on the button on row #2, the Click Event of the button is triggerred (showing our modal window).  Then, the row validating of the first row is fired.  This leaves us in a bizarre situation where our modal shows info from the second row while the grid marks the first row with validation errors.

Second implementation
The button in the Cell Template is IsEnabled = False and the one in the CellEdit is IsEnabled=true.

In this scenario, when we click on the disabled button on row #2, the validation of row #1 is triggered.  The focus on row #2 is set only when row #1 is valid. 

However, on row #2 when the Cell Edit template is shown, the focus is set to the first control (Textbox)...

In the second approach, there are 2 problems: 1 - The "click" is not sent to the "Cell Edit" button AND 2 - the "Cell" button is disabled (at first, the user thinks that the button is not accessible.

--------------------------------------------

With that in mind, is there a way to this :

  • In the first implementation, is there a way to trigger Validation of the first row within our Custom column and giving back the focus on row #1;
  • In the second implementation, is there a way to visually make the the RadButton looks like an Enabled button event when disabled AND is there a way to catch the click on the disabled button and to trigger it on the enabled button;
  • A new and better implementation ;-)

Thanks.
-----------------------------------------------------

Using version: 2012.2.607.35 with WPF
Michel Loubier
Top achievements
Rank 1
 asked on 06 Dec 2012
1 answer
180 views
Hello everyone,

I'm using ChartView control and getting a wierd out of memory exception when messing with minimum of DateTimeContinuousAxis on the chart view control. I'm not sure whether I'm doing something wrong here or is this a bug so I'm asking for second opinion.  I've prepared a small project and attached it to this post for reproducing this issue. It creates a small graph with 5 DateTimes from 2012/12/3 10:00 - 2012/12/3 10:40. Axis minimum is set to DateTime.MinValue and maximum to DateTime.MaxValue. When I set new minimum in same hour ie. 2012/12/3 10:59:59, everything is ok. When you set minimum to 2012/12/3 11:00:00 it will cause OutOfMemory exception (not very nice in production environment). :)
Solution: http://dl.dropbox.com/u/2085626/TelerikException.rar
I've also attached a stack trace where it breaks.
Petar Kirov
Telerik team
 answered on 06 Dec 2012
6 answers
281 views

Hi,
I am using RadScheduleView for Calendar type implementation.
I  implemented filter that works fine for all ViewDefinitions except the ViewDefinition which is first on the NavigationHeader or in other words the ViewDefinition at Index=0 is not performing Filter.

Example:-
Below is the definition of RadSchedulerView that I am using.

      <telerik:RadScheduleView  Name="xRadScheduleView" 
                                AppointmentsSource="{Binding Appointments}"
                                ResourceTypesSource="{Binding ResourceTypeCollection, Mode=TwoWay}" 
                                GroupDescriptionsSource="{Binding GroupDescriptions}"
                                MinAppointmentHeight="60" 
                                NavigationHeaderVisibility="Visible" 
                                SpecialSlotStyleSelector="{StaticResource SpecialSlotStyleSelector}"
                                SpecialSlotsSource="{Binding SpecialSlots}"
                                ShowCurrentTimeIndicator="True"
                                CurrentTimeIndicatorStyle="{StaticResource CurrentTimeIndicatorStyleCustom}"
                                CurrentDate="{Binding CurrentDate, Mode=TwoWay}"
                                Grid.Row="1" 
                                VerticalScrollBarVisibility="Auto"
                                VerticalAlignment="Stretch" 
                                SelectedSlot="{Binding SelectedSlot, Mode=TwoWay}"
                                SelectedAppointment="{Binding SelectedAppointment, Mode=TwoWay}"
                                HorizontalScrollBarVisibility="Visible" >
<telerik:RadScheduleView.DragDropBehavior>
          <Helper:AppointmentDragDropConditionalBehavior/>
</telerik:RadScheduleView.DragDropBehavior>
<telerik:RadScheduleView.ViewDefinitions>
          <telerik:TimelineViewDefinition AppointmentFilter="{Binding FilterValue}"/>
          <telerik:MonthViewDefinition AppointmentFilter="{Binding FilterValue}"/>
          <telerik:WeekViewDefinition AppointmentFilter="{Binding FilterValue}"/>
          <telerik:DayViewDefinition AppointmentFilter="{Binding FilterValue}" />
        </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>


Below are the view definitions .

<telerik:RadScheduleView.ViewDefinitions>
          <telerik:TimelineViewDefinition AppointmentFilter="{Binding FilterValue}"/>
          <telerik:MonthViewDefinition AppointmentFilter="{Binding FilterValue}"/>
          <telerik:WeekViewDefinition AppointmentFilter="{Binding FilterValue}"/>
          <telerik:DayViewDefinition AppointmentFilter="{Binding FilterValue}" />
</telerik:RadScheduleView.ViewDefinitions>

The FilterValue is a property in my ViewModel. Some terminology to understand code.
  1. AppointmentBase is Custom Appointment derived from Appointment class as suggested in your Help website.
  2. Process is Resource derived from Resource class as suggested in your Help website.
  3. CheckedProcesses is the local property which is List of Process ( Resource)

public Predicate<IAppointment> FilterValue
{
  get
  {
    return Filter;
  }
}
public bool Filter(IAppointment appt)
{
  if (SelectedProcess == null && !SelectAllProcesses)
    return false;
  if (SelectAllProcesses)
    return true;
  AppointmentBase app = appt as AppointmentBase; //Custom Appointment
  return app != null && FilterByProcess(app);
}
public bool FilterByProcess(DZNEAppointmentBase app)
{
  bool isFiltered = false;
  isFiltered = this.CheckedProcesses.Where(s => s.ProcessID.Equals(app.Process.ProcessID)).FirstOrDefault() != null;
  return isFiltered;
}

Filtering Scenario:

  1. When all Resources are checked we need to show all Appointment associated with each checked Resource. 
  2. When user uncheck a Resource, all Appointment associated with that Resource should get disappear from Calendar.


Above scenario works well for all ViewDefinitions  such as Day, Week, Month, Timeline and other Custom View definitions if an only if the ActiveViewDefinitionIndex is not ZERO.

So, for above view definition list in code snippet, filter is not working for very first view definition i.e. “TimelineViewDefinition”.

 


I just want to know what setting I am missing or if there are other ways to implement filter.
Any input will be highly appreciated.

Elgan
Top achievements
Rank 1
 answered on 06 Dec 2012
6 answers
729 views
Hello,

I am using GridViewRowDetails to display information regarding a row in a GridView.  I am using the GridViewToggleRowDetailsColumn to toggle the information off and on.  I am developing with the MVVM pattern and extensive databinding.  I want to be able to hide the plus sign on a per row basis using binding.  In addition I would like to be able to toggle the button in my ViewModel code as needed.  Do you have any suggestions on how this can be accomplished using MVVM and binding?

Thanks,

Jason
Rob Ainscough
Top achievements
Rank 1
 answered on 06 Dec 2012
2 answers
177 views
One of your Diagram samples contains a nice RadDiagramToolbox that I would like to use. However, the "Code" section merely contains a stripped Example.xaml...?

How can I make the RadDiagramToolbox look like in the attached image?
Kristoffer
Top achievements
Rank 1
 answered on 06 Dec 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
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?