Telerik Forums
UI for WinForms Forum
4 answers
216 views
Hello,

I am a user of the framework "Telerik" for "C # Winform."

For some time now I try to interface my application with the "Panorama Desktop" module to display "Tiles" according to the connected user.

The objective is to get the name of the groups in the table "GROUPS" in the MS-Sql database and create the dynamically in my application.

Then retrieve the table "ITEMS" all items of a group and include them in the appropriate group.

Table : GROUPS
groupID
groupName
groupOrder

Table : ITEMS
itemID
groupID
itemName
itemOrder
itemImage
itemRow
itemCol
itemSpanWidth
itemSpanHeight

Would someone an idea or example code allows me to set up this feature because then I do not see how.

Thanking you in advance for your answers.

Regards,

Alexandre
alexandre.schouvert@gmail.com
Alexandre
Top achievements
Rank 1
 answered on 11 Aug 2015
2 answers
386 views

I have implemented custom grouping for a GridView and would like to change the group header background color for some groups based on the grouped rows.

How would I do that?

 -Lou

Dimitar
Telerik team
 answered on 11 Aug 2015
1 answer
131 views

Hi,

Gridview sort fails when column contains null values or incompatible row values.

See the following errors when sorting using the column header.

 

Brian

 

 

Dimitar
Telerik team
 answered on 11 Aug 2015
3 answers
1.3K+ views

Dear Support,

How can I implement grid with multiple headers or like child header. Any live example or code snipped will be appreciated.

thanks

arvind

arvind
Top achievements
Rank 1
 answered on 11 Aug 2015
1 answer
138 views

Hi everyone,

I used the CellFormatting event to Format all cell's Background and border.

So, when i click on a cell, I don't see the selected row/cell.

 

Is there any way to set an higher priority to the selected cell/row than the cell formatting ?

 

Thanks in advance.

 

Best regards,

Tony

Stefan
Telerik team
 answered on 10 Aug 2015
1 answer
105 views

How do you turn off the borders of a table created in a RichTextEditor? In a demo example it shows 3 cells. Can you make the borders invisible?

 

 

 


 
 
Dimitar
Telerik team
 answered on 10 Aug 2015
2 answers
139 views

Hi,

I'm relatively new at programming, so please bare with me.

What I have:

On load fetching image files from folder and creating tiles with those images.

Also, I have an event handler when a file added to folder, to add a new tile.

On load everything works fine and tiles are added. On event, the same sub that generates the tile fails in the "End Sub" with 

"An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll" and I'm unable to understand what I'm doing wrong.

My code: 

Imports System.IO
Imports System.Diagnostics
Imports Telerik.WinControls
Imports Telerik.WinControls.UI
Imports System.Threading
Imports System.ComponentModel


Public Class GridWindow
    Public watchfolder As FileSystemWatcher
    Dim itemCol As New List(Of String)
    Dim fileCount As Int32

    Public Sub fillGrid()
        Try

            Dim watchfdr As New FileSystemWatcher
            watchfdr.Path = My.Settings.sourcefldr
            Dim txtFiles = Directory.GetFiles(watchfdr.Path, "*.*", SearchOption.TopDirectoryOnly).[Select](Function(nm) Path.GetFileName(nm))
            If txtFiles.Count > 0 Then
                For Each filenm As String In txtFiles
                    itemCol.Add(filenm)
                Next
                fileCount = itemCol.Count()

            End If
            If itemCol.Count > 0 Then
                For Each filenm In itemCol
                    AddNewImageTile(filenm)
                Next
            End If
            watchfdr.NotifyFilter = IO.NotifyFilters.DirectoryName
            watchfdr.NotifyFilter = watchfdr.NotifyFilter Or _
                                       IO.NotifyFilters.FileName
            watchfdr.NotifyFilter = watchfdr.NotifyFilter Or _
                                       IO.NotifyFilters.Attributes

            AddHandler watchfdr.Created, AddressOf fileAdded
            watchfdr.EnableRaisingEvents = True



        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

    End Sub

 
    Private Sub fileAdded(ByVal source As Object, ByVal e As System.IO.FileSystemEventArgs)

        Try
            If e.ChangeType = IO.WatcherChangeTypes.Created Then
                Dim shortPath As String = e.FullPath.Substring(e.FullPath.LastIndexOf("\") + 1)
                AddNewImageTile(shortPath)
                'itemCol.Add(e.FullPath.ToString())
               
            End If
        Catch ex As Exception
            MessageBox.Show("Exception in fileAdded: " & ex.Message)

        End Try

    End Sub


    Private Sub AddNewImageTile(ImagePath)
        Try
            Dim img As Bitmap = CType(Image.FromFile(My.Settings.sourcefldr.ToString & "\" & ImagePath, True), Bitmap)
            Dim newTile As New RadTileElement()
            newTile.AutoSize = True
            newTile.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.Auto
            newTile.GradientStyle = Telerik.WinControls.GradientStyles.Linear
            newTile.Image = img
            newTile.Padding = New System.Windows.Forms.Padding(1)
            newTile.Size = New System.Drawing.Size(214, 276)        
            newTile.Row = RadPanorama1.Items.Count Mod Me.RadPanorama1.RowsCount
            newTile.Column = RadPanorama1.Items.Count / Me.RadPanorama1.RowsCount
            newTile.Visibility = ElementVisibility.Visible
            Me.RadPanorama1.Items.Add(newTile)

        Catch ex As Exception
            MessageBox.Show("Exception in AddNewImage: " & ex.Message)
        End Try

    End Sub



    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        fillGrid()

    End Sub



End Class

​

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2015
2 answers
182 views

In a progress openedge form which inherits from Telerik.WinControls.UI.RadForm, I have added this line into the constructor :

 

ThemeResolutionService:ApplicationThemeName = "visualStudio2012Dark" .

 

However the theme is not being applied to the application. 

Can someone please help out?
Thanks

David
Top achievements
Rank 1
 answered on 10 Aug 2015
1 answer
113 views

The appointment not showed when  RadScheduler1.GroupType = GroupType.Resource

 

           dt = ObjDS.Tables(0)
            dt2 = ObjDS2.Tables(0)

            appointmentMappingInfo.Start = "StartTime"
            appointmentMappingInfo.End = "EndTime"
            appointmentMappingInfo.Summary = "TaskDetails"
          
            resourceMappingInfo.Id = "StaffID"
            resourceMappingInfo.Name = "StaffFullName"

            

            SchedSource.EventProvider.Mapping = appointmentMappingInfo
            SchedSource.EventProvider.DataSource = dt
            SchedSource.ResourceProvider.Mapping = resourceMappingInfo
            SchedSource.ResourceProvider.DataSource = dt2
          

            RadScheduler1.DataSource = SchedSource
            RadScheduler1.GroupType = GroupType.Resource​

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Aug 2015
2 answers
294 views

Hi everyone,

 I've got a Hierarchical grid in my form. All of my Parent row have a button "+" to allow user to expand children row even if they haven't any child.

 Is there any way to hide this button when a parent doesn't have any child.

Thanks in advance.

Best regards

Tony

Tony
Top achievements
Rank 1
 answered on 06 Aug 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? 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?