Telerik Forums
UI for WPF Forum
1 answer
64 views

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2016
1 answer
78 views

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2016
3 answers
178 views
Hello,

I have many different custom shapes.  
I've added a new tab to the SettingsPane. How can I change the content of this tab depending on the custom shape that the user has dropped it or selected?
Any event for SettingsPane can help me?
I need event fires when I press  the SettingsPane button!
I tried (PreviewAdditionalContentActivated) and (AdditionalContentActivated) but both are fired when I dropped any shape now when I press the SettingsPane icon.

Thank you
Martin Ivanov
Telerik team
 answered on 04 Jul 2016
1 answer
164 views

Hi Guys,

After update the telerik to 2016 Q2, (Telerik.Windows.Controls 2016.2.613.45). I can“t access (see) the property LayoutControlGroup.Header and some other properties.

In another project that is using Telerik.Windows.Controls (2016.2.503.45) these properties are available.

 

What I can do to solve this problem ? 

Martin Ivanov
Telerik team
 answered on 04 Jul 2016
1 answer
1.0K+ views

i want to get the value of CheckBoxColumn in DataGrid wpf
i try this code

 

foreach (spShowTotal_Result item in dgShowStudent.ItemsSource)
        {
 
            bool? check = ((CheckBox)dgShowStudent.Columns[0].GetCellContent(item)).IsChecked;
 
        }

but this exception appear
Unable to cast object of type 'System.Windows.Controls.ContentPresenter' to type 'System.Windows.Controls.CheckBox'.
Ahmed
Top achievements
Rank 1
 answered on 04 Jul 2016
3 answers
182 views

We use a custom autocomplete textbox, and it's been working fine with Telerik Controls from 2012.

We've recently upgraded the DLL, and I've noticed that there is a new problem. When the Autocomplete is focused and Escape is being pressed, the textbox still has logical focus, but the keyboard focus is lost (The cursor is still on the textbox, but it is not blinking anymore).

After debugging it, I've found out that KeyTipService.HandleEscape is being called, and this specific code takes the keyboard focus:

                if (this.Ribbon != null)
                {
#if WPF
                    Keyboard.Focus(this.Ribbon.SelectedTab);
#endif
                    if (this.Ribbon.IsBackstageOpen)
                    {
                        this.Ribbon.IsBackstageOpen = false;
                    }
                }

 

I've tested this issue on a test project, and I can reproduce the issue, even with a regular textbox:

<telerik:RadRibbonWindow x:Class="RibbonTakesFocusFromAutoComplete.MainWindow"
        Title="MainWindow" Height="350" Width="525">
 
    <Grid x:Name="contentToDisable">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
        <telerik:RadRibbonView Name="MainRibbon" HelpButtonVisibility="Visible" HelpCommand="{Binding ShellHelpFileCommand}" GotKeyboardFocus="MainRibbon_GotKeyboardFocus"
            ApplicationName="Bob"
            telerik:KeyTipService.IsKeyTipsEnabled="True"
            MinimizeButtonVisibility="Visible"
            Foreground="Black"
            IsBackstageOpen="false"
            IsMinimized="False">
            <telerik:RadRibbonView.Backstage>
                <telerik:RadRibbonBackstage telerik:KeyTipService.AccessText="F">
 
                    <telerik:RadRibbonBackstageItem Header="New" telerik:KeyTipService.AccessText="N" Click="RadRibbonBackstageItem_Click" />
                    <telerik:RadRibbonBackstageItem Header="Open" telerik:KeyTipService.AccessText="O" Click="RadRibbonBackstageItem_Click_1"/>
                </telerik:RadRibbonBackstage>
            </telerik:RadRibbonView.Backstage>
            <telerik:RadRibbonTab Foreground="Black" Header="Edit" telerik:KeyTipService.AccessText="E">
                <telerik:RadRibbonGroup Header="Clipboard" telerik:ScreenTip.Title="Clipboard"
                    telerik:ScreenTip.Description="Bla Bla"
                    telerik:KeyTipService.AccessText="FO">
                    <telerik:RadRibbonGroup.Variants>
                        <telerik:GroupVariant Variant="Medium" Priority="0"/>
                    </telerik:RadRibbonGroup.Variants>
 
                    <StackPanel Orientation="Horizontal">
                        <telerik:RadRibbonButton Text="Paste"
                            Size="Large"
                            telerik:ScreenTip.Title="Paste"
                            Click="RadRibbonButton_Click"
                            telerik:ScreenTip.Description="Paste"
                            telerik:KeyTipService.AccessText="V">
 
                        </telerik:RadRibbonButton>
                    </StackPanel>
                </telerik:RadRibbonGroup>>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>
 
        <Grid Grid.Row="1">
            <TextBox  Width="100" VerticalAlignment="Top" HorizontalAlignment="Left"/>
        </Grid>
    </Grid>
</telerik:RadRibbonWindow>

 

Run the project, and click the TextBox so it will get keyboard focus. Press the Escape key, and you'll see what I mean.

Is there any workaround?

 

Can you please fix it.

 

Thanks

 

BENN
Top achievements
Rank 1
 answered on 04 Jul 2016
1 answer
88 views
I'm trying to set merge field values manually and I can't get anything to work, or find anything indicating how I can do this directly.  Here's an example of my code:

 

                        var span = new Span("Testing");
                        var fragment = DocumentFragment.CreateFromInline(span);


                        start.Field.SetFragmentByDisplayMode(FieldDisplayMode.Result, fragment);

 

start.Field is a MergeField, and basically other than the end result being blank.  When I look at the MergeField objects properties after making this call I see that the ResultFragment shows as empty.  What am I missing here?  If this won't work is there some way to just remove the field and insert my text? 

I realize the documentation is angled towards mail merge but my situation doesn't make that feasible.

Matt
Top achievements
Rank 1
 answered on 03 Jul 2016
1 answer
81 views

hiiii,, i want to get the value of checkboxcolumn in datagrid wpf

i try this code

if (item.boolCol == true)
              {
                  MessageBox.Show("fail");
              }
              else
              {
                  MessageBox.Show("success");
 
              }

but don't take the changed value but take the same value of the my itemsourse 

Ahmed
Top achievements
Rank 1
 answered on 03 Jul 2016
1 answer
93 views

Hi,

I am using RadRichTextBox to load .docx file. In my file, there are some headings and I would like to show collapse and expand icon as in MS Word https://support.content.office.net/en-us/media/a30ff5ac-4df5-4a37-9f03-4abaa5c16ac7.png. 

I have tried to open with Demo control but cannot see them.

Do RadRichTextBox support these functions? 

 

Thanks

 

Tanya
Telerik team
 answered on 01 Jul 2016
4 answers
333 views

Hi, I have used a ScatterLineSeries inside a RadCartesianChart with both HorizontalAxis and VerticalAxis set to LinearAxis.

The y-value shows probability of something for an elapsed time, so the only meaningful range for y-axis is 0 to 1, thus i set Minimum=0 and Maximum=1

Multiple consecutive points have y=1, so there should be a horizontal line at the very top of the graph. But is seems it will be completely cut away and not visible. I guess it makes sense if thickness is based on (Maximum - y).

I've tried working around by setting those values to y=0.99 and that work. I've also tried setting Maximum=1.01 and that also work.

However the first workaround gives big problems if i want to display the actual data, and the second workaround does not work well with minimum value.

I could set minimum value to -0.01, but then the first label will show value -0.01, and second label will show 0.09, and then 0.19 etc.

Any idea how I can solve this?

 

Philip
Top achievements
Rank 1
 answered on 01 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?