Telerik Forums
UI for WPF Forum
5 answers
129 views
If I use my own datatemplate for TimelineInstantItemTemplate then the selection functionality does not work, e.g. SelectionChanged never fires. It works fine when using the default template.

How can I make selection work when using my own template?

Thanks
Tsvetie
Telerik team
 answered on 05 Jul 2013
9 answers
182 views
I have a Telerik GridView inside a UserControl that's contained in a document panel in a composite WPF application. When I first bring the view into place, I programatically add a default selected item by calling SelectedItems.Add(item) and everything works fine. Once I give another document tab focus in the application, I notice the Unloaded event fires on the Telerik grid. When I return to that view (give the tab focus), the SelectedItems collection does not respond to method calls such as .Clear() or .Add(). No exception is thrown, but nothing happens either. For example, if there are 3 items in the SelectedItems collection and I call .Clear() on it, in the debugger, I inspect the collection only to find it still has the same 3 items in it. 

My question is, what makes SelectedItems stop responding to changes? Is it the fact that somehow the Unloaded event is fired, or is that just a coincedence? I've tried creating the grid in a simple standalone application, but the SelectedItems collection always responds to changes. I can't help but think this is causes by by the underlying FrameworkElement being unloaded. 
Dimitrina
Telerik team
 answered on 05 Jul 2013
5 answers
995 views
Hi!

I have a dataTable and one of its columns is a image (bitmap) column .
I've been trying to  show this images in my GridView by binding it to GridViewImageColumn but I don't get it. 

I read that GridViewImageColumn accepts byte[] and string types so I tryed to use this methods to convert the bitmaps and then put the result in other column and try to bind it to the  GridViewImageColumn: 

Public Shared Function BmpToByte(ByVal _bitmap As System.Drawing.Bitmap) As Byte()
    Dim _ms As New Global.System.IO.MemoryStream()
    _bitmap.Save(_ms, System.Drawing.Imaging.ImageFormat.Bmp)
    Dim _bmpArray As Byte()
    _bmpArray = _ms.ToArray()
    _ms.Flush()
    _ms.Dispose()
    Return _bmpArray
End Function



Public Function BitmapToString(ByVal bImage As Bitmap) As String
    Try
        Dim data As String
        Dim ms As New Global.System.IO.MemoryStream()
        bImage.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp)
        Dim _bmpArray As Byte()
 
        data = Convert.ToBase64String(ms.ToArray())
        Return data
    Catch ex As Exception
        Return String.Empty
    End Try
End Function


The column in my gridView is still empty.....

I've tryed this code:

<telerik:GridViewImageColumn DataMemberBinding="{Binding Logo}" Header="Logo"/>


And this:


<telerik:GridViewDataColumn DataMemberBinding="{Binding Logo}" Header="Logo">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <Image Height="30" Width="30" Source="{Binding Logo}"></Image>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>


I would really appreciate any help....



Yoan
Telerik team
 answered on 05 Jul 2013
3 answers
144 views
I'm looking for a command button in WPF, but it doesn't appear as if there is one.

I would like my command buttons' styling to match the other Telerik controls in the window. Would I be better off trying to match the style with the standard Visual Studio WPF command button or the Telerik WinForms Command Button?


Pavel R. Pavlov
Telerik team
 answered on 05 Jul 2013
5 answers
335 views
Hello,
I am building an application that plots points taken from the USB COM port, into C#, then i want to display these data, it reads a sample every 4 ms, the Y-axis is the value read, and the X-axis is the time.
Can it be done using your Grid View/ Live data control ? 
And is there a better control that i am not baying attention to ?
Any help is appreciated, 

Thanks in advance.
Regards,
Nada.
Nikolay
Telerik team
 answered on 05 Jul 2013
3 answers
90 views
I'm working on a project(appointment scheduler and clinic management system) for several months now using WPF Telerik controls and OpenAccess ORM.
But I have no idea how use RadScheduleView and OpenAccess ORM.
I really need an example which demonstrates how to use these two tools together.
Yana ,Kalin and  the other Telerik guys , please Help ..
Thanks in advance
hiwa
Hiwa
Top achievements
Rank 2
 answered on 04 Jul 2013
1 answer
338 views
When I used Telerik WPF VS Extension to convert my project to Telerik WPF project there was a check box to 'Add referenced assemblies' to project.

When I checked that and chose the few assemblies I needed in my project, I discoverd that ALL the Telerik WPF assemblies have been copied to ...\lib\RCWPF\2013.2.611.40, not just the referenced assemblies as the check box stated. Also ALL the language assemblies were copied as well eventhough I do not intend to use localization.

When I build my solution now only the assemblies I referenced are copied to bin/Debug folders so why did the WPF VS Extenstion copy ALL the WPF assemblies to my solution and can I just waste my time tracking down assemblies I do not need and delete them?

Also, all the localization assemblies are copied to bin/Debug eventhoug I do not need them... why is that and how do I get rid of localization assemblies? Can I just delete them?
Petar
Telerik team
 answered on 04 Jul 2013
3 answers
135 views
Are there plans to implement animations for the WPF TileList control as has been done with the AJAX TileList control? If this has already been implemented, I can't seem to find the documentation on it.
Maya
Telerik team
 answered on 04 Jul 2013
6 answers
375 views
Hi  all,

I use GridView + DataPager with QueryableCollectionView , mainly do CURD operations, everything worked well but add new item.
Please note I assign IQueryable source to QueryableCollectionView for solving huge data performance issue.  When I call gridVIew's BeginInsert();  , one new row will be shown in first row of GridView.  That's fine, but there are some questions. 

1. The insert row will disappear if I click another row(With setting ActionOnLostFocus = ActionOnLostFocus.None),   I cannot find it in grid view any more. because I have added it to EF ObjectContext, so if I do this once and then SaveChanges() , the two entries will be inserted into database! 
I have used AddingNewDataItem Event , but I still can not find the new item in QueryableCollectionView and GridView.Items

 public void AddingNewDataItem(object sender, GridViewAddingNewEventArgs e)
        {
            var entity = copyItem ?? new TOrginal();
            copyItem = null;
            IntializeNewItem(entity);

            var model = new TModel { Model = entity };
            CurrentItem = model;
            e.NewObject = model;
           // AddModelToCollection(e, model);

            if (CheckItemIsNew(CurrentItem)) return;
            CommonManager.Add(entity);
        }

next..I also try to insert Item into QueryableCollectionView directly, the gridview even do not show new item..

So I only can do delete it from EF context when CurrentItem change...

2. How to make Insert Row always visible when Adding new Row and Click other rows of this grid.??? 

Can you please give me some hint? It driven me crazy.

If you cannot solve this, can you please give me one solution for big data and CURD mechanism. 

Dimitrina
Telerik team
 answered on 04 Jul 2013
2 answers
135 views
Hi there,

I followed this discussion and link to get the styled validation running and it's almost there, there's just one (well, maybe two) issue(s) I can't really put my finger on right now.

The style used is taken from the thread above, verbatim.

First is too 'eager' styling after INotifyDataErrorInfo completes (since I'm using INotifyDataErrorInfo to validate each row's view model - so effectively all cells - in the intercepted 'RowEditEnded' event) , here's a reference picture and here's one after row view model validation . failed. Notice how all rows are lit up? None of them have the sliding popup on the exclamation marker, nor the popup with error, so I bet it's an easy style fix, but right now I don't have the time to explore it on my own, so I'm asking at the source.

[EDIT]: Peculiar thing, it seems to happen only on the first validation, then it works as expected.

Other thing is this errors marker, since the validation returns a List<string>, how could I easily customize this template to either not show the pop-up at all or show the error list?





TechInsights
Top achievements
Rank 1
 answered on 04 Jul 2013
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?