Telerik Forums
UI for WPF Forum
11 answers
195 views
Hi,

I am building a cube/analytics viewer for a client and the RadPivotGrid and RadPivotFieldList combination works really well until we try to swap the connection string and point the RadPivotFieldList  control at the new cube.

However when we change the cube in the connection string the RadPivotGrid reloads with the new report, however the  RadPivotFieldList does not refresh it's field list, so we are stuck with the same fields as the first cube.
Both cubes work as we can load either of them first, just never change it.

I am doing this in codebehind and viewmodel (long story) and storing the serialised data provider in SQL, (this all works beautifully).

My latest code looks like this;

private Telerik.Pivot.Adomd.AdomdDataProvider _provider { get; set; }


 var x = _viewModel.DataProvider;
_provider = new AdomdDataProvider();
_provider = (Telerik.Pivot.Adomd.AdomdDataProvider)x;

var url = _viewModel.Analytics.GetOrDefault("AnalyticsURL");
var database = _viewModel.SelectedCube.Catalog;  
var cube = _viewModel.SelectedCube.Cube;  

var ConnectionSettings = new Telerik.Pivot.Adomd.AdomdConnectionSettings()
{
    Cube = cube,
    Database = database,                   
    ConnectionString = String.Format("Data Source={0}", url)
};
_provider.ConnectionSettings = ConnectionSettings;
 
_provider.BeginInit();
 
radPivotGrid.DataProvider = _provider;
radPivotFieldList.DataProvider = _provider;

_provider.EndInit();


The 'Cube' is the only bit that changes in the connection string.
I have looked online and cannot find any links to switching the cube at runtime, is there anyway to do this?

thanks for the help.
craig
Rosen Vladimirov
Telerik team
 answered on 10 Jul 2014
23 answers
431 views
I'm trying to add floating panes on event. I modified <DockingAndMVVM.zip> published on another forum discussion.
Want to add pane to PaneCollectionFloat on command/event. This works only if PaneCollectionFloat collection is not empty on start og application. Can you suggest any solution for this problem ?

   <telerik:RadDocking Grid.Row="1">
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup x:Name="group"
                        local:PaneGroupExtensions.ItemsSource="{Binding PaneCollectionLeft}"
                        local:PaneGroupExtensions.ItemTitleDisplayMemberPath="Header">
                    <local:PaneGroupExtensions.ItemContentTemplate>
                        <DataTemplate>
                            <Button Content="{Binding Content.SomeContent}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemContentTemplate>
                    <local:PaneGroupExtensions.ItemHeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Header}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemHeaderTemplate>


                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
            <telerik:RadSplitContainer InitialPosition="FloatingDockable">
                <telerik:RadPaneGroup 
                        local:PaneGroupExtensions.ItemsSource="{Binding PaneCollectionFloat}"
                        local:PaneGroupExtensions.ItemTitleDisplayMemberPath="Header">
                    <local:PaneGroupExtensions.ItemContentTemplate>
                        <DataTemplate>
                            <Button Content="{Binding Content.SomeContent}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemContentTemplate>
                    <local:PaneGroupExtensions.ItemHeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Header}" />
                        </DataTemplate>
                    </local:PaneGroupExtensions.ItemHeaderTemplate>


                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
Nick
Telerik team
 answered on 10 Jul 2014
1 answer
150 views
I am using the RadPivotGrid with a SQL Server Analysis server (2014) and all appears to work as expected. However one issue I noticed is that any fields I select to appear as "values" - i.e. the 'facts' - I do not get the option to set the number format. For example when I select a field from a PivotFieldList that is bound to a collection I get the options Sum, Count, Average, Number format etc when I click on the down arrow of any fields in the "Values" section of the field List,

However when I select a field from a field list that uses a SQL Server Analysis Cube as the data source I only get the options Index, % of Grand Total, More Calculations and clear calculations. There is no option to set the number format - how do I achieve this?  - thanks
Rosen Vladimirov
Telerik team
 answered on 10 Jul 2014
1 answer
191 views
We have an application we currently deploy via ClickOnce. We recently added the EQATEC monitoring capabilities to our project. But when published as a ClickOnce application, the install failed because it says the EQATEC dll must be installed to the GAC. Is there a workaround for ClickOnce applications? How can we distribute our application with EQATEC? It would be a shame to remove all the EQATEC references because we see the value in collecting the usage data.

Steve
Yana
Telerik team
 answered on 10 Jul 2014
6 answers
804 views
Hi,
is it somehow possible to specify a custom IComparer (or IComparer<string>) which shall be used for sorting all or selected columns?
Ideally, it should also be applied to sorting groups and sorting the filter items.
I would prefer an generic solution where I don't have to apply it to every column (e.g. via some Style that is applied to every column).

I want that
- empty values (null, "") are at the end (when sorting Ascending), and
- use a natural sort order for strings (e.g. "M4" < "M12")

In the custom sorting example (http://www.telerik.com/help/wpf/gridview-sorting-custom.html)
- you change the ItemsSource of the grid, which destroys the binding (however, in my case the ItemsSource may change)
- you have to know the underlying data structure to get the properties
- you assume that you use a first level property for the DataMemberBinding
- and it applies only to sorting, but not grouping and filtering.

Thank you in advance.
Alex
Dimitrina
Telerik team
 answered on 10 Jul 2014
1 answer
210 views
Hi,

I have created a simple spread sheet control in my WPF app without any tool bars as follows:

<telerik:RadSpreadsheet x:Name="radSpreadsheet"/>

When I right click on a worksheet Tab in the sheet selector and bring up the worksheet context menu, the Delete and Insert items do not work. (I have multiple worksheets)

The Rename and Tab Colour items do work, as does the special Tab to add a worksheet.

Can you please let me know if I am doing something wrong?

Thanks
Anthony
Anna
Telerik team
 answered on 10 Jul 2014
6 answers
834 views
I want to show only  year on raddatepicker , and the user can enter a value is year.
But it will error if I just enter the value in 2014,but if I enter 01/01/2014, there is no error message.
In the hidden code:
 
  timePicker.Culture.DateTimeFormat = new System.Globalization.DateTimeFormatInfo ShortDatePattern = {"yyyy"};

XAML:
DateSelectionMode = "Year"


Sorry my english :)
Kalin
Telerik team
 answered on 10 Jul 2014
4 answers
349 views
Hi,

I need to create a custom theme (With White,Gray,Blue)  for my WPF Application which has Tabs, Grids, Text Boxes and Toolbars. I would like to have it look  similar to  3rd image of Figure 1 in the link ( I need Toolar, Tab Headers,Grid Headers and Selected Rows Blue in color, with text whitish. The grid rows should have White background with black text.)
http://www.telerik.com/help/wpf/common-styles-appearance-colorizing-metro-theme.html#seeAlsoToggle

Can some one let me know how this can achieved. 

I tried to apply Windows8Theme and change the colors in OnStartup() method as below:
StyleManager.ApplicationTheme = new Windows8Theme();
Windows8Palette.Palette.MainColor = Colors.White;
Windows8Palette.Palette.AccentColor = Colors.Blue;
Windows8Palette.Palette.BasicColor = Colors.Blue;
Windows8Palette.Palette.StrongColor = Colors.White;
Windows8Palette.Palette.MarkerColor = Colors.Blue;
Windows8Palette.Palette.ValidationColor = Colors.Blue;
But that does not loo good on RadGridView as the Grid headers and sort icons done show up.







Vanya Pavlova
Telerik team
 answered on 10 Jul 2014
1 answer
137 views
Hello!

I want to use variables in the middle of the imported rtf document.

When I write:
RtfBox.InsertField(new DocumentVariableField() { VariableName = "Name" }, FieldDisplayMode.Code);
field appears at the beginning of the document.

Is there any way to force field to appear at concrete place?



Petya
Telerik team
 answered on 09 Jul 2014
1 answer
164 views
Hi
I'm using RadGridView with all columns width set to "*". I set grid minwidth property and expect to see horizontall scrollbar on form resizing, but nothing appears. Documentation says not to use scrollviewer with radgridview.

please, suggest a proper way to solve the problem
wbr, 
slava
Yoan
Telerik team
 answered on 09 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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?