Telerik Forums
UI for WinForms Forum
2 answers
58 views

Hello,

I have a PDF that contains fields that I have added with Acrobat. If I put values in those fields and display the PDF with the Viewer, neither the fields nor their values have any kind of representation on the display. How do I get these to show up?

To clarify, the rest of the PDF renders fine. It's simply the fields and their values that aren't showing up at all.

Thanks!

Michael
Top achievements
Rank 1
 answered on 18 Sep 2015
3 answers
131 views

I have a problem for this scenario

 Some External hardware device for passing message to the grid

GridViewRowInfo rowinfo = radGridView1.Rows.AddNew();

rowinfo.Cells[0] = 12  // which is the id

rowinfo.Cells[1] = "Some Values"

 

someTableAdatper.Update(someDataSet)

 

Since ID is unique generate, is there way to get that ID+1 auto generate or I have to found out the # of row and + 1 to it?

 

 

 

 

 

 

 

 

 

Dimitar
Telerik team
 answered on 18 Sep 2015
7 answers
778 views
Hi,
I have two questions

Hyperlink Like Column:
    Basically I have to display a list of columns where some columns will be used as hyperlink to take it to their details.How to get a column as hyperlink in window gridview which will take it to new form.

All I want to be able to add a column like the normal data grid view control where the user can click the text which appears like a hyperlink and have some action occur.
 
Change the Font:
I have a workaround solution if cannot create hyperlink like column.Change the color of the cellelement to Blue and underline.And on cell element click we can take it to new form.How to change the font of the cell element in runtime.I can see font.underline is readonly.?

Please help

Stefan
Telerik team
 answered on 18 Sep 2015
2 answers
138 views

I've got a lot of images I need to load in from a directory into a project where I display a full-screened radrotator on a secondary monitor. I want to be able to show a slideshow of pictures, but I need them to properly fit the screen, and I'd like ones that are strange sizes to be horizontally and vertically centered. All of this seems to be working with my code so far except the centering part...

Here is my code:

 

Imports System.Windows.Forms
Imports Telerik.WinControls.UI
Imports System.IO
Imports System.Security.Cryptography
 
Public Class formSlideshow
 
    Private Sub ShapedForm1_Load(sender As Object, e As EventArgs) Handles Me.Load
        Me.FormBorderStyle = FormBorderStyle.None
        Me.Bounds = GetSecondaryScreen().Bounds
        Dim screensize As New Drawing.Size(Me.Width, Me.Height)
        RadRotator1.Size = screensize
        RadRotator1.Interval = (CInt(Val(formSettings.Interval)) * 1000)
 
        If LoadImages() = True Then RadRotator1.Start()
    End Sub
 
    '--Get size and location of secondary monitor
    Public Function GetSecondaryScreen() As System.Windows.Forms.Screen
        For Each windowscreen As System.Windows.Forms.Screen In System.Windows.Forms.Screen.AllScreens
            If Not windowscreen Is System.Windows.Forms.Screen.PrimaryScreen Then
                Return windowscreen
            End If
        Next
        Return Screen.PrimaryScreen
    End Function
 
    '--Load images into radRotator
    Public Function LoadImages() As Boolean
        Try
            Dim imageslist As New List(Of String)
 
            '--Get employees personal images
            For Each employeeimage As String In Directory.GetFiles(formSettings.EmployeeDir)
                If Path.GetExtension(employeeimage) = ".jpeg" Or Path.GetExtension(employeeimage) = ".png" Or Path.GetExtension(employeeimage) = ".jpg" Then
                    imageslist.Add(employeeimage)
                End If
            Next
 
            '--Get default images
            For Each defaultimage As String In Directory.GetFiles(formSettings.DefaultDir)
                If Path.GetExtension(defaultimage) = ".jpeg" Or Path.GetExtension(defaultimage) = ".png" Or Path.GetExtension(defaultimage) = ".jpg" Then
                    imageslist.Add(defaultimage)
                End If
            Next
 
            '--Randomize order of images
            imageslist.Sort(New Randomizer(Of String)())
 
            '--Add images to radRotator item list
            For Each imagefile As String In imageslist
                Dim newimage As Image = Image.FromFile(imagefile)
                Dim rotatoritem As New RadImageItem()
                rotatoritem.Image = ScaleImage(newimage, 768, 1366)
                RadRotator1.Items.Add(rotatoritem)
            Next
 
            Return True
 
        Catch ex As Exception
            Return False
        End Try
 
        Return False
    End Function
 
    '--Shrink images to fit screen, proportionately
    Public Function ScaleImage(ByVal OldImage As Image, ByVal TargetHeight As Integer, ByVal TargetWidth As Integer) As System.Drawing.Image
 
        Try
            Dim NewHeight As Integer = TargetHeight
            Dim NewWidth As Integer = NewHeight / OldImage.Height * OldImage.Width
 
            If NewWidth > TargetWidth Then
                NewWidth = TargetWidth
                NewHeight = NewWidth / OldImage.Width * OldImage.Height
            End If
 
            Return New Bitmap(OldImage, NewWidth, NewHeight)
 
        Catch ex As Exception
            Return Nothing
        End Try
 
        Return Nothing
    End Function
End Class
 
 
Public Class Randomizer(Of T)
    Implements IComparer(Of T)
 
    '--Insures different instances are sorted in different orders
    Private Shared Salter As New Random() '--Only as random as your seed
    Private Salt As Integer
    Public Sub New()
        Salt = Salter.Next(Integer.MinValue, Integer.MaxValue)
    End Sub
 
    Private Shared sha As New SHA1CryptoServiceProvider()
    Private Function HashNSalt(ByVal x As Integer) As Integer
        Dim b() As Byte = sha.ComputeHash(BitConverter.GetBytes(x))
        Dim r As Integer = 0
        For i As Integer = 0 To b.Length - 1 Step 4
            r = r Xor BitConverter.ToInt32(b, i)
        Next
 
        Return r Xor Salt
    End Function
 
    Public Function Compare(x As T, y As T) As Integer _
        Implements IComparer(Of T).Compare
 
        Return HashNSalt(x.GetHashCode()).CompareTo(HashNSalt(y.GetHashCode()))
    End Function
End Class

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Sep 2015
2 answers
62 views
How can i Hide the sub total and grand total from the grid
Vivek
Top achievements
Rank 1
 answered on 18 Sep 2015
7 answers
169 views

Hi,

 I would use RadScheduler in an application to show and edit work shifts. I'm using Telerik Q2 2015, Visual Studio 2013.

 My question is, is it possible to somehow add some UI controls (labels, check boxes, buttons etc.) to the appointment (e.g by inheriting an own appointment class), so that the user would be able to do some edit actions on the appointment straight away without opening any appointment edit dialog?

Regards,

Pirjo

 

Hristo
Telerik team
 answered on 17 Sep 2015
3 answers
217 views

If I have a row with columns marked as read only and try to paste to it, the column will be skipped causing an undesired behavior.  Is this a bug?  Is there a workaround for this?  I have attached screen shots demonstrating the behavior. Notice that my last column is blank after the paste.

 

 

 

 

Hristo
Telerik team
 answered on 17 Sep 2015
1 answer
100 views

Hi,

I will start with my issues

I have a gridview(gPackageNotes) and txtbox(txtPackageNote) in my winform

Please check my query in the attactment.

 

 

Thanks

Regards

Ramraj

Dimitar
Telerik team
 answered on 17 Sep 2015
1 answer
377 views

I use an AutoCompleteBox in conjunction with a List<T> returned from a WCF service that uses Linq to retrieve suggested items based on a number of criteria. I only allow the selection of one complete token item whose value ultimately gets entered into a database table. This works as expected. My question is on the flip side, when I load an entity, I want to take the value that was written into the database and create the token setting the value and text properties and set it.

 I tried the Items property, but that is read-only. Cant find anything obvious in the documentation either.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2015
1 answer
356 views

Hey,

is there any documentation about the "StringFormat" property used by the PropertyAggregateDescription?

Only useful resource i found was for Kendo UI (http://docs.telerik.com/kendo-ui/framework/globalization/numberformatting​).

I have no clue how to set the Format to n0 and add a postfix string (the result should look like 10,045 FOO$). I've tried "n0 'FOO$'", but it keeps ignoring the n (so i dont get any separators). "0 'FOO$'" works, but does not give me the desired number format.

Cheers,

Jens

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Sep 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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?