Hi Team,
I am working on behavior for Radgridview and need help on below query:
- How to create grid Data Control behavior(e.g control grid row height)
Thanks,
Amit Kulha
Hi,
I want to be able to redefine the default style of the RadDatePicker to make it look like the rest of our components.
To do so, I put a RadDatePicker in my application, I clicked on it via the 'Document Outline' and chose Edit template -> Edit a copy. I then noticed that the RadDatePicker was now experiencing an issue when I "zoom out" to the "Decade" view : If I click on the left arrow (-10 years) or the right arrow (+10 years), the header text correctly changes (2000 -> 1990 / 2000 -> 2010) but the displayed years in the "calendar" section of the date picker aren't affected by the change. I get the same problems if you zoom out to the "hundred years" view.
Here is the simplest project I could put together to show the issue : https://drive.google.com/open?id=1d_GcDKeUfdmifYbo6KedukOIKtyHSiVo
Here are some screenshots of the problem : https://drive.google.com/open?id=182PK161CCZc_1k4m9rogxl_lSXIF8Lc1
Here are the repro steps :
1. Create a new project
2. Add 2 RadDatePicker
3. Select one of the two RadDatePicker, Edit template -> Edit a copy
4. Notice described issue
I hope this is enough for you to help me with this issue, I guess it must be something missing in the copied style that breaks this mecanism.
Thank you for your time :)
Louis
Hi,
I'm trying to to accomplish the following: whenever a user right clicks whatever data grid, the same context menu should appear. One of the options in the context menu is the export to Excel. I'm trying to achieve this by creating a style for the RadGridView. Here's my xaml:
<
Style
x:Key
=
"TelerikGridViewContextMenuStyle"
TargetType
=
"{x:Type telerik:RadGridView}"
>
<
Setter
Property
=
"ContextMenu"
>
<
Setter.Value
>
<
ContextMenu
>
<
MenuItem
Header
=
"{bx:LocalizeBinding ExportToExcel, Global=True}"
Command
=
"{Binding ExportToExcelCmd}"
CommandParameter
=
"{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"
>
<
MenuItem.Icon
>
<
Image
Source
=
"/Resources/Icons/Excel.png"
/>
</
MenuItem.Icon
>
</
MenuItem
>
</
ContextMenu
>
</
Setter.Value
>
</
Setter
>
</
Style
>
As you can see, I'm trying to pass the RadGridView as a parameter to the command. However, in my code, this parameter is always null. How come ?
I am trying to use Crosshair behavior on inverse axis on the right (see attached png), horizontal axis is on top.
But the result is that both crosshair labels is not rendered properly.
is there any trick on this?
It is good when i use axis at default locations
By the document, we can bind the pager as below.
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadGridView
x:Name
=
"radGridView"
ItemsSource
=
"{Binding Employees}"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding CompanyName}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Title}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
<
telerik:RadDataPager
x:Name
=
"radDataPager"
Source
=
"{Binding Items, ElementName=radGridView}"
PageSize
=
"5"
/>
The question is that I can't assign the element name of the RadGridView. So how to bind the element?
Thanks.
I'm trying to create a custom AggregateFunction that applies different calculations based on the Field that represents the leaf level in the Pivot Grid. It is for a pivot grid that displays revenue for books sold in a library that includes the sum of sold books - a commision difference (the scenario is made up).
View 1:
Selected fields: Library, Categoy, Book
Should display
Day 1
Library 1050
Fantasy 240 (600-10%)
Book A 100
Book B 200
Book C 300
Drama 810 (900-10%)
Book D 400
Book E 500
View 2:
Selected fields: Library, Categoy
Should display
Day 1
Library 1050
Fantasy 240 (600-10%)
Drama 810 (900-10%)
In the scenarios above, the -10% needs to be aggregated only on Category level and above, not on Book level. I created a custom aggregate function but wasn't able to find a solution of checking the field that the row to which the aggregate applies belongs to, whether it is Book or Category.
Does anybody know how to do this?
Thanks!
Hi,
In my code I have an defined at the Window level which then floats a pane, now I want to make the floated pane to be docked again using a shortcut key while the focus is on the floating RadPane.
I added this
<telerik:RadDocking.InputBindings>
<KeyBinding Gesture="Ctrl+D"
Command="{Binding FloatPanesCommand}" />
</telerik:RadDocking.InputBindings>
But this does not work and the command is never triggered. Could someone please help.