Telerik Forums
UI for WPF Forum
2 answers
1.2K+ views

Good day.

ControlTemplate of the RadTabControl defines a single ContentPresenter that holds only the currently selected RadTabItem's Content whice means Tab Item content will only be loaded when the Tab is selected.

I have this scenario where i have multiple Tab in a page. Tab 1 is the first tab opened when the page loaded. in my Tab 2, I have a UserControl with a GridView. I have a command Bound in the Loaded event of that UserControl. Now when the Page is loaded and shows the Tab 1, the Loaded command bound in the UserControl in Tab 2 is firing which I think the content of Tab 2 is also loaded?

Can someone explain me what is happening here?

Thank you very much.

gerardo
Top achievements
Rank 1
Veteran
 answered on 02 Mar 2021
5 answers
280 views

Good day.

I have 3 Tabs. Each RadTabControl have a RadGridView inside. When I search/filter in RadGridView 1 inside Tab 1 then move to Tab 2 and go back to Tab 1, the search/filter on the RadGridView 1 is removed. How can I retain the filter value in RadGridView when I change Tabs.

Also I noticed that when I go back to Tab 1 with the RadGridView 1, the filtered value was removed and a BusyIndicator is blocking the RadGridView 1 and does not disappear.

 

Thank you.

Dilyan Traykov
Telerik team
 answered on 01 Mar 2021
6 answers
3.6K+ views

Good day,

 

How can I bind/trigger a command in my ViewModel on GridView Row DoubleClick. Is there a way I can bind it without codebehind

 

Thanks

Dilyan Traykov
Telerik team
 answered on 26 Feb 2021
3 answers
127 views

Hi there,

we want to change the default WrappingStyle when inserting images.
The images are inserted via Copy&Paste or Drag&Drop.

They should all have WrappingStyle "Square" when inserted (and not WrappingStyle "In line with text").

What is the simplest solution to do this?

Thank you, Andi

Andi
Top achievements
Rank 1
 answered on 26 Feb 2021
4 answers
325 views

Hello.

I want the color outside the tab menu (button) to be transparent. (The image is gray)

How do I customize it?

<telerik:RadTabControl  SelectedIndex="0"
                    VerticalAlignment="Stretch"
                    TabStripPlacement="Top"
                    BorderBrush="Blue"
                    Background="Red"
                    BorderThickness="1"
                    />

 

Thanks.

Martin Ivanov
Telerik team
 answered on 25 Feb 2021
4 answers
111 views

Hello, we recently implemented a word count feature in the RadRichTextBox by using the GetStatisticsInfo method of the RadDocument class.  We noticed word counts are not accurate and determined that the document contained some non-breaking spaces (0xA0) instead of normal spaces (0x20), and when these non-breaking spaces were positioned in span text separately like this: <t:Paragraph> <t:Span Text=" " /> </t:Paragraph>, then the word count included this as a word.

Since we can't control the document content that is imported, we could work around this issue by replacing the non-breaking spaces with normal spaces before getting a word count, but I am not sure of the best approach for doing so.  Please let me know a solution for the replacement, or if this is something you will be fixing at some point.

 

Thanks,

Bob

Martin
Telerik team
 answered on 25 Feb 2021
8 answers
325 views
Hello Telerik, can I resizing columns programmatically, as in winforms?
Sergey
Top achievements
Rank 2
 answered on 25 Feb 2021
2 answers
118 views

Hi,

i have a simple question but can't get any solution by now. I have a Container as RadDiagramContainerShape with Nodes as RadDiagramShapes in it. How is it possible to select only the container in the diagram view and delete the container such as all nodes? Currently i can only delete the container and all nodes stay where they are. 

Thanks

Tom
Top achievements
Rank 1
 answered on 24 Feb 2021
7 answers
329 views
Hi,

I need (As in a requirement that I HAVE to do with no choice in the matter) to customise the RadScheduleView to show a yearly view -> with the sole purpose of it being a drill down with months going down the left hand column and days going accross (conceptually similar to the month view only with a larger data set).

Would this be possible with control? It seams after having a pry/experiment alot of the layout, sizing etc is performed internal to the library is this correct?

My other thought was a completely custom control template that is applied in year view with the sole purpose of allowing the drill down - and swapping to the regular controltemplate when not in year view.

Any guidance on this would be appreciated, Thanks.
Dilyan Traykov
Telerik team
 answered on 24 Feb 2021
2 answers
275 views

Hello,
when I try to open the DropDownContent of a RadDropDownButton in code behind then the DropDownContent is not shown after change visibility of the RadDropDown Button from collapsed to visible.

See following code example:

    <StackPanel>
    <telerik:RadDropDownButton
                                               DropDownPlacement="Bottom"
                  Visibility="Collapsed"
                  x:Name="btnDropDown"
                  Margin="0 0 0 5" Padding="0" Content="Some Header">
        <telerik:RadDropDownButton.DropDownContent>
            <ListBox Background="LightGoldenrodYellow" >
                <ListBoxItem Content="Item 1" />
                <ListBoxItem Content="Item 2"/>
                <ListBoxItem Content="Item 3" />
            </ListBox>
        </telerik:RadDropDownButton.DropDownContent>
    </telerik:RadDropDownButton>
 
    <Button Click="Button_Click">Show ListBox in DropDownButton</Button>
</StackPanel>

in code behind:

private void Button_Click(object sender, RoutedEventArgs e)
{
    btnDropDown.SetCurrentValue(VisibilityProperty, Visibility.Visible);
    btnDropDown.SetCurrentValue(RadDropDownButton.IsOpenProperty, true);
}

 

Result:

The btnDropDown appears on the window and act like opened but the DropDownContent is not shown.


Martin
Top achievements
Rank 1
 answered on 24 Feb 2021
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?