Telerik Forums
UI for WinForms Forum
3 answers
128 views
We allow our users to reorder columns. Everything works when there is no grouping. I looked at xml layout and columns are saved in order they appear on screen.
But when we create groups programmaticaly the saved layout is always the same. Even if I reorder groups xml layout save doesn't change.
I tried to modify it by hand and reload and it worked. I moved columns of groups in and they appeared in modified order on screen.

One solution is to modify layout returned by grid to make it in line with order of groups on screen and then save it. But I don't like it.

I'm using Version=2012.1.321.20
Stefan
Telerik team
 answered on 10 Oct 2014
3 answers
189 views
Hi,

I'm trying to disable to fullrowselect in a ListView with detail as its viewtype and thereby only have a one or more cells selected.
Please see the code below:

public partial class ListViewFullRowSelect : Form
{
    public ListViewFullRowSelect()
    {
        InitializeComponent();
        radListView1.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
        radListView1.FullRowSelect = false;
        List<Test> testList = new List<Test>();
 
        Random r = new Random();
 
        for (int i = 0; i < 500; i+=3)
        {
            int nextvalue = r.Next(10)+1;
            testList.Add(new Test(i, i + " times " + nextvalue+ " = " + i * nextvalue));
        }
        radListView1.DataSource = testList;
    }
}
 
 
public class Test
{
    public int id { get; set; }
    public string result { get; set; }
     
    public Test(int id, string name)
    {
        this.id = id;
        this.result = name;
    }
}


Is what i'm trying to do possible or does it conflict with the whole idea of listview?

Regards,
Thomas
Dimitar
Telerik team
 answered on 09 Oct 2014
8 answers
221 views
Hi.

I'm a little new in telerik controls, but i have a problem with RichTextbox. When I try to type letter 'ą', which is combination of keys Alt + a, the text in control is selected but I have not the letter 'ą' in my control. Is there any possible to disable shortcuts in RichTextBox ?
Thanks for the response.
Best regards
Lukasz
Paweł
Top achievements
Rank 1
 answered on 09 Oct 2014
1 answer
92 views
Is there any way to take a filtered RadGridView and create a corresponding dataset that can be passed to a Telerik report?  How do I even get to the filter expression for the GridView?  I have found examples of how to get the filter expression on a RadGrid but not a RadGridView.  Thanks.
Stewart
Top achievements
Rank 1
 answered on 08 Oct 2014
1 answer
1.7K+ views
Hi

( Please if I'm wrong with my understanding of this rectify me )

Reading about good and bad programming practices I heared that when calling a ShowDialog method (at least in a normal Windows.Form) that Form is not disposed after the DialogResult is sent, the Form remain in memory so it will be disposed manually, well, then following that good practices that is was I'm trying to do with a RadForm, this is the code:

If ConfigureCorner.ShowDialog() = Windows.Forms.DialogResult.OK Then
 
    Telerik.WinControls.RadMessageBox.Show(Me,
                                           "Action applied",
                                           Me.Name,
                                           MessageBoxButtons.OK,
                                           Telerik.WinControls.RadMessageIcon.Info)
End If
 
ConfigureCorner.Dispose

The problem is that every time that I call ShowDialog after the Form is disposed for first time the memory increases like 5-10 mb each time, and it needs much execution time to display the Form and its controls.

I attached an image to show the Form contents, but his is the detailed content of the RadForm:

· 3 different themes

· 15 RadButtons
· 5 RadCheckBoxes
· 1 RadDropDownList
· 8 RadGroupBoxes
· 21 RadLabels
· 1 RadPageView
· 12 RadPageViewPages
· 2 RadRadioButtons
· 12 RadSeparators
· 8 RadTextBoxControls

· 2 Custom dialogs for open folder/files.

As you see seems that I'm not using anything special that should 'cause this memory leak,
the images of the controls are set directlly in the designer property grid as 'Image' property,
I'm not loading or instancing any disposable object before closing the RadForm.

Also, I'm trying to force garbage collecting aftear each call to Dispose method after calling ShowDialog, but that does not solve anything:

GC.Collect()
GC.WaitForPendingFinalizers()
GC.WaitForFullGCApproach()
GC.WaitForFullGCComplete()
GC.Collect()


This is normal?

Any information will be very appreciated, thanks in advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Oct 2014
9 answers
263 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
313 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
144 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
261 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
106 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
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?