Telerik Forums
UI for WPF Forum
1 answer
169 views
wonder if you can help with the simpler way to reapply filters programmatically.  I have found so far only 1 solution:

IFilterDescriptor[] filterDescriptors = new IFilterDescriptor[_gridView.FilterDescriptors.Count];
_gridView.FilterDescriptors.CopyTo(filterDescriptors, 0);
_gridView.FilterDescriptors.Clear();
_gridView.FilterDescriptors.AddRange(filterDescriptors);


is there more elegant method?

Cheers, Igor
Rossen Hristov
Telerik team
 answered on 10 Feb 2012
6 answers
168 views
Hello Telerik,
I've got two question about theming... In my application I've curertly defined 2 brush for a RadGridView alternate row choosing the color similar to OfficeBlu theme, now that I changed the theme I have to find the colors again..is there a way of getting a theme default background color?

Second question: I've added a stackpanel for having a whole Menu bar as

<Grid Grid.Row="0" Background="#FFF0F0F0">
          <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*"></ColumnDefinition>
              <!--<ColumnDefinition Width="100"></ColumnDefinition>-->
          </Grid.ColumnDefinitions>
          <StackPanel Orientation="Horizontal" Grid.Column="0" >
              <local:MenuView x:Name="Menu" cal:Bind.Model="{Binding Menu}">
              </local:MenuView>
          </StackPanel>
          <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,0,5,0" Grid.Column="1" Background="#FFF0F0F0" cal:Action.Target="{Binding}">
              <TextBlock x:Name="LoggedUser" Background="Transparent" Foreground="#242881" FontStyle="Italic" FontWeight="Bold" ></TextBlock>
              <TextBlock Name="TextBlockWithHyperlink" Text="  Info" Background="Transparent" cal:Message.Attach="[Event PreviewMouseDown] = [Action ShowInfo()]"  cal:Action.TargetWithoutContext="{Binding}"  >
              </TextBlock>
          </StackPanel>
      </Grid>

The same problem here...how do I tell pick the telerik:RadMenu default background color and apply it to my stackpanel?

Thanks
Paolo
Vanya Pavlova
Telerik team
 answered on 10 Feb 2012
1 answer
210 views
Hi

We are using ChartView control to display line graph. We have scrollbar to the graph. How do we increase the scroll bar height of the control
Please refer attached image also
Sia
Telerik team
 answered on 10 Feb 2012
2 answers
251 views
Hi,

how is it possible to bind database table/view from DataSet to ItemsSource in RadGridView in XAML? I need to use adding new rows in UI of RadGridView.


Thanks,
Maros
Vývoj GAMO
Top achievements
Rank 2
 answered on 10 Feb 2012
2 answers
118 views
Hi,

I have the resources A, B and C. I want to customize the scheduleview that I have every day different count of resources. For example
on monday i have A and B and on tuesday i have A, B and C and on wednesday i have only A.

I have looked at the grouping sample, but have not found a solution that is good for me.
How can i do that? I have add a picture. You see what i mean on thursday "Do".

Thanks
Annett
Annett
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
125 views
When I try to filter my source by a datetime field, I get the default date picker. I enter a date or select from the calendar but my result grid doesn't show the records that correspond with that date. Could it be because the editor is looking at the date only and my underlying value has both date & time? How do I get around this if this is in fact the issue?
Rossen Hristov
Telerik team
 answered on 10 Feb 2012
4 answers
140 views
Hi,

I would like to be able to set which fields are available for datafiltering on the RadDataFilter. As i understand, this can be done using annotations. However i find the use of annotations cumbersome. I use the RadDataFilter to filter data in a RadGridView. The  RadGridView is boud to a collection in the Viewmodel. Now in order to specify which fields are available for datafiletring, i would have to annotate the public fields of my viewmodel. I think this is a violation of seperation of View and Viewmodel. Moreover,  if i have diferent views using the same viewmodel with a RadDataFilter and i wish to have different fields available for filtering in each view, then this cannot be done.

In my honest opnion, which fields can be filtered, and what their caption is in the RadDataFilter should be specified in a collection of the RadDataFilter itself (much as the columns collection in the RadGridView).

If you think i going the wrong way here please let me know.

Kind regards,
Ronald Steenbergen
Rossen Hristov
Telerik team
 answered on 10 Feb 2012
1 answer
153 views
Hi,

I am using a DropDownbutton with a RadContextmenu. When using Accesskey on the RibbonView/DropDownbutton/RadContextmenu. De access keys don't show on the submenu of the RadContextmenu. A made a sample to demonstrate this:

<Window x:Class="WpfRibbonMenuKeys.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <telerik:RadRibbonView Name="radRibbonView1" VerticalAlignment="Top" telerik:KeyTipService.IsKeyTipsEnabled="True">
            <telerik:RadRibbonTab Header="RibbonTab"  telerik:KeyTipService.AccessText="H">
                <telerik:RadRibbonGroup Header="SomeGroup" telerik:ScreenTip.Title="SomeGroup" DialogLauncherVisibility="Collapsed" >
                    <telerik:RadRibbonDropDownButton Text="DropDown"
                                                     Size="Large"
                                                     telerik:KeyTipService.AccessText="S">
                        <telerik:RadRibbonDropDownButton.DropDownContent>
                            <telerik:RadContextMenu >
                                <telerik:RadMenuItem Header="Test1" telerik:KeyTipService.AccessText="1"/>
                                <telerik:RadMenuItem Header="Test2" telerik:KeyTipService.AccessText="2">
                                    <telerik:RadMenuItem Header="Test2.1" telerik:KeyTipService.AccessText="21"/>
                                    <telerik:RadMenuItem Header="Test2.2" telerik:KeyTipService.AccessText="22"/>
                                    <telerik:RadMenuItem Header="Test2.3" telerik:KeyTipService.AccessText="23"/>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Header="Test3" telerik:KeyTipService.AccessText="3"/>
                            </telerik:RadContextMenu>
                        </telerik:RadRibbonDropDownButton.DropDownContent>
                    </telerik:RadRibbonDropDownButton>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>
    </Grid>
</Window>

The menuitems Test2.1, Test 2.2 and Test 2.3 don't show access keys. Also when having used access keys, it is not possible to use the arrow keys to navigate through the contextmenu. So when using Alt-H-S-2, in the sample, the submenu is opened, but further keyhandling is not respected.

Regards,
Ronald
Tina Stancheva
Telerik team
 answered on 10 Feb 2012
0 answers
179 views
Hi Team,
How I will diable a control placed in GridViewDataColumn cell template programmatically so that content inside CellTemplate become disable.
I need all this functionality when gridview render.

when i use GridViewColumn.IsEnabled= false; It doesn't disable button placed inside DataTemplate.



<telerik:GridViewDataColumn x:Name="clmDelete" Width="30" Header="" HeaderTextAlignment="Center" >
  <telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
      <my1:Button x:Name="btnDelete" BorderThickness="0" Background="White"
     Click="btnDelete_Click"  HorizontalAlignment="Left" Grid.Column="0"  Width="20" Height="20">
     <Image Source="/UI.SmartClient;component/~or83E_files/delete16.ico" Width="Auto" />
     </my1:Button>
    </DataTemplate>
 </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn >

foreach (Telerik.Windows.Controls.GridViewColumn column in gv.Columns)
{
       column.isEnabled=false; 
}


Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
 asked on 10 Feb 2012
1 answer
98 views
I there a way to only allow the scheduleView to display by date, ie don't show time slots on the scheduler?  All views should only display by date, ie no time slots
Yana
Telerik team
 answered on 10 Feb 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?