Telerik Forums
UI for WinForms Forum
1 answer
134 views

HI,

I have a radPopupEditor control and a radPopupContainer control .Inside radPopupContainer , i placed a radGridView. In radGridView there are a lot of data and have a scroll in it , the problem is when i tried to scroll inside the radGridView the popub  is closing  and the radGridView  scroll doesnt works . how can i solve the problem.

Dimitar
Telerik team
 answered on 07 Nov 2017
3 answers
114 views

Hi,

Spent some time today with the RadTreeView and can't figure out why a node is removed fine from the DS when using 

            radTreeView1.DisplayMember = "Name";
            radTreeView1.ValueMember = "Id";

But not when using:

            radTreeView1.DisplayMember = "Name\\ChildName";
            radTreeView1.ChildMember = "list\\ChildObjects";

Regards,

Thomas

See code below:

namespace RadTreeViewTest
{
    public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        BindingList<MyObject> list = new BindingList<MyObject>();
        int counter = 0;
        public RadForm1()
        {
            InitializeComponent();
            list.ListChanged += List_ListChanged;
            radTreeView1.DataSource = list;
            radTreeView1.DisplayMember = "Name\\ChildName";
            radTreeView1.ChildMember = "list\\ChildObjects";
            //radTreeView1.DisplayMember = "Name";
            //radTreeView1.ValueMember = "Id";
        }
 
        private void List_ListChanged(object sender, ListChangedEventArgs e)
        {
            radLabel1.Text = ""+list.Count;
        }
 
        private void radButton1_Click(object sender, EventArgs e)
        {
            list.Add(new MyObject(counter++, "Test " + counter, 5));
        }
    }
 
    public class MyObject : INotifyPropertyChanged
    {
        private int id;
        public int Id
        {
            get { return id; }
            set { SetField(ref id, value, "Id"); }
        }
        private string name;
        public string Name
        {
            get { return name; }
            set { SetField(ref name, value, "Name"); }
        }
 
        private int counter;
        public int Counter
        {
            get { return counter; }
            set { SetField(ref counter, value, "Counter"); }
        }
        public BindingList<ChildObject> ChildObjects { get; set; }
        public MyObject()
        {
 
        }
        public MyObject(int i, string n, int c)
        {
            ChildObjects = new BindingList<ChildObject>();
            this.Id = i; this.Name = n;this.Counter = c;
            ChildObjects.Add(new ChildObject(i, "ghejwgk 1"));
            ChildObjects.Add(new ChildObject(i, "ghejwgk 2"));
        }
 
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
        protected bool SetField<T>(ref T field, T value, string propertyName)
        {
            if (EqualityComparer<T>.Default.Equals(field, value)) return false;
            field = value;
            OnPropertyChanged(propertyName);
            return true;
        }
    }
    public class ChildObject
    {
        public int ParentId { get; set; }
        public string ChildName { get; set; }
 
        public ChildObject(int i, string n)
        {
            this.ParentId = i; this.ChildName = n;
        }
    }
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Nov 2017
2 answers
133 views

Hi Experts, Is there any way to select multiple row in RadScheduler winform 2016 Q2? When i select multiple row from different column then automatically previous full column selected. Where as i like to select rows (consecutive) from different column like Excel sheet. It would be vary appreciable if someone help me with this regards. Ignore my bad English. 

Thnx in advance.

Mizan

Mizan
Top achievements
Rank 1
 answered on 07 Nov 2017
2 answers
193 views

How can I add new controls (buttons, raddropdownlist etc) to RadbindingNavigator? When using Microsoft control it is pretty easy and can be done at design time. Any clues?

Thanks

Wojciech

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2017
1 answer
123 views

Hello,

I encountered the following issue (and found a solution) with GridView when using the Office2010Black theme:

When the font of the parent form (RadForm) was set to let's say Segoe UI; 9,75pt; style=Bold and this form contained a RadGridView, then the font of the GridView root element even got this font settings and thus all texts of the grid view were displayed in the font of the parent window with the following visual result:

.http://www.incosol.de/images/TestProgWhIssue.gif

Reason:

In the RootRadElement of the RadGridView the Font property wasn't set to a specific text repository.

http://www.incosol.de/images/StyleBuilderOriginalThemeSettings.gif

Solution:

The font property of the RootRadElement of the RadGridView has to be set to a specific text repository.

http://www.incosol.de/images/StyleBuilderCorrectedThemeSettings.gif

Result:

http://www.incosol.de/images/TestProgWhOutIssue.gif

 

Regards,

Jürgen

 

Dimitar
Telerik team
 answered on 06 Nov 2017
1 answer
134 views

I am looking for an event to tell me when the scroll bars visibility changes, if it exists.

 

TIA

Dimitar
Telerik team
 answered on 06 Nov 2017
2 answers
345 views

Hi guys, how are You. 

I have one quesition and I hope You guys can help me.

Ok, datasource in my radgridview is DataTable( filled with DataAdapter / query). < - I have to use this because quety is using PIVOT  construct.

You can see the results of my query in attachment. Now You see that cells with the values? its 3 , 20, 8 , 10 etc. Now i want to change the color or what cell based on that value. Ex. if the cell value is 20 then 20 % of that cell should be Color.Red and so on, cell with Null value or 0 value should stay the same color ( default one ). 

I hope You guys will understand my question.

 
Dimitar
Telerik team
 answered on 06 Nov 2017
6 answers
958 views

Hello,

I'm able to set the background color of the layout control by setting its BackColor property to a Color value but I can't find a way to reset the background color to the Theme's default. The Method ResetValue() is not available for RadLayoutControl.

Any help would be appreciated!

Thanks

Jürgen

Jürgen
Top achievements
Rank 1
 answered on 03 Nov 2017
1 answer
109 views

Hi;

I am trying to selectAll all value from RadGridView. On ViewModel, I have a ListCollectionView, which represents all value from RadGridView. And i was able to take every value and set IsSelected to true.

foreach (var value in ListCollectionView)
{
value.IsSelected = true;
}

On RadGridView; those value that i can see, are highlighted but if i scroll down those i couldn't see are not  highlighted.

Is anyone why.

Thank you for help.

 

 

Dimitar
Telerik team
 answered on 03 Nov 2017
4 answers
267 views

Hi, 

I am creating some custom RadDiagramShapes, using Shape -> Create new custom shape. I have also added custom connectors and configured the LightVisualElement child to display some text. (as in attachement)

Is there any way for these connectors to stay always visible in RadDiagram, even if shape is not selected?

I have tried to override the UpdateVisualStates method from RadDiagramShape, using VisualStateManager.GoToState(), with no success. 

I am using .NET Framework 4.5.2  and Telerik 2017.3.912.40

 

Thanks!

Cezara
Top achievements
Rank 1
 answered on 02 Nov 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?