Telerik Forums
UI for WPF Forum
3 answers
236 views
Hi,

I would like to know if it's possible to have the same application button than the RibbonBar?

Thank's
Myth
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
183 views
We are using a RadBusyIndicator and everything is working fine, except the fact, that the BusyIndicator disables editing of enclosed controls in Design Mode.

Imagine there is a window with some buttons and textboxes and the BusyIndicator encloses these buttons and textboxes. During runtime enabling and disabling these controls via BusyIndicator works fine, but in VS2010 design mode you cannot e.g. shift the buttons around. Of course you can manually change the xaml code, but this is cumbersome.

Question: If I have integrated a BusyIndicator like this, how do I disable it during design time?

<telerik:RadBusyIndicator 
IsBusy="{Binding IsBusy, FallbackValue=False, TargetNullValue=False}" ...>
Some Buttons and TextBoxes
</telerik:RadBusyIndicator>
 
Rosen Vladimirov
Telerik team
 answered on 16 Sep 2013
2 answers
94 views
I have a RadGridView in a RadPane. The RadGridView has two fixed GroupDescriptors.

The pane is docked to the left by default and the first image shows the groupdescriptors working as intended. If I move the pane by dragging the header the groupdescriptors are instantly lost and I get the view in the 2nd attachment.

Is this normal behavior? If so is there a way to trap the event and stop this from taking place?

Thanks...
Mike
Top achievements
Rank 1
 answered on 16 Sep 2013
1 answer
191 views
Hello,
I'm creating a new WPF application and would like to use implicit styles. The application currently uses the Windows8 theme.
I've added the references to the Telerik assemblies, including Telerik.Windows.Themes.Windows8.
In App.xaml, I have:
<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
      <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>

In Window1.xaml, I just have added a RadButton.
When I run the application, the button is displayed with the right theme, but the Visual Studio 2012 designer doesn't show the content of the button, as if the theme was not loaded.
How can I have the Visual Studio designer display the button correctly?

Patrick
Rosen Vladimirov
Telerik team
 answered on 16 Sep 2013
1 answer
205 views
Hello, I have problem with radgridview.
Im using mvvm pattern. In viewmodel i implemented observablecollection which contain rows with data. : 
xaml:
        <telerik:RadGridView ItemsSource="{Binding MyCollection}"
                             x:Name="RadGridViewElement"
                             FilteringMode="Popup"/>

viewmodel:

 private ObservableCollection<myrow> myCollection = new ObservableCollection<myrow>();

        public kolekcja()
        {

            generatedata();
        }
        
        private void generatedata()
        {
           myrow row = new myrow();
            row.Imie = "aa";
            row.Nazwisko = "bb";
            myCollection.Add(row);
            myrow row1 = new wiersz();
            row1.Imie = "cc ";
            row1.Nazwisko = "dd";
            myCollection.Add(row1);
        }

        public ObservableCollection<wiersz> MyCollection
        {
            get { return myCollection; }
            set { myCollection = value; }
        }

Is there any option to return filtered  radgridview data rows  (update myCollection ? or save rows to other collection ?) I would like create graph with the filtered data . I looking for the easiest way to create column header filter from GUI (Just like [DisplayAttribute( AutoGenerateField = false )] ) 
any idea ?
kind regards

 
Rossen Hristov
Telerik team
 answered on 16 Sep 2013
8 answers
333 views
When I remove a node (using the DEL key) I want its connections to be removed too. As it is now, I get these orphaned connections when removing a node.

This is the scenario:
1) Node A is connected - through connection X - to node B.
2) B is selected. I press the DEL key. Both B and X are removed.
3) I press Ctrl+Z. Both the removal of B and X are undone.

This behavior is absolutely necessary for our product. How can I accomplish this?
Petar Mladenov
Telerik team
 answered on 16 Sep 2013
1 answer
257 views
Hi,

I want to put the following RTB fir the LeftPage and rightPage for the book.

this is the Dictionary code where I created the Left and right pages for the book :

                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
        <Style x:Key="myStyle" TargetType="Button">
            <Setter Property="Background" Value="Orange" />
            <Setter Property="FontStyle" Value="Italic" />
            <Setter Property="Padding" Value="8,4" />
            <Setter Property="Margin" Value="4" />
        </Style>
     
 
        <!--  Declare the template used for the left pages  -->
        <DataTemplate x:Name ="LeftPageTemplate"   >
            <StackPanel Margin="10" Background="LightGray">
 
               
            </StackPanel>
        </DataTemplate>
        <!--  Declare the template used for the right pages  -->
        <DataTemplate x:Name="RightPageTemplate" DataType="Grid"  >
            <StackPanel Margin="10" Background="LightBlue">
                <TextBlock HorizontalAlignment="Right"
                           FontSize="24"
                           FontWeight="Bold"
                           Text="{Binding Title}" />
                <Image Width="240"
                       Height="320"
                       Source="{Binding Image}" />
                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                    <TextBlock FontWeight="Bold" Text="Date Taken:" />
                    <TextBlock Text="{Binding DateTaken}" />
                </StackPanel>
                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                    <TextBlock FontWeight="Bold" Text="Size:" />
                    <TextBlock Text="{Binding Size}" />
                </StackPanel>
            </StackPanel>
        </DataTemplate>
 
      
 
</ResourceDictionary>



The problem is, How do I create the Template, I tried the example in the Help Document and it still do not work.
 I get the following error,
'Could not register named object. Names not supported under ResourceDictionary scope.' Line number '12' and line position '23

Please see attached image.

Regards,
Omar



o
Top achievements
Rank 2
 answered on 15 Sep 2013
5 answers
147 views
Recently, I've been working on a prototype to binding ADO.NET object to RadTreeListView for our project.
I have one DataSet which contains one DataTable. This table has 3 columns: ID, ParentID and Description. Create relation for this table between ID and ParentID columns. In another word, this is a self-referenced table.
Now create one DataView upon this DataTable and add needed filter for it.
1. Use the data set as the DataSource of RadTreeListView
2. Binding data view to ItemSource of RadTreeListView
3. Binding relation to ItemsSource of ChileTableDefinitions
See following codes:
<telerik:RadTreeListView Name="radTreeListView_left" DockPanel.Dock=

"Left" ItemsSource="{Binding TreeVM}" SelectedItem="{Binding SelectedEntityRow}">

 

 

<telerik:RadTreeListView.ChildTableDefinitions>

 

  <telerik:TreeListViewTableDefinition ItemsSource="{Binding Source=DataSetVM, Path=TreeRelation}"/>

 

</telerik:RadTreeListView.ChildTableDefinitions>

 

 

</telerik:RadTreeListView>

 

 

The hierarchy data can be display correctly in TreeListView. Since I am binding the data view to UI with Two Way mode, so I think if I detele one row in data view, the UI will be updated accordingly. But actually, only delete a root item can refresh correctly. Delete sub items on UI cannot refersh, they need additional refersh manually. For example, I have following structure in TreeListView:
Group 1
   |_Item 1
   |_Item2
Group 2
Delete Group2 in DataSet, UI will remove Group 2 automatically. But if I remove Item 2 in DataSet, UI will not update unless I refersh UI manually. 
So my question is does anybody know how to solve this sub items refersh problem? This is very important for us to decide if choose Telerik or not. So please give any clue you may have.

Nagaraj
Top achievements
Rank 1
 answered on 15 Sep 2013
0 answers
95 views
Dear Sir

I have a table(in SQL), like this: (there are some hierarchical data in this table)

ID    F_ID        Title 
1       0          Hardware
2        1          Laptop
3        2           Sony
4         2          Toshipa
5         2          Asus
6        1            Monitor
7         6            LG
8         6             Samsung

I have used the RadGridview for hierarchical  this data.
The XAML code is:

<telerik:RadGridView Grid.Row="1"  Name="radGridView1"  ShowGroupPanel="False"  AutoGenerateColumns="False"  ItemsSource="{Binding}"  >
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition>
                    <telerik:GridViewTableDefinition.Relation>
                        <telerik:TableRelation IsSelfReference="True">
                            <telerik:TableRelation.FieldNames>
                                <telerik:FieldDescriptorNamePair
                            ParentFieldDescriptorName="ID"
                            ChildFieldDescriptorName="F_ID" />
                            </telerik:TableRelation.FieldNames>
                        </telerik:TableRelation>
                    </telerik:GridViewTableDefinition.Relation>
                </telerik:GridViewTableDefinition>
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" IsGroupable="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding F_ID}" IsGroupable="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Title}" IsGroupable="False" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

and the C# code is:

private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MyLinqObjDataContext db = new MyLinqObjDataContext();
            radGridView1.ItemsSource = db.TBLTests;

        }

and the result of these code is shown in R1.png (attached file).

Now, Could you allow me to know:

1) How I could hide the "Laptop", "Sony", "Toshiba", "Asus" from root of radGridView. Because they are the child of "Hardware", I want to see them ONLY when  the "Hardware" item, is expanded.

2) How I could hide the "+" icon, from beside of "Sony", "Toshiba", "Asus". Because they have not child (not expandable).


I am waiting for your help, PLEASE?
thanks;
 





Hossein
Top achievements
Rank 1
 asked on 14 Sep 2013
0 answers
112 views
Dear Sir

Could you convert this St. from Vb.net to C# please?

Dim objParams As Object() = {DirectCast(DirectCast(row.DataContext(), System.Object), System.Data.DataRow).ItemArray(0)} 

Thanks






Hossein
Top achievements
Rank 1
 asked on 14 Sep 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
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?