Telerik Forums
UI for WPF Forum
4 answers
712 views
Hi,
When my ListBox is loaded for the first time, I want it to already have the SelectedItem highlighted, as if it is already clicked. How can I achieve that?

I use the MVVM Light toolkit, and I have a TwoWay binding on the SelectedItem to a property in my ViewModel.

<telerik:RadListBox  ItemsSource="{Binding AllNetworks}" SelectedItem="{Binding SelectedNetwork, Mode=TwoWay}">
...
...
...
</telerik:RadListBox>

I know that the SelectedNetwork property is set correctly when the ViewModel is initialized, but the ListBox does not highlight the selected item.

Regards,
Roar Bjørndal-Rasmussen
Nasko
Telerik team
 answered on 08 Apr 2016
3 answers
249 views

Hi,

We're using version 2015.2.728.45 of Telerik UI for WPF and we have discovered a potential memory leak using JustTrace memory profiler (see attached document).

Could you please tell me if there is a known issue that could explain this behaviour of the Telerik.Windows.Documents.DocumentPosition retaining RadRichTextBox controls?

Thanks for your help,

Sébastien

Boby
Telerik team
 answered on 08 Apr 2016
7 answers
451 views

Hi, I have implemented two custom FilteringControl(s) using the help in the docs and forums, one of them even need a custom FilterDescriptor. Now I want to mimic the style, even clone the same close button of the default FilteringControl so that it seems to be another control from telerik. Unfortunately I've been searching through the installed .xaml and cannot find the ControlTemplate for the dialog.

 

I would appreciate much if somebody could tell me where to find it.

 

Thanks.

 

David.

David
Top achievements
Rank 1
 answered on 07 Apr 2016
1 answer
103 views
trying to override the default border when the cell is selected, but in blend i can't find the gridviewcell control to change. i have the references to the data and gridview dlls. any idea?
Stefan Nenchev
Telerik team
 answered on 07 Apr 2016
3 answers
104 views

Hello,

I am experiencing a strange issue when I want to jump to a specific page using the PdfViewer.

OnDocumentChanged event, I set the CurrentPageNumber or call GoToPage(), but the result will be the end of the (page-1), a tiny line of that page and the page that I am requesting.

Example.

I want to jump to page 5. On first jump it shows ok, on second jump it shows a tiny line from page 4 and the page 5, but on the page counter (CurrentPageNumber) it has 4.

This only occurs on second call onward.

 

Is this a PdfViewer bug or is there another way I can go to a specific page?

Deyan
Telerik team
 answered on 07 Apr 2016
3 answers
126 views
Hello,

Is there a way to override the MouseDown for the ConnectionTool so it doesn't add the action to the UndoRedoService?  I would like to connection created by the ConnectionTool removed or not in the UndoStack.

Thanks!
Petar Mladenov
Telerik team
 answered on 07 Apr 2016
1 answer
190 views

Hi,

I am having the following issue with my Custom KeyboadCommandProvider for RadGridView: If the user presses Ctrl+Down key, i want to select the third column of the next row. Therefore i move down once, check if Ctrl is pressed and if so, move to the first column and then twice to the Right. The problem is, that the Move-Commands also factor in the pressed shift key. Therefore the selection moves to the bottom of the list, then to the right and then twice to the end of the row. My code looks as follows:

public class ScheduleKeyboardCommandProvider : DefaultKeyboardCommandProvider
{
    private GridViewDataControl parentGrid;

public ScheduleKeyboardCommandProvider(GridViewDataControl grid)
: base(grid)
{
this.parentGrid = grid;
}

public override IEnumerable<ICommand> ProvideCommandsForKey(Key key)
{
List<ICommand> commandsToExecute = base.ProvideCommandsForKey(key).ToList();
commandsToExecute.Clear();
bool ctrlIsPressed = (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control;

if (key == Key.Down)
{
commandsToExecute.Add(RadGridViewCommands.MoveDown);
if (ctrlIsPressed)
{
// move to first column and then move right twice
commandsToExecute.Add(RadGridViewCommands.MoveFirst);
commandsToExecute.Add(RadGridViewCommands.MoveRight);
commandsToExecute.Add(RadGridViewCommands.MoveRight);
}
}

return commandsToExecute;
}

}

 

I would appreciate some tips. Thanks in advance.

Yoan
Telerik team
 answered on 07 Apr 2016
7 answers
545 views

I'm implementing a paged datasource successfully using a GridView + DataPager consuming a IPagedCollectionView, which is filled every time a page is requested with data from a REST-ish API. But I'm having trouble implementing filtering using the GridView's filter row, as it seems the default behavior of the GridView is to filter the data of the current page. I wanted to be able to just send the filters to the API, do the filtering + paging there, and return the data already filtered. In a nutshell I'm trying to use wpf's GridView like asp.net mvc's Grid (http://demos.telerik.com/aspnet-mvc/grid/index) which sends queries to the server via AJAX with the filters and sorts.

 

I already tried to implement ICollectionView, but the GridView still does what it normally does.

 

Handling the Filtering event of the GridView doesn't look like the right way to go, I either set e.Handled = true and get the same behavior, or set e.Cancel = true and refresh the data and the filtering information is cleaned. Can someone point me to the right direction / resources?

Fabrice
Top achievements
Rank 1
 answered on 07 Apr 2016
3 answers
118 views

Hi,

for the same date/time, for the same resource, I would like to know if it's possible to have to spaces, 1 to display an appointement and another one to display a comment and if it's possible to have to control on the width of each spaces!!!

 

What I'm trying to do is, in some circumstances, I need to display as an example and appointement at a specific time but I also need to display a comment to between time A and time B

 

ie: Apppointment for M. Test at 10:00AM and a comment from 9:00AM to 11:30 AM that says "Brings reports to the secretary after exams"

 

Thank's

Alain

Yana
Telerik team
 answered on 07 Apr 2016
7 answers
118 views

I am trying to change the background colour in a GridView as the data is loaded.

I think that I should be using 

 

        private void manualGridView_CellLoaded(object sender, Telerik.Windows.Controls.GridView.CellEventArgs e)
        {

        }

 

but I uncertain how to access the background colour from here and where I might test which column I am in and the cells value.  Any help is much appreciated.

Stefan Nenchev
Telerik team
 answered on 07 Apr 2016
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?