Telerik Forums
UI for WinForms Forum
3 answers
291 views
Hello,

I have a RadGridView with an handler for the SelectionChanged event. MultiSelect is enabled. If I hold the mouse button and move the mouse to select rows, the event is triggered as expected. However, if I keep holding the mouse button and move the mouse back to select less rows, the event is not triggered! It seems to me that this is an error in the RadGridView.

I use this functionality to update a label with the number of selected rows, which is not updated correctly this way. Is there a way that I could make this work?

Below is a code snippet that shows my problem.

int previousSelectedItemCount;
        private void rgvObjecten_SelectionChanged(object sender, EventArgs e)
        {
            if (previousSelectedItemCount > rgvObjecten.SelectedRows.Count)
            {
// this is not reached
            }
            previousSelectedItemCount = rgvObjecten.SelectedRows.Count;
 // code to update label here
}
George
Telerik team
 answered on 28 Nov 2013
1 answer
138 views
For some reason RadAutoCompleteBox  is using ; as default seperator i tried putting another sep but then this displays on screen and i cant use space cause then it make every word a tag any ideas?

Or is their a way to force it to be just one item?
Ralitsa
Telerik team
 answered on 28 Nov 2013
4 answers
208 views
Is it possible to bold the day text in the radcalendar based on certain events? For example, I want to "lock" certain dates, say from Dec. 1st to Dec. 20th and to show that they are "locked" i want to bold the day text for days 1 - 20 in the calendar.  To "lock" these days I would click a button, for example, and the selected date and all dates prior would be bolded (locked).  Is it possible to do this?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Nov 2013
1 answer
126 views
I want to add windowControls top of panorma like this photo.
how can I do?
Ralitsa
Telerik team
 answered on 28 Nov 2013
3 answers
395 views

Can anyone tell me
 how do I undo the grouping columns in radgridview?

Here attached a picture of my clustered grid. 


Thanks; 
Carlos
Top achievements
Rank 1
 answered on 27 Nov 2013
1 answer
264 views
Hello,

Per this thread, I see that we now have proper copy functionality in the radgridview control:
http://www.telerik.com/community/forums/winforms/gridview/copying-multiple-rows-from-gridview-does-not-preserve-linebreaks.aspx


I am able to successfully use

grid.MasterTemplate.BeginRowCopy()


My question is this:
How would I go about using this functionality in a hierarchical view, where the user wishes to copy data in the "child" template.
grid.Templates(0)
  does not have a corresponding "BeginRowCopy"

When I call grid.MasterTemplate.BeginRowCopy()  I receive repeated errors stating:

Property accessor 'Name' on object 'class name' threw the following exception: 'Object does not match target type.'

To clarify this error, the parent table contains a column (and property corresponding to the object) called "Name".
The child templates data does not contain a property of that name.  The obvious conclusion is that grid.MasterTemplate.BeginRowCopy() only works for the master template and does not operate on the child template.

Any suggestions on how to accomplish this?

Update:  Ctrl-C exhibits the same issue.

Thank you.

PS: It is a shame that the only documentation on the matter came from another forum post.  It would be helpful to see Copy/Paste functionality fleshed out in the WinForm Documentaiton or KB articles.


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2013
4 answers
1.1K+ views
Hey,
     When I press the Enter button in the RadTextBox NO new line is added and the text cursor isn't repositioned to the new line. Is there a bug in the RadTextBox or I can do that programmatically?
Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2013
3 answers
549 views
Hi
I have a list view like this:


                                 Column 0                              Column 1                                Column 2
ListViewItem1                 1                                           2                                               3
ListViewItem2                 4                                           5                                               6



When I make my list, the "ListViewItem1" and "ListViewItem2" is not visible.

My questions are:
1. How shall I make "ListViewItem1" and "ListViewItem2" to be visible in my grid list?
2. How shall I change "ListViewItem1" and "ListViewItem2" to "Row1" and "Row2" ?
3. How shall I change "Column 0" and "Column 1" and "Column 2" to "Col1" and "Col2" and "Col3" ?
4. How can I do, which each cells can be selectable? As I tried, just each row can be selectable. I need each cells can be selectable like GridView.

For better explanation, I need bellow list to be appear in run :

                                    Col1                                     Col2                                          Col3
Row1                             1                                           2                                               3
Row2                             4                                           5                                               6




5. How shall I change the color header, font header and backcolor header?
6. How can I change the color of fonts of whole list? I mean Items and also its row header?
7. How can I read and write item from Row2,Col3 ?
8. How shall I change scroll bar thickness?
9. If I apply any themes (like Aqua) then whether ShowGridLines is True or False, gridlines are disappear. How shall I make it appear when I use a theme?

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2013
2 answers
278 views
Hi,

I'd like to customize RadListFilterPopup. I need to display in it only "Available Filters" directly, meens without menu element (attachement 1), like filters in GridViewRowElement. I have to use  excel-like filtering instead of clasic GridViewRowElement becouse in some columns I need checkbox list filter which is given in excel-like filtering.

I write below snippet:


void radGridView1_FilterPopupRequired(object sender, Telerik.WinControls.UI.FilterPopupRequiredEventArgs e)
        {
            RadListFilterPopup popup = (RadListFilterPopup)e.FilterPopup;

            var radMenuItems = ((RadMenuItem)popup.Items[1]).Items;

            popup.Items.Clear();

            popup.Items.AddRange(radMenuItems);
        }


It works fine - displays only "Available Filters". But the problem is that after clicking on some element (e.g "Start with" ) the "blue dialog" appears under the filter list, or in another words, filter list isn't closed ( it is closed after click on "blue dialog" ).

So,

1) How can I close filter list, after clicking on one of it element

2) Is there a simpler way to assign only "Available filters" to filter icon (without rest standard content of RadListFilterPopup) - e.g. use another FilterPopup?

thanks in Advance.
Argos
Top achievements
Rank 1
 answered on 27 Nov 2013
1 answer
180 views
Hello
I have control, which inherits from RadDateTimePicker. I use it across my whole application to ensure consistency.

public class RadMaskedDatePicker : RadDateTimePicker
{
    public RadMaskedDatePicker()
    {
        InitializeComponent();
    }
 
    private void InitializeComponent()
    {
        this.Format = DateTimePickerFormat.Short;
        InitializeFooter();
    }
 
    private void InitializeFooter()
    {
        RadDateTimePickerCalendar datePickerCalendarBehavior = this.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
        if (datePickerCalendarBehavior == null)
        {
            return;
        }
        RadCalendar calendar = datePickerCalendarBehavior.Calendar;
        calendar.ShowFooter = true;
 
        CalendarStatusElement calendarStatusElement = calendar.CalendarElement.CalendarStatusElement;
        calendarStatusElement.RightToLeft = true;
        calendarStatusElement.LabelElement.Visibility = ElementVisibility.Hidden;
     
        calendarStatusElement.TodayButton.Text = Resources.strToday;
        calendarStatusElement.TodayButton.Click += (sender, args) =>
        {
            calendar.SelectedDates.Clear();
            this.Value = DateTime.Today;
            datePickerCalendarBehavior.PopupControl.HideControl();
        };
 
        calendarStatusElement.ClearButton.Text = Resources.strClear;
        calendarStatusElement.ClearButton.Click += (sender, args) =>
        {
            this.SetToNullValue();
            datePickerCalendarBehavior.PopupControl.HideControl();
        };
    }
 
    [Browsable(false)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    public override DateTimePickerFormat Format
    {
        get { return base.Format; }
        set { base.Format = value; }
    }
}

Now I want to use it in RadGridView as an editor. I have tried to use some concepts from http://www.telerik.com/help/winforms/gridview-editors-using-custom-editors.html, but with no success.
 How can I achieve the desired functionality?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2013
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?