Telerik Forums
UI for WinForms Forum
2 answers
354 views

Hello,

i have a sql Database with a imagepath.

How can i show the image in a colum

datasource ist a string with a filepath in the database.

 

Thanks Udo

Udo
Top achievements
Rank 1
Iron
 updated answer on 04 Feb 2022
1 answer
204 views

hi

my code is


void BindGridDeviceName() { string select = "SELECT * from Device;"; using (IDbConnection connection = new SqlConnection(DataLayer.ConnectionClass.ConnectionDaynamic.GetConnectionString)) { var list = connection.ExecuteReader(select); DataTable dt = new DataTable(); dt.Load(list); ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DataSource = dt; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).DisplayMember= "DeviceName"; ((GridViewComboBoxColumn)radGridViewService.Columns["DeviceName"]).ValueMember = "Id"; } }

 

 

------------------------------------

I want when my form is loaded
  The first item or ID from the combo box for each row is in select(show)

I do not want to be displayed by clicking on cells

like combobox.SelectedIndex

2-how to get value cValueMember = "Id" to insert database

thank


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2022
1 answer
78 views
The problem was that this popup is stretched to fit the entire screen. I've added a few lines of code to set the maximum size of this popup and it works fine. However, for the first click, popup is aligned to the left corner of the screen. I tried to set Location property of DropDownMenu and DropDownMenu.PopupElement, but it didn't help.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2022
1 answer
91 views

I set the datasource to a query ( CatQuery)

This loads the control with 2 columns- serialID and catText

How do I get these two values of the selected item of the dropdown.  

 

Thank you

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Feb 2022
1 answer
144 views

This is probably a very trivial issue, but - just starting with UI for Winforms - I am unable to access the data apparently loaded in the workbook below  (what I am trying to do is to load an excel file in a Worksheet to use it in a datatable)

When I run this, it goes well, but the only output displayed by the Debug.Writeline instruction is :

 "> Telerik.Windows.Documents.Spreadsheet.Model.RangePropertyValue`1[Telerik.Windows.Documents.Spreadsheet.Model.ICellValue]"

 

Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click

        Dim fileName As String = "C:\Users\patrick\testfile.xlsx"
        Dim MyWorkbook As New Telerik.Windows.Documents.Spreadsheet.Model.Workbook
        Dim WorkbookFormatProvider As New XlsxFormatProvider()
        Dim MyInput As New FileStream(fileName, FileMode.Open)
        MyWorkbook = WorkbookFormatProvider.Import(MyInput)
   
        Dim MySheet As Worksheet = MyWorkbook.Sheets.ActiveSheet
        RadSpreadsheet1 = MyWorkbook.Sheets

        Dim Res As String = MySheet.Cells(1, 1).GetValue().ToString
        Debug.WriteLine(" > " & Res)
       
    End Sub

 

Can someone be kind to tell me what I do wrong ?

Thanks

(using Win 11, VS 2019, DEvCraft UI)

Svilen
Telerik team
 answered on 02 Feb 2022
1 answer
67 views

Hi,

I'm trying to render HTML data as a title in the dock window caption element. Although it renders the HTML data as expected, it does overlap with the Window State & Dock buttons. I tried applying text trimming using CSS properties but It didn't work. How to avoid overlapping?

Attached a sample

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Feb 2022
1 answer
116 views
Question.  Can you select multiple pages in the pdfviewer to export.  I can split the complete document into separate page files, but I wish only to export selected page/pages.  A quick example would be appreciated.   I tried multi-select with shift key in the thumbnail section, but that does not seem to work.  I would assume I save the first selected page and then append the other pages, unless there is another way to export multiple pages.  
Dimitar
Telerik team
 answered on 02 Feb 2022
1 answer
85 views

Hello,

I can not find the task dialog for winforms in your telerik tools controls latest version.

what is i have to do

Thanks in advance

Best Regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Feb 2022
1 answer
95 views

Hi

I want to display report using radtreeview controls. Can somebody help me regarding that i am new to radtreeview control. Currently I am using radgridview to display report.

 

 

Thanks 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Feb 2022
1 answer
198 views

I have a PropertyGrid with 2 types of editors ; SpinEditor and DropDownListEditor. After the user changes a value in a SpinEditor, it triggers the event PropertyValueChange. However, after the user selects a new value in the DropDownListEditor, it does not trigger the PropertyValueChange. The ValueChanged event is fired but the new data is not saved in the item at this point. 

How can I make it trigger the PropertyValueChange event after the user changes the value in the DropDownList?

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Feb 2022
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?