Telerik Forums
UI for WPF Forum
5 answers
113 views

I have a Radlistbox binded trough ItemsSource and Windows8TouchTheme applied.

Inside each item in RadListBox there is a button with a click event.

If the item is not selected the event is fired, but if the item is selected the event is NOT fired.

If I remove the Windows8TouchTheme the event is always fired.

A think this is a bug, any workaround for this?

Alek
Telerik team
 answered on 05 Jun 2014
2 answers
131 views
I am using a TreeListView and have multiple roots on my tree but they share a common child.
A -> B
D -> B
B -> C

I would expect to see two roots A and D which expand out to
A
  B
    C
D
  B
    C
The TreeListView roughly displays this but expanding and collapsing is behaving strangely.
If I expand B it sometimes expands both Bs and sometimes C becomes its own row that will not collapse into B.
Can someone help explain this behavior to me?






















































Dimitrina
Telerik team
 answered on 05 Jun 2014
6 answers
106 views
Hi Telerik,

I'm testing the telerik components in order to see if we could use them in our products. I was very happy to see the nice themes you guys provide. Although, I can't make StyleManager work.

There is no problem when creating a WPF application, but the following project produces errors all the time (unable to locate the source for Themes.cs):

I create a class library with some XAMLs. This class library is registered to be com accessible in order to make 3d party softwares (managed and unmanaged) able to use our dll. This fails however when I use a stylemanager anywhere on the XAML.

I've provided 2 solutions as an example. testTelerikStyleManager creates the com accessible dll (and also a debug forms application => In which the stylemanager doesn't provide an error) and testTelerikStyleManager2 which has a forms application that will create an instance of our com-accessible dll. That's where stylemanager crashes.

download: http://www.dstudiofs.eu/uitwissel/testTelerikStyleManager.rar

If you would like to test on your machines, the workflow is:
1 build testTelerikStyleManager in debug mode to register Class1 for com interop
2 open testTelerikStyleManager2 and start debugging.... The error should be shown in a MessageBox when clicking the button

Kind regards
Masha
Telerik team
 answered on 05 Jun 2014
3 answers
157 views
I am using one grid inside radcombobox just like the xaml bellow.

      

  
<telerik:RadComboBox DisplayMemberPath="Descricao" Name="radComboBoxResultado" Grid.Column="2" StaysOpenOnEdit="True" Height="26">             <telerik:RadComboBox.Items>                 <telerik:RadComboBoxItem>                     <telerik:RadComboBoxItem.Template>                         <ControlTemplate>                             <Grid>                                 <Grid.RowDefinitions>                                     <RowDefinition Height="*"></RowDefinition>                                     <RowDefinition Height="*"></RowDefinition>                                 </Grid.RowDefinitions>                                 <telerik:RadGridView  x:Name="RadGridView" AutoGenerateColumns="False" ShowGroupPanel="False" CanUserFreezeColumns="False"                                               RowIndicatorVisibility="Collapsed" IsReadOnly="True" MinWidth="300" MaxWidth="600"                                              IsFilteringAllowed="False" ItemsSource="{Binding PagedSource, ElementName=RadDataPager}" SelectionChanged="RadGridView_SelectionChanged"                                              Height="150" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" Loaded="RadGridViewResultadoBusca_Loaded">                                     <telerik:RadGridView.Columns>                                         <telerik:GridViewDataColumn Header="Referência" Width="120" DataMemberBinding="{Binding CodigoProduto}" IsReadOnly="True"></telerik:GridViewDataColumn>                                         <telerik:GridViewDataColumn Header="Produto" Width="*" DataMemberBinding="{Binding Descricao}" IsReadOnly="True"></telerik:GridViewDataColumn>                                         <telerik:GridViewDataColumn Header="Venda" Width="*" DataMemberBinding="{Binding ValorVenda}" DataFormatString="C2"  IsReadOnly="True"></telerik:GridViewDataColumn>                                     </telerik:RadGridView.Columns>                                 </telerik:RadGridView>                                 <telerik:RadDataPager Name="RadDataPager" Grid.Row="1" DisplayMode="FirstLastNumeric,Last" PageSize="20" Loaded="RadDataPager_Loaded"></telerik:RadDataPager>                             </Grid>                         </ControlTemplate>                     </telerik:RadComboBoxItem.Template>                 </telerik:RadComboBoxItem>             </telerik:RadComboBox.Items>         </telerik:RadComboBox>



Everything is ok but when i select the row in grid i'd like the text to appear in Text property of RadcomboBox  .

I've tried to binding the selected items together, and does not works, as well as, implement the selectedChnaged of the grid to set the combo.Text property with no success.


How can i achieve this?

Thanks
Yana
Telerik team
 answered on 05 Jun 2014
4 answers
335 views
Hello!

I need to process PreviewDrop  event from telerik's DragDropManager, and I am using Prism 5.0 in my WPF application.
I tried to search documentation and forums, but I was not able to find examples of how can I subscribe my command from ViewModel with the DragDropManager event PreviewDrop to be able to check if operation can be done, or I need to cancel the drop.

Can anyone help me with this?
Dmitry
Top achievements
Rank 1
 answered on 04 Jun 2014
1 answer
125 views
I want to add my custom attribute in SaveLayout.xml (RadDocking.SaveLayout).

See attach file.

and How to read that attribute for radpane header visible hidde by RadDocking.LoadLayout

I want to your recommand.




George
Telerik team
 answered on 04 Jun 2014
1 answer
84 views
http://www.telerik.com/forums/broken-intellisense-after-adding-tileview-and-radialgauge-to-the-project
Same problem as posted above.  
.Net 4.5, VS 2012.
Problem appeared after adding a TileList.  Removing the TileList didnt fix it.  
Neither did rebooting, clearing bin directory and obj directory.  
Boris
Telerik team
 answered on 04 Jun 2014
1 answer
250 views
Hello,

I've encountered a problem that looks like so strange and I don't know how to deal with it. I tried a lot of combinations but nothing worked.

I've the "main" class 'MainWindow.cs' which has :

Datas datas = new Datas();
ConfigTabCameras ctc = new ConfigTabCameras(datas);
this.DataContext = datas;

MainWindow.xaml : 1st row doesn't work, 2nd works
<custom:TabCameras />
<telerik:RadGridView ItemsSource="{Binding DatasTabCameras}"/>

Datas.cs :
private ObservableCollection<ViewTabCameras> datasTabCameras;
 
public ObservableCollection<ViewTabCameras> DatasTabCameras
{
    get
    {
        if (this.datasTabCameras == null)
        {
            this.datasTabCameras = new ObservableCollection<ViewTabCameras>();
        }
 
        return this.datasTabCameras;
    }
    set
    {
        this.EventPropertyChanged("DatasTabCameras");
    }  
}
 
public Datas()
{
 
}

And the inheritance of INotifyPropertyChanged etc...

ConfigTabCameras :
public class ConfigTabCameras : AbstractSql
    {
        public ConfigTabCameras(Datas datas)
        {
            this.configurationDatas = datas;
            ConfigurationTabCameras();
        }
 
        private void TabCamerasConfiguration()
        {
            connect.dbConnect();
 
            command.CommandText = "SELECT f1, f2, f3 " +
                  "FROM t1ORDER BY f1";
            command.CommandType = CommandType.Text;
            command.Connection = connect.getSqlConnection();
 
            dataReader = command.ExecuteReader();
 
            while (dataReader.Read())
            {
                ViewTabCameras vtc = new ViewTabCameras();
 
                vtc.Field1 = dataReader["f1"].ToString();
                vtc.Field2 = int.Parse(dataReader["f2"].ToString());
                vtc.Field3 = int.Parse(dataReader["f3"].ToString());
                 
                donneesConfiguration.DatasTabCameras.Add(vtc);
            }
             
            command.Dispose();
            dataAdapter.Dispose();
 
            connect.dbDisconnect();
        }
    }

ViewTabCameras.cs :
private string field1;
private int field2;
private int field3;
 
public string Field1
{
    get
    {
        return this.field1;
    }
    set
    {
        this.field1= value;
        this.EventPropertyChanged("Field1");
    }
}
 
// Same for Field2 and 3...


And finally my custom UserControl as a GridView TabCameras.cs :
private Donnees donnees;
 
public TabCameras()
{
    datas = new Datas();
    //this.DataContext = datas;
    InitializeComponent();
}

TabCameras.xaml :
<telerik:RadGridView ItemsSource="{Binding DatasTabCameras}">
        <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Field1}"
                                            Header="Field 1"
                                            UniqueName="Field1" />
                <telerik:GridViewComboBoxColumn Header="Field 2"
                                                ItemsSource="{Binding Field2}"
                                                UniqueName="Field2"
                                                DataMemberBinding="{Binding Field2}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Field3}"
                                                Header="Field 3"
                                                UniqueName="Field3" />
        </telerik:RadGridView.Columns>
</telerik:RadGridView>


So the MainWindow is supposed to include my custom controls but they don't display anything. However, when I add a GridView control in my MainWindow with the same binding, it works perfectly. I tried to change the position of "dataContext" in many classes but nothing changed.

So, how can I have my custom controls in my MainWindow which display everything returned by my SQL query and saved in my Datas.cs please ?

I hope I was clear enough, I don't think I used the easier way...

Thanks !
Christophe
Top achievements
Rank 1
 answered on 04 Jun 2014
2 answers
276 views
Hello

I have a windows with 4 radListBox.

this 4 rad listbox are binded to 4 Observable collection of the same Object type.

so i have radlist box A, B, C and D

what i want is :

 allow drag and drop
-betwen A and B (any directtion)
-between C and D (any direction)

disable drag and drop for all other posssibilities
-between B and C
-between B and D
-between A and C
-between A and D

i had already achieve this with radList box containing different type of Object by testing the type, but here i can't do it because all the radListBox contains the same type of object.

Any suggestion?
Olivier Constance
Top achievements
Rank 1
 answered on 04 Jun 2014
1 answer
165 views
Hi Team,

This is really cool stuff, if any of you could throw some light then its is good.

I have custom RadPropertyGrid and  custom DataTemplate which has a usercontrol inside it, I am creating my own Propertydefinitions and using SelectTemplate of dataTemplateselector ,I am  providing the Template for editing for each Property Item.
Now the issue is : I want to pass the  property definition information /propertyspecification  to the usercontrol inside the Datatemplate, So that it behaves accordingly.
For Example:
If it finds the propertydefintion  with "IsSelected" as true then it should check the  my checkbox and set the background color of my button to Red.Please not this checkbox and Button are child elements of my user control.



Ivan Ivanov
Telerik team
 answered on 04 Jun 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
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
ProgressBar
Sparkline
LayoutControl
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
Rating
Accessibility
Callout
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
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?