Telerik Forums
UI for WPF Forum
1 answer
182 views
Hi,

I have two questions

1. Is it possible to bind the tileview header colour?
2. Can I seet the size of the maximised tile?

Regards,
Joe
Pavel R. Pavlov
Telerik team
 answered on 21 Jul 2014
5 answers
405 views
Hello,

I have a view with RadGridView and RadDataPager. Grid´s source is PagedSource of data pager. Data pager is bound to IQueryable of items so Data pager manages data reading itself. Paging is working well but I don´t know how to refresh grid if user pressed a button for manual refresh. I have tried to use Grid.Rebind() but it didn' t work. Is there any method I could call to explicitly cause Data pager to reads data from database? And is there any event triggered during it? Because I would like to use busy indicator during the refresh.

Thanks,
Karel Bem
Yoan
Telerik team
 answered on 18 Jul 2014
2 answers
111 views
Hi support,

I am adding a AggregateFunction to a gridcolumn with the following code:

bool showFooter = false;
foreach (var col in radGridView.Columns)
{
    if (col.UniqueName == "dauer") // Column with double-values
    {
        col.AggregateFunctions.Add(new SumFunction() { ResultFormatString = strFormat, SourceField = col.UniqueName });
        showFooter = true;
    }
}
radGridView.ShowColumnFooters = showFooter;

Adding a footer should only happens if my table has a column of data-type double named "dauer" otherwise columnfooters should not been shown. After doing this the footer has correctly been show but the first time the sum of the column is displayed when I sort a column of the grid via clicking on a column header.

You can reproduce this behavior in your sample-program "persistence framework / gridview serialization" when you put these lines of code in function "OnLoad" of Example.xaml.cs after calling this.EnsureLoadState() (of course you have to add a new column "dauer" to your dataset)

What do I have to do to show the results of the aggregate-function directly.

Thanks in advance

Marcus
Marcus
Top achievements
Rank 1
 answered on 18 Jul 2014
1 answer
111 views
Hello, is there a possibility to place a custom text defined in EventContainerTemplate
outside from gantbar i.e. startdate and enddate at upper left or upper right corner? 

Greetings, Robert
Polya
Telerik team
 answered on 18 Jul 2014
4 answers
109 views
Hi

I need to give to the user the possibility to build filter not only between a Member and a value (like Column1 = 10) but also between two members (like Column1 >= Column2).

How could I do?

Dimitrina
Telerik team
 answered on 18 Jul 2014
1 answer
166 views
how to get current selected row without select row. only when change combobox item.
how to get current grid row according selected combobox?

I want when I select only last combobox to get last grid row item? Hot to do that?

See attached image for more info.

<telerik:GridViewDataColumn Header="NASA - NSSDC ID: ASTRO-1 " Width="350" IsReadOnly="True">
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal"  >                                      
                                        <telerikInput:RadComboBox Width="342" ItemTemplate="{StaticResource dtE}" x:Name="rcbEvent"
                                                    ItemsSource="{Binding Path=DataContext.EvCollection, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}} }"                                                                                                      
                                                    SelectedValuePath="ID"
                                                    SelectedValue="{Binding Path=EvField.ID, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay }"
                                                    SelectedItem="{Binding Path=EvField, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay }" SelectionChanged="rcbSo_SelectionChanged" />
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>
kity
Top achievements
Rank 2
 answered on 18 Jul 2014
11 answers
327 views
Hi everyone,

I'm creating RadWindow in separate thread, but when I reopen window after closing it , I'm getting System.Threading.Tasks.TaskCanceledException and don't know why. Here is my code

private void OnCreateNewWindow( object sender,  RoutedEventArgs e)
{
 
Thread thread = new Thread(() =>
                    {
 RadWindow win = new RadWindow();
 
 win.Show();
 
                            win.Closed += (sender2, e2) =>
                                {
                                    win.Dispatcher.InvokeShutdown();
                                };  
 
System.Windows.Threading.Dispatcher.Run();
});
 
thread.SetApartmentState(ApartmentState.STA);
                thread.IsBackground = true;
                thread.Start();
}
Tigran
Top achievements
Rank 1
 answered on 18 Jul 2014
4 answers
160 views
Hi,

my approach is to make sure that an appointment has a TimeMarker and a Category.

The TimeMarker is set by code - so I want to remove the TimeMarker Combobox from the edit / create dialog.

The Category on the other hand MUST selected in the "create dialog"...
BUT:
a.) The "Clear" Button in the category combobox should be removed
--NO clear - just mandatory select
b.) The category Combobox should be disabled if the appointment is edited (not newly created)

How can this be done? (Pleas no "Code behind event handlers" if possible)

Manfred
Kalin
Telerik team
 answered on 18 Jul 2014
1 answer
183 views
I have a grid view
<telerik:RadGridView x:Name="SizingGridView" 
                ItemsSource="{Binding Model.SizingUpchargeModels}"
                Style="{StaticResource BaseGrid}"
                ValidatesOnDataErrors="InViewMode"
                IsSynchronizedWithCurrentItem="True"
                ColumnWidth="*" >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewCheckBoxColumn IsSortable="False" Header="Selected" DataMemberBinding="{Binding Selected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" EditTriggers="CellClick" AutoSelectOnEdit="True"/><telerik:GridViewDataColumn Header="Size" IsReadOnly="True" DataMemberBinding="{Binding Size}" IsSortable="False" />
                    <telerik:GridViewDataColumn Header="Upcharge" DataFormatString="C3" 
                                            DataMemberBinding="{Binding UpchargeAmount, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=False, TargetNullValue={x:Static sys:String.Empty}}"
                                            Style="{StaticResource GridErrorDisplay}" EditTriggers="CellClick" IsSortable="False" >
                        <telerik:GridViewDataColumn.CellEditTemplate>
                            <DataTemplate>
                                <commonControls:RadGridMaskedNumericInput Style="{StaticResource GridThreeDecimalAmountTwoDigitsNumericTextEntry}"  IsReadOnly="{Binding Selected,Converter={StaticResource InverseBooleanConverter}}"
                                Value="{Binding Path=UpchargeAmount, TargetNullValue={x:Static sys:String.Empty}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, NotifyOnValidationError=False}"/>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellEditTemplate>
                    </telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
I need to display only show rows Selected = true on initial load. When I click the filter option it should have the checkbox next to true selected. Now the user can unselect true/ select false or clear filter etc.
How can I achieve this? 


Dimitrina
Telerik team
 answered on 18 Jul 2014
3 answers
224 views
Hi,
I'm using Telerik version 2014.2.617.40. The MaskedtextInput control in Masked Input Text Input Demo has an unexpected behavior.
Here is the configuration I have.
  Mask: (empty)
  Text Mode: MaskedText.
  Input Behavior: Replace
  Selection On Focus: SelectAll
  Update Value Event: PropertyChanged.

Replication Steps:
  1. Type ABC in text input.
  2. Select A. Copy A using Ctrl + C.
  3. Select B. Paste using Ctrl + V.
What I expect: ABC becomes AAC.
Actual result: ABA.

Is it a bug? or should I modify the control properties?
Thanks.

Regards,
Gong
Martin Ivanov
Telerik team
 answered on 18 Jul 2014
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?