Telerik Forums
UI for WPF Forum
1 answer
174 views

I have created gui using radtabcontrol. In it i have added UserControl to RadTabItem using code behind on Tab Selection Changed event. But whenever usercontrol is added, there is extra space at bottom of tab. Please help. I am attaching screen shot below.

I am using Window8 Theme.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Dec 2015
6 answers
918 views
Hello,

I have problems binding two radioButtons with a nullable bool property. Here is the code of the buttons:
<StackPanel Style="{StaticResource stackGridPadre}" Orientation="Horizontal">
                <TextBlock Width="350" Style="{StaticResource txtLabel}">Precintaje</TextBlock>
                <telerik:RadRadioButton Name="rbPrecintaje" IsChecked="{Binding Informe.precintaje_ok,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" GroupName="Precintaje">
                    <StackPanel Orientation="Horizontal">
                        <Image Style="{StaticResource imageRadioButton}" Source=".\..\Resources\Images\Ok_28.png"></Image>
                        <Label Style="{StaticResource labelRadioButton}">Si</Label>
                    </StackPanel>
                </telerik:RadRadioButton>
                <telerik:RadRadioButton GroupName="Precintaje">
                    <StackPanel Orientation="Horizontal">
                        <Image Style="{StaticResource imageRadioButton}" Source=".\..\Resources\Images\Ko_28.png"></Image>
                        <Label Style="{StaticResource labelRadioButton}">No</Label>
                    </StackPanel>
                </telerik:RadRadioButton>
                <TextBlock Margin="5,0,0,0" Style="{StaticResource txtLabel}" Width="75">NÂș Precinto</TextBlock>
                <TextBox Style="{StaticResource estiloNormal}" Text="{Binding Informe.numero_precinto}" Width="220"></TextBox>
            </StackPanel>

It works fine when i set the value of OK (the value is saved and it press the OK button when the binding is loaded)
When i set the KO value the property is set to false and save that value but when i load the property with false, the KO button is not pressed.


Is there somethin i am missing or doing wrong? Do i have to set the IsChecked property manually?

Thanks!









































Adrien
Top achievements
Rank 2
 answered on 02 Dec 2015
1 answer
142 views

Hi,

How do I get GroupHeaderRow by this GroupHeaderRow's GroupViewModel?

 

Thank you

Dilyan Traykov
Telerik team
 answered on 02 Dec 2015
8 answers
120 views

Hi,

 

I use a RadGridView and I need to apply a style to the filtered elements. Currently, they disappear off course. Is there a way to set a property "visible" and a forecolor specific ? Like this :

http://image.noelshack.com/fichiers/2015/47/1448027537-2217-noelpush.png

 

Thanks !

 

Regards.

Stefan
Telerik team
 answered on 02 Dec 2015
3 answers
94 views

Hi,

For a tool of mine I have the following problem: I have an appointment which I want to drag in any red/green slot. For this I have a custom ScheduleViewDragDropBehavior class, which has the method CanDrop which will check if the DestinationSlots overlaps any of my red/green slots which I access via my ViewModel. I also have a custom DragDropHighlightStyle template, which will show nothing when dragging.

 

Thus, when the user drags the appointment, he only sees his cursor. The purpose would be that the user can drag anywhere in a red/green slot, drop it, and the appointment takes over the start and end time of that slot. But the problem: it depends where the user clicks the appointment and starts dragging. Let's say that an appointment lasts four hours, starts at 01:00, and ends at 05:00:

- If the user clicks the appointment at 01:05, starts dragging and drops it in the slot below at 01:00, the DestinationSlots will be from 12:55 till 04:55

- If the user clicks the appointment at 03:05, starts dragging and drops it in the slot below at 01:00, the DestinationSlots will be from 10:55 till 02:55

- If the user clicks the appointment at 04:55, starts dragging and drops it in the slot below at 01:00, the DestinationSlots will be from 09:02 till 01:05

When I actually want my DestinationSlots to start exactly where I drop it on the timeline, and end four hours later.

 

 My possible solutions would be:

- Detect in which custom slot an appointment is dropped. But not possible if I understood correctly?

- Detect on which hour the cursor currently is (hover). I could match this with the value from DestinationSlots. But also not possible?

- Modify each appointment I drag to being one minute long. Thus, it would not matter where the users clicks the appointment to start the drag. But also this I could not get to work. But I think this is the most viable solution.

 

Any help would be appreciated. 

Nasko
Telerik team
 answered on 01 Dec 2015
1 answer
119 views

 I have a custom appointment object that needs to store resources of a certain type, for this I have an observablecollection. 

Now I have my combobox with my resources in the editappointment window. 

            Jobb job = new Jobb()
                    { StandardTid = 30, UppskattatPris = 250, ResourceName = "Klippning", DisplayName = "Klippning", ResourceType="Jobb" };
            Jobb job2 = new Jobb()
                    { StandardTid = 120, UppskattatPris = 650, ResourceName = "FĂ€rgning", DisplayName = "FĂ€rgning", ResourceType = "Jobb" };

            ResourceType jobbet = new ResourceType("Jobb");

            jobbet.Resources.Add(job);
            jobbet.Resources.Add(job2);

            jobbet.AllowMultipleSelection = true;
            ResourceTypeCollection resourcetypelist = new ResourceTypeCollection();

            resourcetypelist.Add(jobbet); 

            bokningView.ResourceTypesSource = resourcetypelist;

 

This shows up Ok. But how do i bind the selections from this combobox to my collection in my custom appointment ?

 

Nasko
Telerik team
 answered on 01 Dec 2015
6 answers
364 views
My application uses the busyindicator to display loading-status on parts of the view loaded asynchronously at the same time, each job is independent and is wrapped in an busyindicator. However as they are loading at the same time it looks quite unappealing as the animations are everywhere. I'd like to just keep the topmost loading animation and use just display plain busycontent on the indicators below.

PS: Could you advice me on how to disable this and consider adding property IsAnimationEnabled to ease development in future.
sai
Top achievements
Rank 1
 answered on 01 Dec 2015
5 answers
324 views

We need to send the grid sorting configuration to the backend system. Is the below approach using the UniqueName property going to be reliable? If not can you please advise on the most reliable means to get the information necessary to extract the bound property name.

 Thank you.

foreach(Telerik.Windows.Controls.GridView.ColumnSortDescriptor desc in uxRadGridControl.SortDescriptors)
            {
                var x = desc.SortDirection;
                var f = desc.Column.UniqueName;
            }

 

Chad
Top achievements
Rank 1
 answered on 01 Dec 2015
1 answer
112 views

Hi guys,
I would like to ask whether the rich text box can be highlighted in red and show validation message once the cursor is being mouse over to the richtextbox(as shown in the attached picture)?

 

Thank you.

 

Tanya
Telerik team
 answered on 30 Nov 2015
1 answer
160 views

Hi guys, 

I would like to ask how select bookmark from the Hyperlink bookmark tab? (The bookmark show nothing to selected)

Furthermore, I can not even add bookmark, is there any add button for me to add hyperlink into the bookmarktab?

The picture is attached.

Tanya
Telerik team
 answered on 30 Nov 2015
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?