Telerik Forums
UI for WinForms Forum
9 answers
366 views
Hi, I have one problem with Telerik Grid View (version 2014.2.617.40).
I set list with several items as DataSource for GridView and user can add new items by clicking on "Click here to add a new row". But if all items were removed from list this row disappear. Only text "No data to display" is showed.

My collection defined as
ItemsCollection<T> : IBindingList, IList<T> where T : Item
{}

After initialization of list user have empty list and cannot add first row. How I can change this behavior?

Thanks.
Thomas
Top achievements
Rank 1
 answered on 08 Oct 2014
3 answers
392 views
Hey Admin,

I have once scenario I am binding records via asynchronous threading

delegate void RuleResultParameterDelegate(string value);  // this delegate is used to allow the code to call back to itself, as needed in the UI thread
        private void RuleExecuted(string ruleResult)
        {
            // if this is not the main UI thread, then call this function via a delegate
            if (InvokeRequired)
            {
                BeginInvoke(new RuleResultParameterDelegate(RuleExecuted), new object[] { ruleResult });
                return;
            }
 
                GridViewRowInfo row = new GridViewRowInfo(radGridView_EnvResults.MasterView);
                row.Cells["colTargetHost"].Value = “abc”;
                row.Cells["colRuleName"].Value = “efg”;
                 
                    var selectedRow = radGridView_EnvResults.CurrentRow;
                    radGridView_EnvResults.Rows.Add(row);
                    if (selectedRow != null)
                    {
                           radGridView_EnvResults.GridBehavior = new MyBehavior();
                    }
 
                    
                             
        } public class MyBehavior : BaseGridBehavior
    {
        public override bool ProcessKey(KeyEventArgs keys)
        {
            if (this.GridControl.CurrentRow is GridViewNewRowInfo)
            {
                if (keys.KeyData == Keys.Enter || keys.KeyData == Keys.Down || keys.KeyData == Keys.Up)
                {
                    this.GridControl.EndEdit();
                    this.GridControl.GridNavigator.SelectPreviousRow(1);
                    this.GridControl.GridNavigator.SelectFirstColumn();
                    this.GridControl.BeginEdit();
                }
                else if (this.GridControl.GridNavigator.IsLastColumn(this.GridControl.CurrentColumn) && keys.KeyData == Keys.Tab)
                {
                    this.GridControl.EndEdit();
                    this.GridControl.GridNavigator.SelectPreviousRow(1);
                    this.GridControl.GridNavigator.SelectFirstColumn();
                    this.GridControl.BeginEdit();
                }
                else if (keys.KeyData == Keys.Tab)
                {
                    this.GridControl.GridNavigator.SelectNextColumn();
                }
                return true;
            }
            else
            {
                return base.ProcessKey(keys);
            }
 
        }
    }

Is there a way to not have the grid auto-scroll as data is going into it?

Thanks,
Shakti
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Oct 2014
2 answers
171 views
Hi,

I've just upgraded a project to the 2014.2 715 release and have noticed that item images are now not being displaying in RadListView when the list is in DetailView mode.  I've confirmed that the difference exists in the FileExplorer demo app between versions 2013.3 1016 and 2014.2 715 (run both demos and switch both into Detail view mode - the right-hand listview showing files shows file type icons in the 2013 version but not in the 2014 version - see attached screenshot).  Is there any way of restoring the image behaviour in the latest release without having to workaround with a separate image column?

Best regards,

Frazz

Frazz Jarvis
Top achievements
Rank 1
 answered on 07 Oct 2014
1 answer
316 views
Greetings.

I changed the Padding property to All 0 in design mode, the code:

this.radDock1.Padding = new System.Windows.Forms.Padding(0);

was in the designer file, but at runtime the dock still has Padding 4.

I put the code after the InitializeComponent function and did not work.

finally i put the code in the Load event of the form and take effect in runtime.

I am using the last release of rad Controls with framework 3.5.

Regards.
George
Telerik team
 answered on 07 Oct 2014
3 answers
132 views
I have a RTB setup to contain free form text users enter.  I'm using the RichTextProvider.  They have some of the basic font controls from the sample available such as Bold, Italic, Underline, colors, etc.  They are also able to do Bullet and Number lists.

When changing the list style to the appropriate type, it changes the spacing as well.  In the attached image, you can see where I:
1) Type "This is a test."
2) Hit enter
3) Type "This is a new line."
4) Hit enter
5) Click the 'Bullet list' button which initiates a ChangeListStyle with DefaultListStyles.Bulleted
6) Type "Bullet clicked"
7) Hit enter
8) Type "New line in bullet list"
9) Hit enter
10) Click the 'bullet list' button which initiates a ChangeListStyle with DefaultListStyles.None
11) Type "Out of bullet"

As you can see, the bullet spacing is not the same as the lines before or after.

How can I keep the spacing the same?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Oct 2014
1 answer
99 views
It can restore to the original design a radDock when some of the toolwindows are hidden. and all of them appear.
Stefan
Telerik team
 answered on 07 Oct 2014
1 answer
84 views
Let's say I was had a radgridview that was grouped by foodtype, whose sections included fruit.
Currently, when I try to add a type of fruit from the top, I cannot add specifically to the fruit section because the foodtype section is not there, and a new section entitled "foodtype:" is created.
How would I be able to add to the fruit section from the grouped interface?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Oct 2014
3 answers
336 views
I have RadChartView that receive real time data and i want to add the option after the mouse is over specific point to see it's value so i added this property:

radChartView1.ShowTrackBall = true;

And now i can see an empty rectangle with no text (see my attach file).
Another thing that i have notice is now after right click on my chart i have an new option called Palette that change my series color and in this case i can see the point value inside the rectangle.

Now i have 3 questions:

1. What is this new option ?
2. how can i see my point value without change this color ?
3. is it possible to add some text inside this rectangle ?

Thanks !
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Oct 2014
1 answer
128 views
Hi:

We are working with some existing code.  The RadDropDownList controls throughout the application allows any data entry in the control (for example: a list of USA states, I could enter Fred and tab out of the field).  Currently, all RadDropDownList controls DropDownStyle are set to DropDown.  What are the best practices constraining the users data entry to the supplied list.

Phil
Dimitar
Telerik team
 answered on 06 Oct 2014
2 answers
89 views
I have a whole bunch of timepcikers on a form. I need to have a button on the form to set all times to 12:00 AM. It is a rest for the user. I wanted to do something like this:


foreach(Control c in this.Controls)
{
if(c is radTimePicker)
{
// set time here ;]
}
}

I'm not sure what I should use for "Control" and "this.Controls" I'm guessing radTimePicker is correct.
Chris
Top achievements
Rank 1
 answered on 04 Oct 2014
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?