Telerik Forums
UI for WPF Forum
1 answer
321 views
We're using the ControlPanelItem option on our RadGrids. For actions you want to apply to the grid it's great (e.g. column visibility, filter options). But how can we bubble up the button click to the view model instead? The button's context seems to be bound to the grid and thus captures the click event... how can we tell the button to use the view model instead so that the click can be captured there (we're using Caliburn Micro for binding, but could be anything).

Thanks,

Steve
Dimitrina
Telerik team
 answered on 27 Oct 2014
2 answers
175 views
Is there a way to autogenerate Groups in a similar manner as autogenerating tiles?
Maya
Telerik team
 answered on 27 Oct 2014
2 answers
227 views
In the first attached screenshot, I have 6 BarSeries (all with the same values for the data).  5 series are stacked in 2 groups (using the stack key). The sixth series has a combine mode of Clustered.   You can see where the Clustered series is much wider than the stacked series.  In the second screenshot, I have 3 BarSeries. 2 are Clustered and 1 is Stacked. In this case, the Stacked BarSeries is the one that is wider than the other series.  I am using a point template for BarSeries, but it is not doing anything with the width (It's a Border).  Is the width difference purposeful, or is this a bug?
Mitchell
Top achievements
Rank 1
 answered on 27 Oct 2014
1 answer
145 views
Is it possible to scroll to a particular day in week and month view definition.

vikas
Nasko
Telerik team
 answered on 27 Oct 2014
5 answers
491 views
Hi,
is it somehow possible to declare the telerik theme so that the controls would have their theme set in designer also?

I'm already setting theme code behind in Application_Startup like

StyleManager.ApplicationTheme = new Expression_DarkTheme();

But I would like to set the theme application wide so that I could see the rad controls wiht the dark theme also in design mode.

Best regards,
Niklas
Vanya Pavlova
Telerik team
 answered on 27 Oct 2014
1 answer
153 views
I am trying to use IResource to create custom resources but can not make it work no appointments are displayed, all the resources are displayed in the group headers but no appointments, I have created a class that inherits from IResource and i am setting all the properties (resource name, resource type and display name), I am loading appointments from xaml just like the demo examples and there are i am using my custom class as resource.
I even added group and appointment filter to see what is wrong but they are never even called.

If i use simple Resource class then every thing works

Thanks
vikas
Yana
Telerik team
 answered on 27 Oct 2014
2 answers
265 views
I have this message while printing a particular PDF: https://drive.google.com/file/d/0BzXenGGVXpm3Nm9jUDNlTXRGNG8/view?usp=sharing

The error stack is:

System.ArgumentNullException was unhandled
Message: An unhandled exception of type 'System.ArgumentNullException' occurred in Telerik.Windows.Zip.dll
Additional information: Value cannot be null.

Other PDF prints fine. How do I resolve it ? Any suggestion on what to look at ?

Other information:
----------------
Teleriks RadControls version 2014.2.729.40
Telerik.Windows.Zip.dll: version 2014.2.729.40
ASP.NET 4.0
Visual Studio 2013
Windows 7 x64
Kammen
Telerik team
 answered on 27 Oct 2014
1 answer
456 views
I am having problem in binding to the Datacontext at viewdefinition level, It works if i create my viewmodel in xaml and set the DataContext of the grid using staticresource, but if i set the datacontext to the window in code behind it does not work

            <schedule:RadScheduleView.ViewDefinitions>
                <schedule:DayViewDefinition GroupFilter="{Binding GroupFilter2}"/>
                <schedule:WeekViewDefinition GroupFilter="{Binding GroupFilter2}"/>
                <schedule:MonthViewDefinition GroupFilter="{Binding GroupFilter2}"/>
            </schedule:RadScheduleView.ViewDefinitions>

----------- this does not work, does no bind to Group Filter -----------------
public MainWindow()
        {
            InitializeComponent();
            this.DataContext = new ViewModel();
        }


----------- this works -------------------

<Window.Resources>
        <local:ViewModel x:Key="ViewModel" AppointmentsSource="/Schedule;component/Appointments.xaml" />
<Grid x:Name="mainGrid" DataContext="{StaticResource ViewModel"> 
Kalin
Telerik team
 answered on 27 Oct 2014
3 answers
242 views
I think it would be cool to have the filtered choices in my combobox to have the matching text highlighted.

For example:
[at         ]
Documentation
Ultimate
Administrator
Cat in the Hat

Any suggestions on how to go about this?
Kalin
Telerik team
 answered on 27 Oct 2014
6 answers
513 views
Hi,

Is it possible to put the selectcolumn or check box into the Group Header?

When the check box in the group header is selected, I will like all the select columns(checkboxes) ticked of the items within the groups.

and when any item in the group is unchecked, I would like the check box in group header is unchecked as well.

When the group has subgroups, I also want the subgroup checkbox to be checked when I loop through them using group.subgroups.

In the case, how could I grad a reference to the checkbox in the subgroup row?

Am I using the right approch with the code below?

<telerik:RadGridView.GroupHeaderTemplate>
               <DataTemplate>
                   <StackPanel Orientation="Horizontal">
                       <CheckBox Click="RadGridViewGroupRowClicked" Margin="0 0 3 0"/>
                       <TextBlock Text="{Binding Group.Key}" />
                   </StackPanel>
               </DataTemplate>
           </telerik:RadGridView.GroupHeaderTemplate>



           private void RadGridViewGroupRowClicked(object sender, System.Windows.RoutedEventArgs e)
        {
            var groupViewModel = (sender as CheckBox).DataContext as GroupViewModel;
            var isChecked = (bool) (sender as CheckBox).IsChecked;
  
            CheckUncheckRows(isChecked, groupViewModel);
        }
  
        public void CheckUncheckRows(bool isChecked, GroupViewModel groupViewModel)
        {
            CheckUncheckItems(isChecked, groupViewModel.Group); 
        }
  
        public void CheckUncheckItems(bool isChecked, IGroup group)
        {
            if (group.HasSubgroups)
            {
                foreach (var subgroup in group.Subgroups)
                {
                    CheckUncheckItems(isChecked, subgroup);
                }
            }
            else
            {
                foreach (var item in group.Items)
                {
                    if (isChecked)
                    {
                        baseToTargetGridView.SelectedItems.Add(item);
                    }
                    else
                    {
                        baseToTargetGridView.SelectedItems.Remove(item);
                    }
                }
            }
        }


Thanks,

Yu
Inger Marie
Top achievements
Rank 1
 answered on 27 Oct 2014
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?