Telerik Forums
UI for WinForms Forum
1 answer
99 views
Hi, how to change Word Icon to solid? I dont want the transperency effect. Scroll out the properties but I didnt found what I want.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
1 answer
156 views
I use a listview to display an image in a row and a description in another row. I'm trying to change the height of a smaller description but not work.

  
Private Sub RadListView1_VisualItemFormatting(sender As Object, e As ListViewVisualItemEventArgs) Handles RadListView1.VisualItemFormatting
    e.VisualItem.ImageLayout = ImageLayout.Stretch
 
    If Convert.ToInt32(e.VisualItem.Tag) / 2 = 0 Then 'images
        e.VisualItem.BackColor = Color.Azure
        e.VisualItem.Size = New Size(950, 259)
    Else 'descripcion of image
        e.VisualItem.BackColor = Color.Black
        e.VisualItem.Font = New Font("Consolas", 20, FontStyle.Bold)
        e.VisualItem.Size = New Size(950, 50)
    End If
 
End Sub
George
Telerik team
 answered on 13 Oct 2014
1 answer
208 views
Hi,

I have trouble with node dragging. It can be reproduced in your demo "Demo Application - Telerik UI for WinForms Q2 2014 SP1". Select "Tree View" -> "Drag & Drop". I am using left tree.
1. Click on the node "Drafts";
2. Press shift button and click on the "Outbox" node;
3. Release shift button;
4. Press left mouse button on the "Outbox" node and start dragging;
5. Drop selected nodes after node "Large Mail".

You can see that order of nodes was changed.
Before: "Drafts", "Inbox" and "Outbox"
After: "Outbox", "Drafts" and "Inbox"

How I can change this behavior?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
5 answers
877 views
I am using RadControls for WinForms Q2 2010 SP2

I tried to use gridview to export data to Excel.

I have following namespaces:

Imports

 

Telerik.WinControls

 

Imports

 

Telerik.WinControls.UI

 

Imports

 

Telerik.WinControls.UI.Export

 

Imports

 

Telerik.WinControls.Data

But I can't get ExportToExcelML method to come up when I code

 

 

Dim

 

exporter As ExportToExcelML = New ExportToExcelML(Me.gridview)

Did I miss anything?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
1 answer
84 views
Hi,

I am using the hierarchy feature of the data grid. My data consist of two custom objects one composed of the other.

class MyClassA : INotifyPropertyChanged
{
    String Porperty1 {get; set;}
    BindiingList<MyClassB> Items {get; set;}
    //...
}
 
class MyClassB : INotifyPropertyChanged{
    String Property1 {get; set;}
    int Property2{ get; set;}
    //...
}
(My actual classes invoke the PropertyChanged event. I did not show the full setters here for simplicity.)

I am setting a BindingList<MyClassA> as the data source for the grid view. I understand from this post here that you must handle the change event on the data grid when using the hierarchy view. I did this below:

private void dataGrid_CellValueChanged(object sender, GridViewCellEventArgs e)
        {
            //if the column is from the child view we must handle the change to the data model directly
            if(e.Column.OwnerTemplate == gridViewTemplate1)
            {
                var b = e.Row.DataBoundItem as MyClassB;
                var property = typeof(MyClassB).GetProperty(e.Column.FieldName);
                property.SetValue(b, e.Value, null);
            }
        }

This works for updating the data model when changes are made to the UI. How do I see changes reflected in the UI when changes are made to the model?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 2014
3 answers
171 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
255 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
265 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
116 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.9K+ 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
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?