Telerik Forums
UI for WinForms Forum
1 answer
163 views

Hi,

I created a Usercontrol using telerik winform controls.

How to include the created Usercontrol into telerik grid view column as Column type

regards

Subramanya Udupa

 

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Mar 2017
2 answers
171 views
how to change the shape of the default pin to the user created shape pin?
Joel
Top achievements
Rank 1
 answered on 28 Mar 2017
1 answer
265 views

hi,

i have some code like this

For i = 0 To count
    Dim col1 As CheckedListBox.CheckedItemCollection = chk_Sorumlular.CheckedItems
    Dim col2 As CheckedListBox.CheckedItemCollection = chk_Beyannameler.CheckedItems
    If col1.Contains(Me.Izgara.Rows(i).Cells(Me.sutun_sorumlu.Name).Value) And col2.Contains(Me.Izgara.Rows(i).Cells(Me.sutun_Turu.Name).Value) Then
        Dim str As String = Me.Izgara.Rows(i).Cells(Me.sutun_ID.Name).Value.ToString()
        Dim chrArray() As Char = {"|"c}
        If (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(str.Split(chrArray)(1).Trim(), "", False) <> 0) And chk_TahakkukFisi.Checked Then
            Me.Izgara.Rows(i).Cells(Me.sutun_Sec_Tahakkuk.Name).Value = CheckState.Checked
        Else
            Me.Izgara.Rows(i).Cells(Me.sutun_Sec_Tahakkuk.Name).Value = CheckState.Unchecked
 
        End If
        If (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(str.Split(chrArray)(0).Trim(), "", False) <> 0) And chk_Beyanname.Checked Then
            Me.Izgara.Rows(i).Cells(Me.sutun_Sec_Beyanname.Name).Value = CheckState.Checked
        Else
            Me.Izgara.Rows(i).Cells(Me.sutun_Sec_Beyanname.Name).Value = CheckState.Unchecked
 
        End If
    Else
        Me.Izgara.Rows(i).Cells(Me.sutun_Sec_Tahakkuk.Name).Value = CheckState.Unchecked
        Me.Izgara.Rows(i).Cells(Me.sutun_Sec_Beyanname.Name).Value = CheckState.Unchecked
    End If
    Application.DoEvents()
Next

 

i can do this with microsoft checkedlistbox component

but i try do with radcheckedlistbox and get error

An unhandled exception of type 'System.InvalidCastException' occurred in asd.exe
Additional information: An object of type 'System.String' could not be thrown to 'Telerik.WinControls.UI.ListViewDataItem'.

 

how can i fix this

 

thank you

 

Dimitar
Telerik team
 answered on 28 Mar 2017
2 answers
85 views

I am trying to validate a change to a property from within a propertygrid that requires a password.  I am trying to capture the ValueChanging event for the underlying editor.  If a form is launched from within the event handler and the change is not cancelled, an ArgumentOutOfRangeException ends up being thrown sometime after the event handler returns.  I have attached a simple example that throws the exception.  In it there is a simple Yes/No message box.  If Yes is answered -> Exception is thrown.  Any help is much appreciated.  Thank you

 

Enum type and simple class edited by the Property Grid.

public enum EnumeratedProp {
   FirstItem,
   SecondItem,
   ThirdItem
}
 
public class TestProps
{
   [DisplayName("Formula Lock Active")]
   [Description("Indicates whether custom formulas can be locked to prevent editing")]
   public EnumeratedProp TestProp { get; set; }
}

 

Form Code

public partial class TestPropsForm : Form
{
   public TestProps tstProps = new TestProps();
 
   public TestPropsForm()
   {
      InitializeComponent();
      radPropGrid.SelectedObject = tstProps;
   }
 
   private void radPropGrid_EditorInitialized(object sender, Telerik.WinControls.UI.PropertyGridItemEditorInitializedEventArgs e)
   {
      if(e.Item.Name == "TestProp")
      {
         e.Editor.ValueChanging += TestProp_ValueChanging;
      }
   }
 
   private void TestProp_ValueChanging(object sender, Telerik.WinControls.UI.ValueChangingEventArgs e)
   {
      e.Cancel = (MessageBox.Show("Are you sure you want to change this?", "Question", MessageBoxButtons.YesNo) != DialogResult.Yes);
   }
}

Larry
Top achievements
Rank 1
 answered on 27 Mar 2017
7 answers
342 views
I cant write anything at Code Converter branch, everything closed there. So I wanna ask somewhere.Got trouble with batch code converter, its do  not work as intended and throws me an exception like  "Not found Sorry, we couldn't find the page you're looking for.The page you were looking for appears to have been moved, deleted or does not exist."
Dimitar
Telerik team
 answered on 27 Mar 2017
1 answer
393 views

First, I'm sorry if the question is not at the correct place.

I have an application that uses FiddlerCore4.dll

I use the following to installe Fiddler's certificate:

 

        public static bool InstallCertificate()
        {
            if (!string.IsNullOrEmpty(certmakerBcCert))
            {
                FiddlerApplication.Prefs.SetStringPref("fiddler.certmaker.bc.key", certmakerBcKey);
                FiddlerApplication.Prefs.SetStringPref("fiddler.certmaker.bc.cert", certmakerBcCert);
            }

            if (!CertMaker.rootCertExists())
            {
                //CLog.writeNoLogInDB("Creating SSL certificate");
                if (!CertMaker.createRootCert())
                    return false;

                if (!CertMaker.trustRootCert())
                    return false;

                FiddlerApplication.Prefs.SetBoolPref("fiddler.certmaker.PreferCertEnroll", true);
                certmakerBcCert = FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.cert", null);
                certmakerBcKey = FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.key", null);
            }
            return true;
        }

 

However, for firefox, I need to import them manually. How can I ensure through code they are also installed in Firefox? Been looking how to do it for a while.

My application needs to be user friendly, so using Fiddler application to generate Root certificates, and then import them in Firefox is complicated for users.

 

Thanks

Tsviatko Yovtchev
Telerik team
 answered on 24 Mar 2017
1 answer
123 views
Is there any way to specify the RTF version used by the RtfFormatProvider when exporting from the RichTextEditor?

We have an application that integrates with a 3rd party system which pulls an RTF string from their RichTextBox, loads into a Telerik RichTextEditor, allows editing and then pushes it back to the control. 

It pulls into the Telerik RichTextEditor correctly, but does not render correctly when loaded back into the original control, displaying all the RTF syntax and metadata. 
I checked the string that gets pulled from each and noticed that RTF version on the original control was older version than used by the RichTextEditor/RtfFormatProvider. If there is a way to specify an older version in the RichTextEditor/RtfFormatProvider when exporting I feel this would fix the problem.

FYI: I have tested the exact same scenario replacing the RichTextEditor/RtfFormatProvider with a standard .Net RichTextBox and that works correctly.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Mar 2017
3 answers
761 views

Hello,

We were looking to implement WinForms RadGridView in a small window application that consumes a RestAPI.

We would like to use custom paging in that case to send the page size, and possibly filters to the API. We see that we can get the page size and index yet we can't set the total count for the grid when we get a result back from the API.

In Web we can use custom paging by setting AllowCustomPaging = true and we can set the total item count which will affect the pager control showed pages by setting VirtualItemCount.

Can we do the same in WinForms GridView?

A sample would be great.

Thanks

 

Dimitar
Telerik team
 answered on 23 Mar 2017
1 answer
58 views

If you change the size of the buttons on the rad spin editor, they disappear.

I'm using VB Winforms.

I place a rad spin editor on the form.

I edit the properties of the spin editor using " Edit UI Elements".

On RadSpinElementUpButton make autosize to "False"

Change the width to 30.

It looks good in design view but run it and the buttons dissapear, also if you copy and paste it they also disappear.

 

 

Dimitar
Telerik team
 answered on 23 Mar 2017
5 answers
491 views
Hello!

RadGridView does not contain a definition of GetCellDisplayRectangle.
Is there any way to get PointToScreen location of cell in RadGridView?

I want to show new form just above RowIndex = 1 and ColumnIndex = 3.
In standard DataGridView from .Net this work like:

Point location = grid.PointToScreen(grid.GetCellDisplayRectangle(3, 1, false).Location);

Richard
Top achievements
Rank 1
 answered on 22 Mar 2017
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?