Telerik Forums
UI for WPF Forum
0 answers
52 views

Meant to post in TileView Forum,
Sorry.

Tamir
Top achievements
Rank 1
 asked on 16 Sep 2012
0 answers
158 views
Hello,
I want to select gridview row data by clicking on check box column. But when I check checkbox, selectedItem property return null  value and I have to select a row and then check checkbox. How can I solve this problem.
Thanks in advance,
 <telerik:RadGridView.Columns>                           
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="Id"   readOnly="True"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"  IsReadOnly="True"/>
                            <telerik:GridViewDataColumn Header="Select " >
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <CheckBox Name="checkbox1" IsChecked="{Binding Select,Mode=TwoWay}" HorizontalAlignment="Center"   checked="WordCheckBox_Checked" />
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

private void WordCheckBox_Checked(object sender, RoutedEventArgs e)
        {
            try
            {                               
                MyWord word_obj = new MyWord();
                word_obj = dg.SelectedItem as MyWord;
                if (word_obj != null)
                {
                    wordList_obj.Add(word_obj);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Mic
Top achievements
Rank 1
 asked on 14 Sep 2012
1 answer
299 views
I am using ICollectionView for filters my data list. But when i try to filtering data then RadListBox shows nothing. Here is my Code which i try for this.

 XAML :
    <Window.Resources>
        <local:MyList x:Key="MyData"/>
        <CollectionViewSource x:Key="MyCollection" Source="{Binding ClassTwos, Source={StaticResource MyData}}"/>
    </Window.Resources>

    <telerik:RadListBox x:Name="ListTwo" ItemsSource="{Binding Source={StaticResource MyCollection}}" Margin="184,78,0,0"  Width="94" Height="175" DisplayMemberPath="Name"/>

C# :
    public class MyList
    {
        public ObservableCollection<TestClassTwo> ClassTwos { get; set; }
        public MyList()
        {
            ClassTwos = new ObservableCollection<TestClassTwo>
                                               {
                                                   new TestClassTwo{Name = "Sound"},
                                                   new TestClassTwo{Name = "Samsung"},
                                                   new TestClassTwo{Name = "yahoo"}
                                               };


        }
    }

    public MainWindow()
        {
            InitializeComponent();


            var collectionView = (this.ListTwo.ItemsSource as ICollectionView);
            if (collectionView != null)
            {
                collectionView.Filter = p => ((TestClassTwo)p).Name == "s";
            }
        }
George
Telerik team
 answered on 14 Sep 2012
18 answers
251 views
I have a gridview with the data totaled in the footer. When printing the gridview, the totals are not there. Is there a way to print the footer? 

Thanks,
Katie
katie
Top achievements
Rank 1
 answered on 14 Sep 2012
0 answers
177 views
Hi,
I'm thinking about how to use PropertyGrid with XML data. I have the schema in an XSD file and corresponding data stored in XML elsewhere.

Is it a good approach or possible to prepare a propertygrid from an XSD then load the data from XML file?

Your guidance greatly appreciated.

Craig
Craig
Top achievements
Rank 1
 asked on 14 Sep 2012
8 answers
560 views
Hello,
I've implemented a multi-select ComboBoxColumn using checkboxes as follows:
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding AppointmentTimes}" UniqueName="AppointmentTimes" Header="Scheduled Appointments" ItemsSourceBinding="{Binding AvailableTimes}" EditTriggers="CellClick">
     <telerik:GridViewComboBoxColumn.ItemTemplate>
          <DataTemplate>
               <StackPanel Orientation="Horizontal">
                    <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" Content="{Binding TimeDisplay}" />
               </StackPanel>
          </DataTemplate>
     </telerik:GridViewComboBoxColumn.ItemTemplate>
     <telerik:GridViewComboBoxColumn.EditorStyle>
          <Style TargetType="telerik:RadComboBox" BasedOn="{StaticResource RadComboBoxStyle1}">
                <Setter Property="OpenDropDownOnFocus" Value="True"/>
          </Style>
     </telerik:GridViewComboBoxColumn.EditorStyle>
</telerik:GridViewComboBoxColumn>

Everything works great except I'd like the user to be able to select the checkboxes using the spacebar.  How can I achieve this?

Thanks in advance..
Konstantina
Telerik team
 answered on 14 Sep 2012
5 answers
341 views
Hi,

We are currently using a RichTextBox to display simple HTML content.

To style the content, we are using this code:

this.htmlDataProvider.RichTextBox.DefaultStyleSettings.SetPropertyValue(Span.UnderlineColorProperty, foregroundColour);
this.htmlDataProvider.RichTextBox.DefaultStyleSettings.SetPropertyValue(Span.ForeColorProperty, foregroundColour);
this.htmlDataProvider.RichTextBox.Background = new SolidColorBrush(backgroundColour);
this.htmlDataProvider.RichTextBox.FontSize = this.noteStyles.DefaultFontSize;
this.htmlDataProvider.RichTextBox.FontFamily = new FontFamily(font.Source);

However, this leaves list icons and list numbers without a style applied: http://i.imgur.com/rbwx4.png

How can I apply a default style to those elements too?

Thanks.
Mihail
Telerik team
 answered on 14 Sep 2012
1 answer
140 views
Hi,

We have a RadGridView with some custom column implementations, changeing the original value bound to this columns. Now we have the problem, that the default sort mechanism sorts the rows with the original values from the data source, but it should be sorted with the displayed column values. I also can not use the expression sort descriptors, I have no access to the displayed type at compoleing time.

Is there a way to change this behavior?

Thanks for help,
Michael
Rossen Hristov
Telerik team
 answered on 14 Sep 2012
0 answers
262 views
Hi,

I tried adding and event trigger on my GridViewDataColumn but it doesn't seem to fire the command.

<telerik:GridViewDataColumn CellStyle="{StaticResource IndexColumnStyle}"
                                            DataMemberBinding="{Binding Index}"
                                            Header="Index"
                                            IsReadOnly="True">
<i:Interaction.Triggers>
<i:EventTrigger EventName="CellDoubleClick">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding EditCommand}"
CommandParameterValue="Edit"
PassEventArgsToCommand="True" />
</i:EventTrigger>
</i:Interaction.Triggers>
</telerik:GridViewDataColumn>

Is it actually possible to add event trigger to GridViewDataColumn?
Mark
Top achievements
Rank 1
 asked on 14 Sep 2012
1 answer
137 views
sorry new to WPF
i'm having trouble understanding how to load the RadDiagramToolbox from codebehind with the standard shape.

Any help is greatly appreciated

FF
Petar Mladenov
Telerik team
 answered on 14 Sep 2012
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?