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

How do you

- Set Margins
- Handle print width when columns exceed physical page width  (overflow pages?).

I am using "PrintExtensions".  Are there any document(s) that explains the various properties.

Thanks
Rich
Dimitrina
Telerik team
 answered on 05 Aug 2013
1 answer
208 views
Is there any way to change the IsReadOnly column property for just the InsertRow that is being created?
I am using the RadGridView control to enter data (e.g. line items in a shopping cart). The first column is the part number, a keyed entry in the underlying data schema. The column is defined as a readonly column because a user cannot change the part number in the grid once it has been committed to the database. But when the program executes the BeginInsert method to allow data entry for a new grid line item, the column for just the insert row must allow for data entry so that the part number can be entered. If I change the column to IsReadOnly = False during the AddingNewDataItem event that changes all grid rows; not just the new insert row that has not yet been committed.
Vera
Telerik team
 answered on 05 Aug 2013
1 answer
147 views
I host RadPanel(Your Winform Control Product)  in RadTileView(Your WPF Control Product).

When I Scroll RadTileView fast , Item Header Title bar shows the residual image.
(When I host Image in RadTileView , All is Perfect.)

How can i remove this?



Tina Stancheva
Telerik team
 answered on 05 Aug 2013
3 answers
153 views
Hello,

I'm performing EF and BL in the AddLink method of ObservableGraphSourceBase and things are working fine.  As items/links are added/removed to/from the graph I can easily update my EF and persist.

I'm now adding in some business logic.  For example, I have 3 node types, A, B, C, where my BL says that node type A can only be connected to node type B.  I'm catching the AddLink and my BL is executed and when I see a link added from A to C this violates rules so I simply do no call base.AddLink(link).

This works, the internal structures are correct, however the UI is left with an orphaned connection.  I'm assuming in this case I simply need to force the diagram to redraw and this orphan will be removed.  Is that correct and how should I force the redraw?

Thanks,
Mike
Zarko
Telerik team
 answered on 05 Aug 2013
5 answers
416 views
I have a simple gird setup with a RadEntityFrameworkDataSource, RadDataPager, and RadGridView linked it works great with one exception, filters I set programmatically don't seem to trigger the underlying datasource to update.  

Telerik.Windows.Controls.GridViewColumn timeColumn = this.RadGridView1.Columns["subject_timestamp"];
Telerik.Windows.Controls.GridView.IColumnFilterDescriptor timeFilter = timeColumn.ColumnFilterDescriptor;
timeFilter.SuspendNotifications();
timeFilter.FieldFilter.Filter1.Operator = Telerik.Windows.Data.FilterOperator.IsGreaterThan;
timeFilter.FieldFilter.Filter1.Value = DateTime.Now.AddYears(-1).ToShortDateString();
timeFilter.ResumeNotifications();


It puts the right info into the filters.  If I run this in the constructor of the window after InitializeComponent(), it filters per page of the datagrid.  If I run it attached to a button after load it simply inserts the parameters into the filter and doesn't evaluate.  If I hit clear filter and insert it by hand it works perfectly.  I am just not sure what to do cause it evaluate.
Rossen Hristov
Telerik team
 answered on 05 Aug 2013
1 answer
171 views
Hi All
I have a pane which is dockable and after docking I have set it to autoHide and my application looks good. When I mouseover the hidden pane it pops up  and I am expanding it. It is not closing if I move my mouse to other parts of the application. If I click somewhere in the application then it is hiding. Basically once I click outside the pane it is hiding. But I have some options in this pane . Whenever i select a option I am showing a confirmation dialog. Since this pane is not hiding, my dialog box is showing under this pane like the attached image.
Any suggestion on how to resolve this issue is much appreciated.

Thanks
Rakesh
Rosen Vladimirov
Telerik team
 answered on 05 Aug 2013
3 answers
144 views
Editing existing items in the grid works fine, but when I click on 'Click here to add new item', nothing happens.

In my view model I have an IQueryable:
public IQueryable<MyModel> Data
{
  get { return this.dataService.GetData(); }
}

In the view, I have a RadGridView bound to the Data property:
<telerik:RadGridView Name="RadGridView1"
    GroupRenderMode="Flat"
    ShowInsertRow="True"
    CanUserInsertRows="True"
    CanUserFreezeColumns="False"
    ItemsSource="{Binding Data}"
    AutoGenerateColumns="False"
    SelectedItem="SelectedItem"
    ActionOnLostFocus="CommitEdit"
    RowIndicatorVisibility="Collapsed"
    ShowGroupPanel="False">

Rossen Hristov
Telerik team
 answered on 05 Aug 2013
3 answers
209 views
I am trying to supply different TreeListViewRow templates using a RowStyleSelector to show certain types of rows (GetMoreData rows) with a template that does not follow the columns, but instead displays a button which you click to get more data (more children for that row).

The RowStyleSelector looks like :

<local:MyGridRowStyleSelector x:Key="RowStyleSelector">
    <local:MyGridRowStyleSelector.MoreResultsRowStyle>
        <Style TargetType="telerik:TreeListViewRow"
                x:Name="MoreResults">
            <Setter Property="telerik:TreeListViewRow.Template"
                        Value="{StaticResource MoreDataCustomRowTemplate}" />
        </Style>
    </local:MyGridRowStyleSelector.MoreResultsRowStyle>
    <local:MyGridRowStyleSelector.NormalRowStyle>
        <Style TargetType="telerik:TreeListViewRow"
                   x:Name="NormalResults">
        </Style>
    </local:MyGridRowStyleSelector.NormalRowStyle>
</local:MyGridRowStyleSelector>


The MoreResults TreeListViewRow Control Template is taken from Blend "Copy Template" on the TreeListViewRow but I have simply replaced the PART_DataCellsPresenter with :

<ItemsControl x:Name="PART_DataCellsPresenter"
                                Grid.ColumnSpan="2"
                                Grid.Column="1"
                  ItemsSource="{Binding Path=Functions}">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <Grid>
                <Button Content="{Binding}" />
            </Grid>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
</ItemsControl>

I have this basic structure working and the MoreResults rows show Buttons as expected, but  there are exceptions that show up in the output window : A first chance exception of type 'System.ArgumentException' occurred in Telerik.Windows.Data.dll

Would this be the suggested approach or is there a better way, that doesn't cause the exceptions ?
Dimitrina
Telerik team
 answered on 05 Aug 2013
3 answers
155 views
I need to use the datacontext of my gridview (or window) to bind my column headers.  I tried both the gridview and window relativesource and got the same results.  My initial view of the grid looks great - any of the columns that are displayed on the initial view have the correct headers.  However, if you scroll to the right, any of the columns that weren't originally displayed don't have a header (the datacontext has the correct labels - I've checked).  I made the window wider which meant that more column headers display but still not all.  Is there some trick to getting all the column headers to bind?

I have attached pictures of the left and right side of the grid.

Here is an example of one of the data columns.  Note: The values are displayed correct.

<telerik:GridViewDataColumn ColumnGroupName="ColumnsTrans" DataMemberBinding="{Binding Value1}" DataFormatString="{}{0:f2}" IsFilterable="False" IsReadOnly="True" Width="70" FooterTextAlignment="Right" >
                            <telerik:GridViewDataColumn.Header>
                                <TextBlock TextWrapping="Wrap" TextAlignment="Center">
                                    <TextBlock.Text>
                                        <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}" Path="DataContext.Label1" />
                                    </TextBlock.Text>
                                </TextBlock>
                            </telerik:GridViewDataColumn.Header>
                            <telerik:GridViewDataColumn.AggregateFunctions>
                                <telerik:SumFunction Caption="" ResultFormatString="{}{0:N2}" ></telerik:SumFunction>
                            </telerik:GridViewDataColumn.AggregateFunctions>
                        </telerik:GridViewDataColumn>
Vera
Telerik team
 answered on 05 Aug 2013
5 answers
391 views
We're really excited about this control as it will really push us forward in a lot of heavy scenarios where "normal" programming falls apart.  I have to echo a previous post that documentation should be a priority.  I think people will simply skip over this if documentation isn't present.

The thing I'm fighting is this.  We have in our N-Tier architecture a DbContext from a CodeFirst EF model and not a straight ObjectContext.  The fluent api exposed by the DbContext is something we've been using for nearly 6 months now.  I'm getting the underlying ObjectContext from the DbContext using the code below, but I am getting a Query Object Not Found error no matter which table I attempt to tie to.  My guess is that, in reversing a DbContext back to an ObjectContext, I'm losing a lot of my definitions.

1.  Do you support DbContexts?
2.  If not (which I suspect is the answer), how could I use this control with a DbContext?

Thanks!
Doug

((IObjectContextAdapter) GearboxEntities).ObjectContext;
Rossen Hristov
Telerik team
 answered on 05 Aug 2013
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?