Telerik Forums
UI for WPF Forum
7 answers
268 views
Hi,
I've tried to replace the data provider in the OLAP support example with the Adomd one by the following way but when I run the project I cannot see fields and data (but without errors). I'm using SQL Server 2012.
I have used the same connection string used in Excel to open this local cube (that works).
Local cube was generated with XMLA / ASSL and not with CREATE GLOBAL CUBE command.

...
xmlns:telerikDataProviderAdomd="clr-namespace:Telerik.Pivot.DataProviders.Adomd;assembly=Telerik.Pivot.DataProviders.Adomd"
...
<telerikDataProviderAdomd:AdomdDataProvider x:Key="dataProvider">
    <telerikDataProviderAdomd:AdomdDataProvider.ConnectionSettings>
        <telerikDataProviderAdomd:AdomdConnectionSettings
            Cube="MyCube"
            Database="MyDatabase"
            ConnectionString="Provider=MSOLAP.5;Persist Security Info=True;Data Source=C:\1.cub"/>
    </telerikDataProviderAdomd:AdomdDataProvider.ConnectionSettings>
</telerikDataProviderAdomd:AdomdDataProvider>

If I try to change C:\1.cub with "localhost" (I've a SSAS instance on localhost with the same cube), all works perfectly.

Does Adomd provider supports local cube? Or what is wrong in my code?

Many thanks in advance!
Regards, 
Davide


       

 

 

 

 

Polya
Telerik team
 answered on 30 Jan 2015
3 answers
236 views
Hi, sorry but my english is not well. I´m newby in development WPF app.

I have a problem with implement drag drop between two treeview and i need help.
That´s what i want to do:
  1. I have two treeview. First treeview has hierarchy like:

      A1
          A1.1
             A.1.1.1
          B1.2
             B.1.2.1
             B.1.2.2
                B.1.2.2.1
                B.1.2.2.2
             B.1.2.3
             ...
2. The other treeview is empty

Well, i like drag both elements as parents from treeview (1) to (2). 
The first requirement is that drag drop from 1 to 2 the elements from 1 are deleted and can drag parents complete with all its child
The second requirement is when drag from 2 to 1 can only be done on the parent element to which it belongs for example:
    Subitem B.1.2.2.2 can only drag about B.1.2.2
The third requirement is that within the tree two items can be sorted between them

Can I help me?, please

Milena
Telerik team
 answered on 30 Jan 2015
3 answers
120 views
Hello Telerik,

I created a custom RadDatePicker and I'm trying to use a custom data template selector. The solution worked for disabling some dates, no problem.

Now my problem is that whenever you go back and forward in the calendar it does not update it's visual style. It works fine when going from one month to another , however when you try to go to year/10 year/100 year view and go back and forward, it does not update correctly.

In the example u provided it also has this exact behavior, try the raddatetimepickerlocalization.zip from the following post:

http://www.telerik.com/forums/daytemplateselector

Thanks in advance,
Ben
Kalin
Telerik team
 answered on 30 Jan 2015
6 answers
482 views
I'm trying to add a CellStyleSelector on autogenerated columns, but no style is being applied.  The grid is below.

<telerik:RadGridView Name="rgridProgramSearchResults" AutoGenerateColumns="True" AutoGeneratingColumn="rgridProgramSearchResults_AutoGeneratingColumn" CanUserFreezeColumns="False" IsReadOnly="True" Grid.Column="1"
                ItemsSource="{Binding}" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" Margin="0,0,0,30" SelectionMode="Multiple" >
    <telerik:RadGridView.Columns>
        <telerik:GridViewSelectColumn UniqueName="Select" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

and the style
<me:ImportStyle x:Key="stadiumCapacityStyle">
    <me:ImportStyle.BigStadiumStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Background" Value="Red"/>
        </Style>
    </me:ImportStyle.BigStadiumStyle>
    <me:ImportStyle.SmallStadiumStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Background" Value="Yellow" />
        </Style>
    </me:ImportStyle.SmallStadiumStyle>
</me:ImportStyle>

The auto generate event
private void rgridProgramSearchResults_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
     e.Column.CellStyleSelector = Application.Current.Resources["stadiumCapacityStyle"] as StyleSelector;
}


and the class

public class ImportStyle : StyleSelector
{
    public override Style SelectStyle(object item, DependencyObject container)
    {
        return BigStadiumStyle;
 
    }
    public Style BigStadiumStyle { get; set; }
    public Style SmallStadiumStyle { get; set; }
}
Boris
Telerik team
 answered on 30 Jan 2015
1 answer
384 views
Hi

we have a RadGridView in which we want to have a column which is bound to a Boolean property in view model, doing this we also want to use SelectAll functionality provided by GridViewSelectColumn

so when select all is performed, all the rows also have their bound object property set to true as well.

Is there any way by which we can bind a property to SelectColumn ?

Thanks
M.
Stefan
Telerik team
 answered on 30 Jan 2015
10 answers
588 views
Hi team,

Say class A has a property which is a collection of Class B. Now i want to design a UI attached. 

So I wonder if propertygrid has such a built support, if not, how am i gonna do this? A self defined a data template for the property?

Maya
Telerik team
 answered on 30 Jan 2015
3 answers
246 views
Hi,

Is it possible, on RadDatePicker control, to handle click event on week number ?

If so, how to get the clicked week number ?

Thanks
saw
Top achievements
Rank 1
 answered on 30 Jan 2015
1 answer
383 views
hi
how can i use image and text in same Cell?
like this
(Image)-MyName
(Image)-ID
????
Stefan
Telerik team
 answered on 29 Jan 2015
5 answers
375 views
Hi,

I would like to know if it's possible to change the cursor in the resize process when we try to resize an appointment over a slot that I don't want to permit. A cursor like we have when we block the drop operation.

Also, I would like to know if it's possible to resize of an readonly slot depending on a specific scenario?

Thank's
Alain
Scott
Top achievements
Rank 1
 answered on 29 Jan 2015
1 answer
316 views
Hi,

My application is in MVVM. I have a RadGridview where 2 columns are Databound and I have to generate third column dynamically with RowNumbers.
Here is my code. I am getting (collection) in the third column. The other 2 columns are fine. Please help me on this. 

XAML:

<telerik:RadGridView  Name="TestGridView"  ItemsSource="{Binding TestListView}" AutoGenerateColumns="False">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewColumn Header="RowCount">
                                <telerik:GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel>
                                            <TextBlock Text="{Binding TestRowNumber}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerik:GridViewColumn.CellTemplate>
                            </telerik:GridViewColumn>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="NetBIOS Name" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Salary}" Header="Model" />
     </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

ViewModel:

public void Testupdate()
        {
            RadObservableCollection<int> rno = new RadObservableCollection<int>();
            for (int i = 1; i <= TestList.Count; i++)
            {
                rno.Add(i);      
             }  
          TestRowNumber= rno;
         } 

  private RadObservableCollection<int> _testRowNumber;
        public RadObservableCollection<int> TestRowNumber
        {
            get { return _testRowNumber; }
            set
            {
                _testRowNumber = value;
             
                OnPropertyChanged();
            }
        }

Its showing correct count in the rno with items 1 to 6. But when displaying on the grid, its showing (collection). I am not able to trace where I am going wrong. Please correct me.

Thank you.










Boris
Telerik team
 answered on 29 Jan 2015
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?