Telerik Forums
UI for WPF Forum
3 answers
206 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
149 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
385 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
1 answer
60 views
Hello Every one

i am already buy the product WPF control Package

and i have a big problem with Rich text box Scroll performance problem with large documents viewing

is there is any solution for this issue.

thanks
Hamed
Top achievements
Rank 1
 answered on 05 Aug 2013
3 answers
313 views
I currently have a RadChartView control that is bound to some objects whose name is on the X-Axis (Horizontal) and total-time as a TimeSpan on the Y-Axis (Vertical).  I would like the vertical axis to show labels such as 00:16:29.6 for sixteen minutes, twenty-nine and six-tenths seconds.  I also want the vertical axis to automatically scale as it does with numerical values.

I have tried using the DateTimeContinuousAxis as the vertical axis which was bound to a DateTime with the hour, minutes, seconds, and milliseconds populated but the chart rendered the objects with a zero value.  I have also tried just binding a CategoricalAxis to the TimeSpan property but that again renders all of the items with a zero value.

Does anybody know how to do this by overriding some classes or if there's any plans to include native TimeSpan representations in the RadChartView?
Petar Kirov
Telerik team
 answered on 02 Aug 2013
11 answers
966 views

Hi,

i am using the namespace - Telerik.Windows.Controls(2009.3.1208.35)

How to add button column to telerik radgridview for WPF programatically
and how to fire the event.

Thank you,
Shashi

hart
Top achievements
Rank 1
Veteran
 answered on 02 Aug 2013
5 answers
256 views

Hello,

 

I am using Pivot Grid which has its DataProvider’s ItemSource as DataTable with large number of rows (around 500000).

Pivot grid takes some time to display this data and shows wait window which says “Loading…”.

 

  1. Is there any way to find out status of DataProvider or PivotGrid control which indicates that data is being displayed in pivot grid control? I checked DataProvider Status and this is always “Ready” during this time. Actually pivot grid starts showing data only when DataProvider becomes Ready, but then if there is huge data to display, I want to do some operations during this time and also when data is fully shown to pivot grid.

 

  1. Also I want to know if I can override default wait window and show my own wait window.

 

Kindly let me know if I can achieve this somehow.

 

Thanks,

Shiv Ram

Rosen Vladimirov
Telerik team
 answered on 02 Aug 2013
4 answers
97 views
Hi,

I wants to add the button(Expansion Button) in RadRichTextboxRibbonUI which allow to implement the following functionality.

When I select a word from the RadRichTextBox and click on Expansion Button, That word allow a area to add more detail information about this word in same window. When I write some more detail about this word and again wants add more detail about any word of that detail information that is Expansion button functionality need to implement in nested structure.

For reference I have added the picture file for this issue.

How to implement this scenario in RadRichtextBox


Please Help

Regards,

Sopan Vaidya

Iva Toteva
Telerik team
 answered on 02 Aug 2013
2 answers
152 views
Hello,

I have defined a WPF application that uses Telerik controls using Visual Studio 2010 SP1.

I have copied what is in Debug folder (.exe files and .dll binaries) to another machine and it worked great. However, I don't want the Telerik binaries to be copied along the exe file. I want the exe to work with the local install of Telerik on the target machine. I installed Telerik on the target machine and added the Paths to binaries to the System Environment Path variable. Yet, I couldn't run the .exe file yet. 
How can I achieve this?

link of question on StackOverflow: WPF App: get Telerik binaries from install on target machine

What I tried so far:

  • I installed Telerik on the target machine and added the Paths to binaries to the System Environment Path variable. Yet, I couldn't run the .exe file yet. How can I achieve this?
  • I installed gacutil.exe and added the binaries to GAC. I can test: gacutil /l | findstr “Telerik” and find all assemblies I added.
  • I tried to place these assemblies (Telerik) in C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 trying both x64 and x86.
  • I tried to place these assemblies (Telerik) in C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 trying both x64 and x86.

None of the above works. The only way is having the .dll files right next to the .exe in the same directory which I do not want.

Thanks,

Saher
Top achievements
Rank 1
 answered on 02 Aug 2013
1 answer
59 views

Hello, I downloaded 2013_2_0729 hotfix and RadRibbionView doesn't work as before.
I'm using the below code (called from the OnContentRendered event of RadRibbonWindow).
_mainRibbon is a RadRibbonView instance and each tab in  _mainRibbon is dynamically created.
This code worked fine in former versions, but after applying 2013_2_0729 hotfix, NullExceptionError occurrs in _mainRibbon.Visibility = Visibility.Visible;. Can this be fixed?

        private void createFeatures()
        {
            List<IPluginFactory> featureFactories = PluginManager.Instance.GetFactories(typeof(IFeatureFactory));
            foreach (IPluginFactory factory in featureFactories)
            {
                // Providing callback (delegate) to create any number of FeatureWindows from the feature
                IFeature feature = (factory as IFeatureFactory).Create(_mainRibbon, createFeatureWindow, create3DWindow);
            }

            _mainRibbon.SelectedIndex = 0;
            _mainRibbon.Visibility = Visibility.Visible;
        }

Tina Stancheva
Telerik team
 answered on 02 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
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?