Telerik Forums
UI for WPF Forum
1 answer
140 views
I have a three-level hierarchical grid, in which I'd like each of the sub/child grids to be sorted based on a column.

I'm having no problem getting the top-level grid sorted since there's an OrderBy clause in the query that populates the CollectionViewSource that the grid is bound to.

Is there a property that can be set on the sub-grids to cause them to, by default, sort on a particular column?

Example:

Customers (sorted on last name)
 Orders (sorted by date)
   Order Line Items (sorted by quantity)
        

Thanks.
Maya
Telerik team
 answered on 02 Dec 2011
4 answers
82 views
Hi,

I have User Control containing RadGridView that we are using in WPF module to be used in a "WPF application" as well as in "Windows Application" (using Element Host).

When we use it in Windows App and we group the Grid on Multiple Columns it works fine and it lets us drag the "columns to group"  on desired location  in the "group header" and also we can reorder the "grouped by" columns as desired.

However when using it in WPF application we are not able to drag the "columns to group" on desired location in the "group header" and also we are not to reorder the "grouped by" columns as desired.

We are doing nothing extra when hosting the control in Windows Form, the exact same control is being used in both the applications.

And help would be really appriciated

Ashima
Vera
Telerik team
 answered on 02 Dec 2011
5 answers
232 views
Hello,

When I set LabelColumnWidth to GridLength.Auto, each row's label is sized minimally for that row, resulting in an uneven column.  See the attached image.  What I'd expect is that the column gets sized to the maximum of all the rows' minimal sizes, and the column line stays whole.

Will this be supported in the future?  Is there a recommended workaround?

Timothy Lee Russell
Top achievements
Rank 2
 answered on 02 Dec 2011
8 answers
285 views
Hey Guys (and Gals)
I have spend today a few hours creating a custom theme for a new WPF project I've started to work on.
This project includes Ribbon and a DockManager.
We are planning on relying on the ExpressionDark theme.
So I tried to create a custom theme project and use the xamls deployed with the install as a base line.
but I couldn't make it work.
Almost all xamls had reference to 
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"
which I coudln't resolve.
I tried to make them styles implicit but also it didn't avail.
Can you assist me please,
Ariel
Sia
Telerik team
 answered on 01 Dec 2011
3 answers
196 views
Hello.

I was wondering how could I have a DataFormDataField or DataFormComboBox which could let me have a selection control(ComboBox or DropDownButton) which had a GridView in the dropdown list, so I can filter and group the information, and keeping the label of this dataformdatafield.
Maya
Telerik team
 answered on 01 Dec 2011
1 answer
72 views
The tooltips for my line series are always x+1 ahead of the plotted values. Is this because I'm forcing my X-Axis to be zero-based instead of one-based (which I had to do by manually adding data points since the IsZeroBased property had no effect on the X-Axis). Is there a way to correct this behavior? Thanks!
Yavor
Telerik team
 answered on 01 Dec 2011
1 answer
165 views
we're trying to fit in RibbonView in a prism framework and figured out how to bind the itemssource for tabs, backstage, and quickaccesstoolbar, but for the contextualgroups, there doesn't seem to be a property allocated there to bind to.

is there a way to do this?

thanks
Petar Mladenov
Telerik team
 answered on 01 Dec 2011
5 answers
134 views
Hello,

I have a class which implements your SL IPagedCollectionView interface, and largely based my code on what you've done in the Endless Paging example.

One thing I noticed, is that on any page change, both in your sample code and in my code, GetEnumerator is called more than once on a page change. This is pretty detrimental if I'm making several calls to the db for my data when I only need 1.

Been trying to step through with the debugger and cannot determine what's causing the problem.


Rossen Hristov
Telerik team
 answered on 01 Dec 2011
13 answers
431 views
In the hierarchical grid below, I have a self-referencial table that has the hieratchical data.
I cannot get the nested grid to display the same row colours as the outhermost nested grid.
I am trying to use the RowLoaded event to colour the rows, but it does not fire for the innermost
nested grids.






void
RadGridView1_RowLoaded(object sender, RowLoadedEventArgs e)
   {
       GridViewRow viewRow = e.Row as GridViewRow;
       DataRow row = e.DataElement as DataRow;
         
       //Employees employee = e.DataElement as Employees;
       if (row != null && row["ID"] != null)
       {
           long ID = (long)row["ID"];
           viewRow.IsExpandable = this.HasSubordinates(ID);
           if (row["Status"].ToString().Trim() == string.Empty)
           {
               viewRow.Background = Brushes.Turquoise;
           }
           else
           {
               viewRow.Background = Brushes.Red;
           }
       }
   }

 

 

 



 

 

 

<telerik:RadGridView x:Name="RadGridView1" RowLoaded="RadGridView1_RowLoaded" DataLoading="RadGridView1_DataLoading"  Grid.ColumnSpan="2"  LoadingRowDetails="RadGridView1_LoadingRowDetails"  
                   ColumnWidth="*" ItemsSource="{Binding TableData}"  
                   GridLinesVisibility="Horizontal" 
                   CanUserFreezeColumns="False" IsReadOnly="True" AutoGenerateColumns="False" >
      <telerik:RadGridView.Columns>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding StepName}" />
          <telerik:GridViewDataColumn DataMemberBinding="{Binding StepType}" />
          <telerik:GridViewDataColumn DataMemberBinding="{Binding TotalTime}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding Status}" />
          <telerik:GridViewDataColumn DataMemberBinding="{Binding StartTime}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding StopTime}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding ErrorCode}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding ErrorMessage}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding ErrorOccurred}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding ReportText}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding Value}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding ComparisonType}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding Limits}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding Units}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}"/>
          <telerik:GridViewDataColumn DataMemberBinding="{Binding PID}"/>
      </telerik:RadGridView.Columns>
      <telerik:RadGridView.ChildTableDefinitions>
          <telerik:GridViewTableDefinition>
              <telerik:GridViewTableDefinition.Relation>
                  <telerik:TableRelation IsSelfReference="True">
                      <telerik:TableRelation.FieldNames>
                          <telerik:FieldDescriptorNamePair 
                          ParentFieldDescriptorName="ID" 
                          ChildFieldDescriptorName="PID"/>
                      </telerik:TableRelation.FieldNames>
                  </telerik:TableRelation>
              </telerik:GridViewTableDefinition.Relation>
          </telerik:GridViewTableDefinition>
      </telerik:RadGridView.ChildTableDefinitions>
  </telerik:RadGridView>
Maya
Telerik team
 answered on 01 Dec 2011
1 answer
181 views
I have a very simple  raddatepicker in a telerik radwindow. when i select the calendar icon, the drop down calendar appears in the top/left corner of the screen. my raddatepicker is:

<telerik:RadDatePicker Grid.Row="1" Grid.Column="1" DateSelectionMode="Day" InputMode="DatePicker"/>


why is this happening?

Ivo
Telerik team
 answered on 30 Nov 2011
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?