Telerik Forums
UI for WPF Forum
3 answers
584 views
i have a "total" readonly field in my collection.
and it depends upon three other fields (quantity, Unit price, discount)
upon changing of any of these values i can see in debugging that the total property also changing,
but that is not reflecting in Grid Column of Total.
how to reflect the new value instantantly
however i have a simple Aggregate sum function in bottom which updating fine. but not the total Column field.

Rossen Hristov
Telerik team
 answered on 13 Jul 2010
5 answers
257 views
Hello,
I'm using RadControls for WPF Q1 2010 SP2.
I'm trying to save data from the Gridview with BinaryFormatter. My custom class is marked as serializable and saving List<MyClass> is OK, but when I'm trying to save MyGridView.Items the following error occures:

Type 'Telerik.Windows.Data.WeakEvent+WeakListener`1[[System.ComponentModel.
PropertyChangedEventArgs, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'
in Assembly 'Telerik.Windows.Data, Version=2010.1.603.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'
is not marked as serializable.

Maybe I'm doing something wrong, so I need help, please.
Jokerwolf
Top achievements
Rank 1
 answered on 13 Jul 2010
0 answers
123 views
MY USER CONTROL XAML

<UserControl x:Class="CommonControl.PagingBar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:PagingBar="clr-namespace:CommonControl;assembly=CommonControl"
    Height="38" Width="304" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <StackPanel Height="34" Width="300">      
        <telerik:RadButton Name="btnPaginStart" Click="btnPaginStart_Click" HorizontalAlignment="Left" Margin="5,5,0,-24" Height="24" Width="24"   >|&lt;</telerik:RadButton>
        <telerik:RadButton Name="btnPaginEnd" Click="btnPaginEnd_Click" HorizontalAlignment="Left" Margin="220,0,0,-24" Height="24" Width="24" >&gt;|</telerik:RadButton>
        <telerik:RadButton Name="btnPaginPrevious" Click="btnPaginPrevious_Click" HorizontalAlignment="Left" Margin="35,0,0,-24" Height="24" Width="24" >&lt;</telerik:RadButton>
        <telerik:RadButton Name="btnPaginNext" Click="btnPaginNext_Click" Margin="190,0,0,0"  HorizontalAlignment="Left" Height="24" Width="24">&gt;</telerik:RadButton>
        <my:IntegerInput Height="18" Margin="-50,-20,0,0" Name="integerInput1" ValueChanged="integerInput1_ValueChanged" Width="120"  xmlns:my="clr-namespace:DevComponents.WpfEditors;assembly=DevComponents.WpfEditors" />
    </StackPanel>
</UserControl>



XAML.CS

public event EventHandler pgnPaging_EventExecuteLoad;

private void btnPaginEnd_Click(object sender, RoutedEventArgs e)
        {
         // WANT TO CALL EVENT IN BUTTON CLICK
          pgnPaging_EventExecuteLoad(NULL,NULL);
        }


USER CONTROL USE IN

 <PagingBar:PagingBar Height="38" VerticalAlignment="Top" HorizontalAlignment="Left" Width="256" ></PagingBar:PagingBar>

WANT TO CALL

public void pgnPaging_EventExecuteLoad(object sender, System.EventArgs e)
        {
            loadGroup(2, 1, 20);            
        }

ERROR IS -  Object reference not set to an instance of an object
Shanka
Top achievements
Rank 1
 asked on 13 Jul 2010
4 answers
169 views
Hi all,
    i have a total column in my grid. which is calculated through IValueConverter. it works fine. i want to have its grand total in Footer. so how to do it?
Wasif Jahangir
Top achievements
Rank 1
 answered on 13 Jul 2010
3 answers
302 views
Hello,

I have a zoom functionnality in a RadSplitContainer, i would like to place bottom-right my main application window.

I create this splitcontainer in xaml.
<telerik:RadSplitContainer InitialPosition="FloatingOnly" x:Name="ZoomContainer"  
                                  telerik:RadDocking.FloatingSize="200 200"     > 
                <telerik:RadPaneGroup  > 
                    <telerik:RadPane CanDockInDocumentHost="False" CanUserClose="True" x:Name="paneZoom"   
                            DataContext="{Binding DataContext, ElementName=root}" 
                            IsHidden="{Binding DisplayZoom, Mode=TwoWay, Converter={StaticResource convInverseBoolean}}"  
                          Header="Zoom"  > 
                        <!--<Expander IsExpanded="True" Header="Zoom">--> 
                        <Grid x:Name="rootZoom"


Then on Main window load container I'd like tu set programmaticaly the floating location :
private void QDiagram_Loaded(object sender, RoutedEventArgs e) 
   //ZoomContainer.SetValue(RadDocking.FloatingLocationProperty, new Point(132, 10)); 
  RadDocking.SetFloatingLocation(ZoomContainer, new Point(132, 10)); 


But it seems not to work...

Thanks for your help
Aurore

ps : is there a difference between using Object.SetValue(property, value) and type.Setproperty(object, value) ?


George
Telerik team
 answered on 12 Jul 2010
1 answer
194 views
Hi,

When I close the panes of RadDocking at runtime, and then Serialize the layout setting by using SaveLayout method, but the layout setting in XAML format still contain the panes I just closed. Is there any way to solve it?
George
Telerik team
 answered on 12 Jul 2010
7 answers
834 views
Hello!

Is it possible to preserve all selected items in RadGridView after refreshing the data source? The grid ist bound to an observable collection. This collection is completly replaced after an user action. Actually the default behaviour of the grid is to select the first item in collection. I´d like to change this because it annoys the user.

Thank you and with kind regards
Philip
Rossen Hristov
Telerik team
 answered on 12 Jul 2010
3 answers
134 views
Hi,

am saving a layout in XML file. and whenever that form opens am loading same layout after InitializeComponent().
While doing this layout is coming correctly. but whatever contents like grids, buttons are missing from all the panes.

What could be a reason?


Thanks...!!!

Snehal
Top achievements
Rank 1
 answered on 12 Jul 2010
1 answer
98 views
Dear Colleagues,

I have difficulties to use Minimum Property. Here's the XAML:
<Telerik:RadNumericUpDown IsInteger="True" Minimum="0" x:Name="NumericPieces" Value="1" Grid.Column="1" Margin="5" Grid.Row="0"></Telerik:RadNumericUpDown>

Control sets its value to 0 (zero), and the user cannot increase the value. When I remove the Minimum property from the definition, it works fine.

Am I missing something ? (Version : 2010.1.702.35)

Thank you.
Boyan
Telerik team
 answered on 12 Jul 2010
4 answers
883 views

We have a RadGridView with 2 columns.
When we edit a cell or when we are adding a new row, we want to loop through the rows cell[1] to check for duplicates.
We want to do this in...

private void TheGridCellValidating(object sender, GridViewCellValidatingEventArgs e).

We try things like this...

            var grid = (e.Row).GridViewDataControl;
            string value = e.NewValue.ToString();
           
            var rows = grid.ChildrenOfType<GridViewRow>();

            foreach (var row in rows)
            {
                if (row == null) continue;
                if (row.Cells == null) continue;
                if (row.Cells[1] != null)
                {
                    var s = row.Cells[0]......
                    ...
                    ....
                }
            }
But... it won't work.
How can we iterate on the rows and check for duplicates?

Milan
Telerik team
 answered on 12 Jul 2010
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?