Telerik Forums
UI for WinForms Forum
5 answers
272 views

Hi,

I'm writing a form where user can rearrange items on ListView and add new from ListControl.

I've used Drag and drop feature, because it's very easy and convenient for client. For ListView I've used ListViewDragDropService (http://docs.telerik.com/devtools/winforms/listview/drag-and-drop/drag-and-drop-in-bound-mode) and to add new items from ListControl OLE (http://docs.telerik.com/devtools/winforms/listview/drag-and-drop/combining-raddragdropservice-and-ole-drag-and-drop).

 

Problem is when user rearrange items you have this nice indicator (insertion lines) where item will be put. But when I drag item from ListControl there is no information where item will be putted. Even I use ShouldDropAfter to figure-out if I should put item before or after.

This is not consistent so how can I "activate" this line?

I will be grateful to show me solution, direction how to achieve this. 

 

I use 2016.3.913.40 version.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Dec 2016
1 answer
144 views

Hi

What I'm trying to do is to use VisualStudio2012Light theme on my entire application and on my main form trying to use my custom theme on some controls. But my custom theme is not applying on the controls

The Code:

On Program.Main() 

  using (var TemaGeral = new Telerik.WinControls.Themes.VisualStudio2012LightTheme())
            {
                TemaGeral.DeserializeTheme();
                ThemeResolutionService.ApplicationThemeName = TemaGeral.ThemeName;
            }

On MyForm.Constructor()

       public NovoMenu()
        {
            InitializeComponent();
            
            using (var tema = new Temas.Telerik.NossoERPVisualStudio2012LightTheme())
            {
                tema.Load();
                tema.DeserializeTheme();
                ThemeResolutionService.ApplyThemeToControlTree(pnMenu, tema.ThemeName);
                this.ThemeName = tema.ThemeName;
            }

        }

 

My Custom Theme class

 

 public class NossoERPVisualStudio2012LightTheme : RadThemeComponentBase
    {
        static bool loaded;
        public NossoERPVisualStudio2012LightTheme()
        {
            ThemeRepository.RegisterTheme(this);
        }
        static NossoERPVisualStudio2012LightTheme()
        {

        }

        public override void Load()
        {
            if (!loaded || this.IsDesignMode)
            {
                loaded = true;
                Assembly resource = typeof(NossoERPVisualStudio2012LightTheme).Assembly;
                this.LoadResource(resource, "Nosso.Temas.Telerik.NossoERPVisualStudio2012Light.tssp");
            }
        }
        public override string ThemeName
        {
            get
            {
                return "NossoERPVisualStudio2012Light";
            }
        }
    }

 

Is that possible?

My theme code is working i've tested it using on my entire application, and its ok.

 

Sorry for bad english

 

 

 

Hristo
Telerik team
 answered on 05 Dec 2016
14 answers
987 views
I can see that whenever a new item is created in the property grid it gets added to the Item collection of the property grid. My question is that is there anyway i can manually add remove item from the Items list. The reason for this is because i want to be able to remove non top level items in the list. For example, i might have an expandable object which i want to remove a single component from the expandable part and have the property grid update properly. Right now there is no way to do that because the Items collection of the property grid is ReadOnly.
Dimitar
Telerik team
 answered on 05 Dec 2016
4 answers
484 views
Hi ,
     I am using multicolumn combox and also enabled filtering in combox. if i search item in combobox , its populating correct result and if i double click on any one of the item, selected item is not showing in the combox. please give solution to show the selected item not different item by double click in editor control.
Dimitar
Telerik team
 answered on 05 Dec 2016
9 answers
1.1K+ views

Hello all,

I want to generate hierarchy grid view with multiple levels like the picture http://screencast.com/t/L0snTsuj

Currently i use AutoGenerateHierarchy and create recursive data, i generated three levels like the picture http://screencast.com/t/ZtxNcwMqPaz

However i could not found any solutions for latest children template (different columns and data, grouping by columns, and only generate when parent expanded)

Please help me!!!

Thanks
Regards

Martin
Top achievements
Rank 1
Iron
 answered on 05 Dec 2016
1 answer
175 views

 Is it possible to drag and drop an excel csv or worksheet into a gridview? 

 

Thanks
Mark

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Dec 2016
9 answers
595 views

 

I currently have a save button click event that calls a procedure named ValidateData.   The ValidateData procedure iterates through rows in the grid and sets the color or the row to red if the data therin is invalid.   The problem I have is that after upgrading to RadControls 2011 Q1 the VisualElement property is no longer available.  I have been searching through these forums for a couple of hours and haven't run across a viable way of dealing with this.    Is there an easy way to accomplish this?  I don't believe the RowFormatting Event applies in my case.

Much appreciated
Kevin



Private
Function ValidateData() As Boolean

 

 

Dim entBundleComponent As BundleComponent

 

 

 

Dim isValid As Boolean = True

 

 

Dim isValidRow As Boolean = True

 

 

Dim gvRow As UI.GridViewRowInfo

 

 

 

For Each gvRow In gvComponents.Rows

 

 

isValidRow =

True

 

entBundleComponent =

CType(gvRow.DataBoundItem, BundleComponent)

 

 

 

If entBundleComponent.COMPONENT_NAME.Trim().Length = 0 Then

 

isValid =

False

 

isValidRow =

False

 

 

End If

 

 

If entBundleComponent.COMPONENT_DESCRIPTION.Trim().Length = 0 Then

 

isValid =

False

 

isValidRow =

False

 

 

End If

 

 

If isValidRow Then

 

gvRow.VisualElement.BackColor = Color.Transparent

gvRow.VisualElement.DrawFill =

True

 

 

Else

 

gvRow.VisualElement.BackColor = Color.Red

gvRow.VisualElement.DrawFill =

True

 

 

End If

 

 

Next

 

 

If isValid Then

 

txtMessages.Text =

"Ok"

 

txtMessages.ForeColor = Color.Black

 

Else

 

txtMessages.ForeColor = Color.Red

txtMessages.Text =

"Please correct errors before saving."

 

 

End If

 

 

Return isValid

 

 

 

End Function

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Dec 2016
1 answer
95 views
I have created a winforms with components and I want to localize it (using the .resx files
I set the forms property localizable to true and the default language to "french"
When I want to add a componenet (a radbutton for exemple) I have an error message that tells me "Impossible to add a componenet in localizable mode - set the language to default"
How can I convert my form to be localizable (I need the application to support English and french)
Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Dec 2016
2 answers
145 views

I have a string that contains the name of a person associated with a location.  I am using the request code provided by Telerik:

                Telerik.WinControls.UI.Map.Bing.SearchRequest request = new SearchRequest();
                request.Query = latlong;
                request.SearchOptions.QueryParse = true;
                request.UserData = //  <- Here is where I think it would work, but I don't know how to get this accessible by the Bing! search.                bingProvider.SearchAsync(request)

I am using the BingProvider_SearchCompleted code provided by Telerik, however, I do not see how to pass a string using the request that can then be used as the pin.ToolTipText. 

 

            Telerik.WinControls.UI.Map.RectangleG allPoints = new Telerik.WinControls.UI.Map.RectangleG(double.MinValue, double.MaxValue, double.MaxValue, double.MinValue);
            foreach (Telerik.WinControls.UI.Map.Bing.Location location in e.Locations)
            {
                Telerik.WinControls.UI.Map.PointG point = new Telerik.WinControls.UI.Map.PointG(location.Point.Coordinates[0], location.Point.Coordinates[1]);
                MapPin pin = new MapPin(point);
                pin.Size = new System.Drawing.Size(20, 40);
                pin.BackColor = Color.Aquamarine;
                pin.ToolTipText = //  <-  Here is where I would like the name to show up.
                this.radMap1.MapElement.Layers["Primary"].Add(pin);
                allPoints.North = Math.Max(allPoints.North, point.Latitude);
                allPoints.South = Math.Min(allPoints.South, point.Latitude);
                allPoints.West = Math.Min(allPoints.West, point.Longitude);
                allPoints.East = Math.Max(allPoints.East, point.Longitude);
                currentClientLoc = currentClientLoc + 1;
            }
            if (e.Locations.Length > 0)
            {
                if (e.Locations.Length == 1)
                {
                    this.radMap1.BringIntoView(new Telerik.WinControls.UI.Map.PointG(e.Locations[0].Point.Coordinates[0], e.Locations[0].Point.Coordinates[1]));
                }
                else
                {
                    this.radMap1.MapElement.BringIntoView(allPoints);
                    this.radMap1.Zoom(this.radMap1.MapElement.ZoomLevel - 1);
                }
            }
            else
            {
                RadMessageBox.Show("No result found for the provided search query!");
            } 

Any help would be much appreciated.  And...  I a side note.  I get to the first person to post on this forum?  Yay!  :-)

 

-Scott

Scott
Top achievements
Rank 1
 answered on 02 Dec 2016
1 answer
883 views

I was new to telerik.
I want to hide columns in radgridview which column all cells are null values by programmatically.

thanks

Dimitar
Telerik team
 answered on 02 Dec 2016
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?