Telerik Forums
UI for WPF Forum
3 answers
253 views
I'm looking for a way to set the drop-down width for a ComboBoxCoumn to the same width of the column.
Yoan
Telerik team
 answered on 08 Oct 2012
1 answer
116 views
Hello
i need to read/capture a value belongs to the cell selected in gridview
in the second time i need to generate an event when i click on one cells,this event return a value that belongs to the cell selected
can you help me plz
Amine
Top achievements
Rank 1
 answered on 08 Oct 2012
1 answer
151 views
I'm trying to avoid a lot of custom work with themes because all I want to do is change the Header BorderBrush used on various controls.  I was hoping I could do this as in the following snippet from a RadCalendar Style in my ResourceDictionary...

<ControlTemplate TargetType="{x:Type telerik:RadCalendar}">
    <Grid>
        <!-- Standard RadCalendar Suff Omitted for brevity -->
    </Grid>
    <ControlTemplate.Triggers>
        <Trigger Property="telerik:StyleManager.Theme"
                 Value="telerik:Office_Black">
            <Setter TargetName="Navigation"
                    Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1"
                                         StartPoint="0.5,0">
                        <GradientStop Color="#FF5B5B5B"
                                      Offset="1" />
                        <GradientStop Color="#FF868686" />
                        <GradientStop Color="#FF0E0E0E"
                                      Offset="0.449" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
        </Trigger>
        <Trigger Property="telerik:StyleManager.Theme"
                 Value="telerik:Office_Blue">
            <Setter TargetName="Navigation"
                    Property="Background"
                    Value="Blue">
            </Setter>
        </Trigger>
    </ControlTemplate.Triggers>
</ControlTemplate>

And then in my xaml...

<telerik:RadDatePicker Width="300" telerik:StyleManager.Theme="{Binding TelerikTheme}" CalendarStyle="{StaticResource RadCalendarStyle1}"/>

However it doesn't work.  Is there anyway to implement something along these lines?

Thanks in advance,
Steve








Masha
Telerik team
 answered on 08 Oct 2012
2 answers
189 views
Hello
I would like to create custom context menu for raddatetimepicker, using rad contextmenu. Hover I cannot asign it. It always diplaying default textbox contextmenu.
Marcin
Top achievements
Rank 1
Veteran
 answered on 08 Oct 2012
4 answers
568 views
Hello Telerik,

My scenario is this:
I have a client-server application with a tree (RadTreeView), which is data bound with a DataTemplate for the nodes.
Nodes that are not yet expanded don't hold any data, but an invisible child node, so an expander will be displayed.
Expanding the node loads the next level from the server, then removes the child node from the ItemsSource and then adds the new nodes to the ItemsSource.
The WPF application is designed as MVVM.
Since the application has more windows besides the tree, and the response from the server might take a while, the application should not wait for the server. Thus we decided to use a BackgroundWorker in the view model.

private void LoadChildrenBackground()
{
 BackgroundWorker backgroundWorker = new BackgroundWorker();
 backgroundWorker.DoWork += (sender, args) => _node.Expand();
 backgroundWorker.RunWorkerCompleted += (sender, args) =>
  {
   Children.Clear(); //or Children.Remove(DummyChild); <- here is there problem!
   foreach (ITreeNode child in _node.Children)
   Children.Add(new TreeViewItemViewModel(child, this, true));
   };
   backgroundWorker.RunWorkerAsync();
}

Effect:
When I run the program, and expand a few nodes by clicking the expander, the tree runs into a NullReferenceException.
I get this call stack location:
c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TreeView\Virtualization\TreeViewPanel.cs'  Line 1452

This happens only when a level has more than 405 nodes, and when the background worker is used, and when I remove the dummy child. So I suspect it's a matter of the asynchronous behaviour when removing an Item from the ItemsSource.

I have tried removing the dummy child before and after inserting the new nodes, even after the background worker is finished, it all ends up in the exception.

I can provide a simple example in a Visual Studio solution which demonstrates the effect (17kB zip).
Maybe your developers are interested in the exception, or maybe you have a workaround(?)

I hope you can help me, because when I get the RadTreeView running with our MVVM pattern, my evaluation will be (positively!) complete. Seems like this is the last issue I have :)
Martin
Top achievements
Rank 1
 answered on 08 Oct 2012
2 answers
137 views
Hi 

I'm developing a Surface v2.0 application and I'm using book control to display images (converted from a pdf document). I'm containing the control in a ScatterViewItem to allow the book to be resizable and draggable. This is all working fine. 

My problem is when trying to turn the page, any drag motion moves the ScatterViewItem and doesn't turn the page. A Single/Double tap on the corner of the page does turn the page though but isn't intuitive enough to be useful.

Does anyone have experience in using the control in a Surface app and knows how to enable the page turn please (I know it's a bit of a long shot).

 I've included the Xaml I'm using below

<s:ScatterView AllowDrop="True" x:Name="myScatter" HorizontalAlignment="Stretch"
                                     VerticalAlignment="Stretch"
                                     Background="Transparent" >
         
       
            <s:ScatterViewItem Height="500" Width="600">
                <telerik:RadBook x:Name="RadBook1" RightPageIndex="1" FirstPagePosition="left" Margin="10">
                    <telerik:RadBookItem>
                        <Image Source="pr001.png"/>
                    </telerik:RadBookItem>
                    <telerik:RadBookItem>
                        <Image Source="pr002.png" />
                    </telerik:RadBookItem>
                    <telerik:RadBookItem>
                        <Image Source="pr003.png" />
                    </telerik:RadBookItem>
                    <telerik:RadBookItem>
                        <Image Source="pr004.png"/>
                    </telerik:RadBookItem>
                </telerik:RadBook>
            </s:ScatterViewItem>
            </s:ScatterView>

Iestyn
Top achievements
Rank 1
 answered on 08 Oct 2012
13 answers
213 views
Hi guys,
I need your professional support.

The current behaviour of autocomplete logic is to complete typed characters with appropriate string value. I would like to have another behaviour if it is possible: when you type the characters, combobox will show all possible items in dropdown menu of the combobox and user will be able to select the item from the filtered list.

Thanks in advance,
Julian




Ivo
Telerik team
 answered on 08 Oct 2012
3 answers
156 views
Maybe a simple question, how do I get a column name from a QueryableCollectionView?
Best regards
Vlad
Telerik team
 answered on 08 Oct 2012
2 answers
249 views
Hi,

I try to change the grid's default office_black theme's orange/yellow shades to blue shades but I'm pretty stuck, specially with the column header and scrollbar. I tried following the description from  article but no chance... Could you please help me out with an example (using latest version and blend4)?

Thank you,
joe
phuoc tran ngoc
Top achievements
Rank 1
 answered on 07 Oct 2012
4 answers
106 views
I've got 2 controls on a page, one for a request date and another for the date of birth of a client.  Both of these values come from a SQL Server database.  During the Page_Loaded event I had been trying to calculate the age of the client on the request date, however that's not working.  For some reason, which I don't understand, the date of birth of the client is wrong (it turns out to be today's date), during the Page_Loaded event.  However, once the page is actually displayed, it is correct.  I had thought Page_Loaded would have been the correct event to put this code, but that doesn't seem to be the case.
 
So, where should I put the age calculation code?  In what event?

The XAML for the first control is:
<telerik:RadMaskedDateTimeInput Name="radReqDate" MinWidth="80" TabIndex="0" FontWeight="Bold"
                               Value="{Binding RequestDate}" InputBehavior="Replace" TextMode="PlainText"
                               SelectionOnFocus="SelectAll" ValueChanged="radReqDate_ValueChanged" />

and the XAML for the second control is here:
<telerik:RadMaskedDateTimeInput Name="radDOB" EmptyContent="Enter DOB" MinWidth="80" TabIndex="14"
                               FontWeight="Bold" InputBehavior="Replace" TextMode="PlainText"
                               Value="{Binding Path=DateOfBirth, Mode=TwoWay}" ValueChanged="radDOB_ValueChanged" />

Rod
Top achievements
Rank 1
 answered on 05 Oct 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?