Telerik Forums
UI for WPF Forum
2 answers
227 views
Hi,

I'm using a RadGridView and RadDataPager together:
<telerik:RadGridView Margin="0,0,0,0"
              Name="grdGeneralPayments"
              SelectionMode="Extended"
              ShowGroupPanel="False"
              ShowColumnFooters="False"    
              CanUserSelect="False"
              CanUserInsertRows="False"
              CanUserDeleteRows="False"
              IsSynchronizedWithCurrentItem ="False"
              MouseDoubleClick="grdGeneralPayments_MouseDoubleClick"
              SelectionChanged="grdGeneralPayments_SelectionChanged"
              Filtering="grdGeneralPayments_Filtering"
              Filtered="grdGeneralPayments_Filtered"
              ScrollViewer.VerticalScrollBarVisibility="Auto"
              ScrollViewer.HorizontalScrollBarVisibility="Auto"
              DockPanel.Dock="Top">
</telerik:RadGridView>
<telerik:RadDataPager Name="radDataPager" Margin="0,0,0,0" DockPanel.Dock="Bottom" PageSize="10" Source="{Binding Items, ElementName=grdGeneralPayments}"
                          PageIndexChanging="radDataPager_PageIndexChanging" />


The grid also has a checkbox select column.
//Because grid columns are auto generated we need to add the select row checkbox column ourselves.
GridViewSelectColumn selectCol = new GridViewSelectColumn();
selectCol.Name = "Select";
//Put select row checkbox column on LHS of the grid.
this.grdGeneralPayments.Columns.Insert(0, selectCol);


Desired behaviour:
The user selects a number of items on one page.
User navigates to another page.
User navigates back to previous page and the previously selected items are still shown as selected.

The following code was working using Telerik.Windows.Controls.GridView.dll version 2010.1.422.35:
public ApproveGeneralPayments()
{
    InitializeComponent();
    this.grdGeneralPayments.Items.PageChanged += new EventHandler<EventArgs>(Items_PageChanged);
}
       
private void Items_PageChanged(object sender, EventArgs e)
{
      this.SelectGloballySelectedItems();
      this.changingPage = false;
}


Since upgrading to Telerik.Windows.Controls.GridView.dll version 2012.2.607.40, the above event "Items_PageChanged" fails to fire.

NB. The method "SelectGloballySelectedItems" compares the items on the currently displayed page with those which have been previously  selected across multiple pages and reselects them.

Any idea why the event isn't firing or is there a new way to achieve the desired functionality.

Thanks,
Mark
Mark Newman
Top achievements
Rank 1
 answered on 15 Nov 2012
3 answers
139 views
Are there any demos of 3D charts, specifically pie charts, I can't see any, indeed I can't really find any useful documentation about 3D charts at all.
Petar Kirov
Telerik team
 answered on 15 Nov 2012
5 answers
407 views
Is there a way to cleanly get a RadGridView to clear its SortDescriptors everytime the ItemSource is refreshed with a new data source?

My problem is that I am loading different dataset (different columns) into a RadGridView and when there is sorting on one of the data set, after binding a new dataset to the same RadGridView, it is obviously remembering the SortDescriptor and throwing an error because the column it is trying to sort on no longer exists in the new set of data it is being bound to.

Also I am trying to do this in a clean MVVM (WPF) way so calling RadGridView.SortDescriptors.Clear() in the code behind of my WPF form is not the approach I'm looking for.

Any ideas?
Mark
Top achievements
Rank 1
 answered on 15 Nov 2012
0 answers
67 views
Hello, I´m working with 2011.3.1116.40 WPF version, I handle Filtered event, when I follow these steps, FilterDescriptors doesn´t update correctly:

1- Check one filter item -> FilterDescriptors OK.
2- Uncheck "Select all" -> FilterDescriptors wrong. FilterDescriptos continues with the last value.

It happens on filtered method.

Thanks for your support.
Gerardo
Top achievements
Rank 1
 asked on 15 Nov 2012
1 answer
85 views
Hi,

I should implement a dynamic combobox to be WPF gridviews cell editor. I need to create the combobox to some specific cell (for example to row 3 and column 2). The data should get from database in moment the user is activating the cell editing.

Already i found examples how to create GridViewComboBoxColumn, but i need to do this to just one cell at the time and the data must be fetched from relational database dynamic. That is because the data can be updated to the database at any time by other user/process.

What to do next?
Pavel Pavlov
Telerik team
 answered on 15 Nov 2012
1 answer
175 views
Hi,

how do i bind a xml-File to a RadDataForm with a NewItemTemplate and a EditTemplate? Can't find any example!=

Thanks Best
Regards
Rene
Yoan
Telerik team
 answered on 15 Nov 2012
2 answers
119 views
Hi,

I made a control teplate, and i put a RadDatePicker to this. After that, i set the DataTimeWaterMarkContent propterty. But its doesnt show on the UI.
If i use it direct ( Window, UserControl) it's ok.

Control Template:

<ControlTemplate x:Key="OtherWorkEditTemplate">

<Grid x:Name="LayoutRoot">

<GroupBox Header="Something" BorderBrush="{DynamicResource SolidColorBlueBrush}">

<Grid>

...

<telerik:RadDatePicker SelectedValue="{Binding OtherWork.InvoiceDate}" VerticalAlignment="Top" Margin="88.787,98.458,8,0" DateTimeWatermarkContent="Enter" telerik:StyleManager.Theme="Metro" />

</Grid>

</GroupBox>

</Grid>

</ControlTemplate>


Result: http://tinypic.com/r/qp4bb5/6
[IMG]http://i47.tinypic.com/qp4bb5.png[/IMG]

 
How can i solve this?

Thanks a lot,
Attila

 

Attila
Top achievements
Rank 1
 answered on 15 Nov 2012
1 answer
148 views
I am having no end of trouble trying to find the magic to force a single-column RadTileView layout, with all tiles expanding to take up their fully available width.

What property should I be looking for which determines how the tiles determine their width?
Pavel R. Pavlov
Telerik team
 answered on 15 Nov 2012
1 answer
107 views
hello , im using Telerik-Word of WPF in my application , and im wondering if it's possible to make an event to make sure a page is printed out or not , is it possible ? if yes , how ?
Boby
Telerik team
 answered on 15 Nov 2012
4 answers
227 views
I am implementing my own blank row to display at the end of the grid where users will be allowed to enter new data.

I do this by adding an empty row to the end of my ItemsSource

The issue is on Filtering and Sorting the empty row is included in the action. I tried removing the row and then re-adding it  on the Filtering/Filtered and Sorting/Sorted events but on re-add the item is added to the sorted position not the end of the grid. Any help?

For reference this is how I set my DataContext for the Grid.
public DataTable CurrentDataTable
       {
           get { return dataGridView.ItemsSource != null ? ((BindingSource) dataGridView.ItemsSource).DataSource as DataTable : null; }
           set
           {
               CurrentSelectedTableName = value.TableName;
 
               //BindingSource to sync DataTable and DataGridView
               var bSource = new BindingSource {DataSource = value};
 
               //set the DataGridView DataSource
               dataGridView.DataContext = bSource;
           }
       }



Add and Unload Empty Row
public void LoadExtraRow()
 {
      var itemSourceDataTable = CurrentDataTable;
      if (itemSourceDataTable == null)
           return;
      var newRow = itemSourceDataTable.NewRow();
      newRow.RowError = "NEW_ROW";
      itemSourceDataTable.Rows.Add(newRow);
      dataGridView.Rebind();
 }
  
public void UnloadExtraRow()
{
      var itemSourceDataTable = CurrentDataTable;
      if (itemSourceDataTable == null)
           return;
      if (itemSourceDataTable.Rows.Count > 0)
      {
          var emptyRowToRemove = itemSourceDataTable.Rows[itemSourceDataTable.Rows.Count - 1];
          if (emptyRowToRemove.RowError == "NEW_ROW")
          {
               itemSourceDataTable.Rows.Remove(emptyRowToRemove);
          }
       }
   }





David
Top achievements
Rank 1
 answered on 15 Nov 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
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?