Telerik Forums
UI for WinForms Forum
3 answers
676 views
I created a form and I want it to be modal, so users can't interact to what is behind this form. 

I've already tried to set "FormBorderStyle" to FixedDialog, but I still can interact with contents below this window.

Am I missing something?

Thanks!!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 May 2018
1 answer
121 views

Hi.

I'm using the Breeze theme with default values on this pageview control.

Boss says he doesn't like the black on grey appearance of the tab text as they'll be difficult to see. He wants me to change the forecolor of the selected tab to white. (I thought I'd change the theme but 5mins with the theme editor terrified me)

How can I achieve this please?

Dimitar
Telerik team
 answered on 17 May 2018
3 answers
219 views

Hi,

I'd like to implement the Spreadsheet example (gridview) having UI for Winforms Q1 2015 SP1.  I copied the code provided, but can't locate the Telerik.Quickstart.Wincontrols dll or Telerik.Examples.WinControls dll.

 Any suggestions?

 Thanks in advance!

Hristo
Telerik team
 answered on 17 May 2018
3 answers
185 views
Also, I started drawing a chart using ScatterLineSeries. Unfortunately, the problem with this is that the peaks and descents in this chart model are not what I want, and sometimes the chart is somewhat unusual. For a better explanation, I will add the charts I have prepared and the charts I intend to add. Please advise you on how to make a perfect match like the sample image.
Dimitar
Telerik team
 answered on 16 May 2018
4 answers
229 views

Hello,

Do you know if it's possible to draw route directly from coordinates (precalculated with address, town stored in database) ?

I can just use WayPoint from routerequest object, but it's a argument type string ?

In BingMapsRESTToolkit project, it's possible to set coordinates directly to calculate a route ?

But I don't found options with RadMap ?

Do you know if it's possible to add this option with a legacy (inherit) or not ?

Dim oRequest As New RouteRequest()
            With oRequest
                .DistanceUnit = DistanceUnit.Kilometer
                With .Options
                    .Mode = TravelMode.Driving
                    .Optimization = RouteOptimization.Time
                    .RouteAttributes = RouteAttributes.All
                    .RouteAvoidance = RouteAvoidance.Highways
                End With
                With .Waypoints
      STRING NOT  POINTG
                End With
            End With

Thank you

Best regards

Hristo
Telerik team
 answered on 16 May 2018
1 answer
203 views
 Hi, how do I change the background color of the grid in radgridview in windows form?
And how do I remove points from the line?
Dimitar
Telerik team
 answered on 16 May 2018
2 answers
116 views

Hi there!

 

Im working with property grid, and I need to put an image with property name.

I have achieved it, but I need give some margin betwen image and text.(See attached image)

I used that code:

Private Sub PropertyGridParams_ItemFormatting(sender As Object, e As UI.PropertyGridItemFormattingEventArgs) Handles PropertyGridParams.ItemFormatting
    
                        e.VisualElement.Image = New Bitmap(ImagePath, New Size(18, 18))
                        e.VisualElement.ImageAlignment = ContentAlignment.MiddleRight
                 
 
End Sub

How can I set custom image without cover the text?

 

Thank you!

 

MaiK
Top achievements
Rank 1
Iron
 answered on 15 May 2018
3 answers
81 views

Hi,
I am trying to add new items to a Radlist control. I have updated the list which is the data source for the radlist control. When i do the rebind. the new items not showing in the list control.But I can see the datasource(list) has the new item(s) added.I have attached the sample code here. Add button should add the new items to list control. I also wants to achieve if any item(s) double clicked in the list control should be removed from it.Please provide me a sample for that as well.I also wants to keep the dropdownlist list by default as not selected any items(blank) .

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls.UI;
using Common;
using System.Configuration;
 
namespace VisaManagementApp
{
    public partial class Form_Main : Form
    {
        DBHelper dbhelper = new DBHelper();
        Countries Nationalities = null;
        Countries AllowedCountries = null;
        PermittedCountries permittedCountries = null;
 
        string conString;
 
 
        public Form_Main()
        {
            InitializeComponent();
 
            this.radDDL_SourceCountry.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
            this.radDDL_SourceCountry.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            this.radDDL_SourceCountry.DropDownListElement.AutoCompleteSuggest.SuggestMode = SuggestMode.Contains;
 
            this.radDDL_AllowedCountry.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
            this.radDDL_AllowedCountry.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            this.radDDL_AllowedCountry.DropDownListElement.AutoCompleteSuggest.SuggestMode = SuggestMode.Contains;
 
            conString = ConfigurationManager.AppSettings["footPrint"];
        }
 
        private void Form_Main_Load(object sender, EventArgs e)
        {
 
            LoadNationalities();
            LoadAllowedCountries();
            Panel_Main.Location = new Point(this.ClientSize.Width / 2 - Panel_Main.Size.Width / 2, this.ClientSize.Height / 2 - Panel_Main.Size.Height / 2);
            Panel_Main.Anchor = AnchorStyles.None;
            pb_product.Location = new Point(Panel_Header.Width / 2, Panel_Header.Height / 2 - pb_product.Height / 2);
 
        }
 
        private void LoadNationalities()
        {
            Nationalities = null;
            string error = string.Empty;
            try
            {
 
                dbhelper.GetAllCountryDetails(conString, out Nationalities, out error);
               // Nationalities.Insert(0, new Country() { COUNTRY_NAME = "", COUNTRY_CODE = "" });
                this.radDDL_SourceCountry.DataSource = Nationalities;
                foreach (Country cnty in Nationalities)
                {
                    this.radDDL_SourceCountry.ValueMember = "COUNTRY_CODE";
                    this.radDDL_SourceCountry.DataMember = "COUNTRY_CODE";
                    this.radDDL_SourceCountry.DisplayMember = "COUNTRY_NAME";
                }
 
                this.radDDL_SourceCountry.DropDownListElement.EditableElement.NullText = "Search here";
            }
            catch (Exception ex)
            {
 
            }
 
        }
 
        private void LoadAllowedCountries()
        {
            AllowedCountries = null;
            string error = string.Empty;
            try
            {
                dbhelper.GetAllCountryDetails(conString, out AllowedCountries, out error);
                //AllowedCountries.Insert(0, new Country() { COUNTRY_NAME = "", COUNTRY_CODE = "" });
                radDDL_AllowedCountry.DataSource = AllowedCountries;
                foreach (Country country in AllowedCountries)
                {
                    this.radList_AllowedCountries.DisplayMember = "COUNTRY_NAME";
                    this.radList_AllowedCountries.ValueMember = "COUNTRY_CODE";
                    this.radList_AllowedCountries.DataMember = "COUNTRY_NAME";
                }
            }
            catch (Exception ex)
            {
 
            }
 
        }
 
        private void radDDL_SourceCountry_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            if (radDDL_SourceCountry.SelectedIndex != 0)
            {
                permittedCountries = null;
                Country country = null;
                string err = string.Empty;
                dbhelper.GetCountryCode(conString, radDDL_SourceCountry.SelectedItem.Text, out country, out err);
                if (country != null)
                {
                    if (radDDL_SourceCountry.SelectedIndex != 0)
                    {
                        dbhelper.GetPermittedCountries(conString, country.COUNTRY_CODE, out permittedCountries, out err);
 
                        if (permittedCountries != null)
                        {
                            this.radList_AllowedCountries.DataSource = permittedCountries;
                            foreach (PermittedCountry cnty in permittedCountries)
                            {
                                this.radList_AllowedCountries.ValueMember = "ALLOWED_COUNTRY_CODE";
                                this.radList_AllowedCountries.DataMember = "ALLOWED_COUNTRY_NAME";
                                this.radList_AllowedCountries.DisplayMember = "ALLOWED_COUNTRY_NAME";
                            }
 
                        }
 
                    }
                }
            }
 
        }
 
        private void radButton1_Click(object sender, EventArgs e)
        {
 
            try
            {
                if (radDDL_AllowedCountry.SelectedIndex != 0)
                {
 
                    permittedCountries.Insert(0, new PermittedCountry()
                    {
                        ALLOWED_COUNTRY_CODE = radDDL_AllowedCountry.SelectedItem.Value.ToString(),
                        ALLOWED_COUNTRY_NAME = radDDL_AllowedCountry.SelectedItem.Text,
                        NATIONALITY_CODE = radDDL_SourceCountry.SelectedItem.Value.ToString(),
                        STATUS = true
                    });
 
                    radList_AllowedCountries.Rebind();
 
                }
            }
            catch(Exception ex)
            {
 
            }
        }
 
    }
}


Thanks in advance

Sarin Soman

Dimitar
Telerik team
 answered on 15 May 2018
3 answers
78 views

Hello~

I need your help~

Can I Get GanttViewLinkDataItem from GanttViewDataItem ?

 

//current way

var links = gantt.Links.Where(x => x.StartItem = item);

// but, I think a bad way

Hristo
Telerik team
 answered on 15 May 2018
1 answer
115 views

Hi,

I'm trying to create a marked zone that goes between two points in a step line series, but instead the zone runs from the centre of one category to the next.

Is it at all possible to offset the zone or otherwise transform my data for the chart so that I can get the effect I'm going for? I've attached a quick screenshot showing the actual area in grey and where I would want it as a red outline.

 

Thanks

Hristo
Telerik team
 answered on 15 May 2018
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?