Telerik Forums
UI for WinForms Forum
1 answer
202 views
Good afternoon.
    I have a problem with RadPanelBar. I use VB Express 2008.
I create a new WinForm project and add a RadPanelBar control. Dock = True, GroupStyle = ExplorerBarStyle.
This is the code:
Imports Telerik.WinControls.UI
  
Public Class Form1
  Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim rpbge As RadPanelBarGroupElement
  
    For i As Integer = 0 To 10
      rpbge = New RadPanelBarGroupElement
      rpbge.Caption = "Group" & i
      rpbge.EnableHostControlMode = True
      RadPanelBar1.Items.Add(rpbge)
    Next
  
    Dim rlc As New RadListControl
    rlc.Height = 2
    rlc.Width = rpbge.ContentPanel.ClientSize.Width
    rlc.Anchor = AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top
    rpbge.ContentPanel.Controls.Add(rlc)
  
    rpbge.Expanded = True
  End Sub
End Class

Now:
- Run the project and scroll down with the vertical scroll bar.
- Collapse and Expand the last group (Group10).
- Now try to scroll down again with the vertical scroll bar and you'll see the flicker.
Is there any solution?
Thank you in advance.
Gianfranco
Stefan
Telerik team
 answered on 08 Sep 2011
5 answers
181 views
I have a combobox populated with a dataset, and i want to show in the column editor (before enter a value) a value of the items of the combo.

How can i do this.

Thanks a lot.
Emanuel Varga
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
109 views
Hi.

I have a "little" problem with the ListControl.
I am trying to do a little Chat thingy.. and facing a Problem when the items are formated with Styles (Font, Size, Bold...).

In my Test Application you will see some controls.
1.) ListControl that stores the written messages
2.) A TextBox to input the desired Text message
3.) 2 Buttons with the text 1 and 20 - The 20 Button just calls the 1 button 20 times
    The 1 Button, inserts 3 Items into the ListControl 
        1st a HeaderItem with the UserName and the DateTime
        2nd a TextItem with the given Text
        3rd a FooterItem to get a space between Messages
4.) An indicator for the Items.Count Value of the ListControl


So now the Problems i have after i have added some Messages to the ListControl and do some scrolling at some Point you will notice 3 Errors.
1.) The last Item doesnt get selected (not Highlighted with the Orange Color)
2.) The scrolling doesnt work. The Scrollelement moves but the ListControl seems like frozen.
3.) No new Items get displayed, tough it works - Item Counter goes still up.

Another Problem is that when i call the 20 Buttons at first after the form loads, the last item doesnt get selected. But this isnt really an issue that i am facing in reall application, because this button only exists in this test application so that you can add items faster, since you need some. (Second time hitting this button selects list item fine, only doesnt work when hitting it at first)

Hope you guys can help me fix those problems, already tried some LayoutUpdates but no luck till now. :(

And a side Note Question, is there a way to change the HighLight MouseOver and the Select Color?

Source Code for test Application:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
 
public partial class RadForm1 : RadForm
{
    public RadForm1()
    {
        InitializeComponent();
 
        radTextBox1.Text = "Some random Text!";
        radListControl1.AutoSizeItems = true;
 
        radTextBox1.Font = new Font("Times New Roman", 10, FontStyle.Bold);
        radTextBox1.TextBoxElement.ForeColor = Color.Red;
        radListControl1.SelectionMode = SelectionMode.One;
    }
 
    List<int> ids = new List<int>();
    private int GetNewId()
    {
        int returnValue = 0;
        do
        {
            returnValue = new Random().Next(int.MaxValue);
        } while (ids.IndexOf(returnValue) >= 0);
        ids.Add(returnValue);
 
        return returnValue;
    }
 
    private void radButton1_Click(object sender, EventArgs e)
    {
        RadListDataItem itemHeader = new RadListDataItem(string.Format("<html><b>{0}</b> ({1})</html>", "Some User", DateTime.Now), GetNewId());
        radListControl1.Items.Add(itemHeader);
 
        RadListDataItem itemText = new RadListDataItem(radTextBox1.Text, GetNewId());
        itemText.TextWrap = true;
        itemText.Font = radTextBox1.Font;
        itemText.ForeColor = radTextBox1.TextBoxElement.ForeColor;
        radListControl1.Items.Add(itemText);
 
        RadListDataItem itemFooter = new RadListDataItem("   ", GetNewId());
        radListControl1.Items.Add(itemFooter);
 
        radListControl1.SelectedItem = itemFooter;
        radTextBox2.Text = radListControl1.Items.Count.ToString();
    }
 
    private void radButton2_Click(object sender, EventArgs e)
    {
        for (int i = 0; i < 20; i++)
        {
            radButton1_Click(null, null);
        }
    }
}


Designer:

partial class RadForm1
{
    /// <summary>
    /// Required designer variable.
    /// </summary>
    private System.ComponentModel.IContainer components = null;
 
    /// <summary>
    /// Clean up any resources being used.
    /// </summary>
    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }
 
    #region Windows Form Designer generated code
 
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
            this.radListControl1 = new Telerik.WinControls.UI.RadListControl();
            this.radTextBox1 = new Telerik.WinControls.UI.RadTextBox();
            this.radButton1 = new Telerik.WinControls.UI.RadButton();
            this.radButton2 = new Telerik.WinControls.UI.RadButton();
            this.radTextBox2 = new Telerik.WinControls.UI.RadTextBox();
            this.label1 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.radListControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radTextBox1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radButton1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radButton2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radTextBox2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            //
            // radListControl1
            //
            this.radListControl1.CaseSensitiveSort = true;
            this.radListControl1.ItemHeight = 18;
            this.radListControl1.Location = new System.Drawing.Point(12, 12);
            this.radListControl1.Name = "radListControl1";
            this.radListControl1.Size = new System.Drawing.Size(274, 229);
            this.radListControl1.TabIndex = 0;
            this.radListControl1.Text = "radListControl1";
            //
            // radTextBox1
            //
            this.radTextBox1.Location = new System.Drawing.Point(12, 247);
            this.radTextBox1.Name = "radTextBox1";
            this.radTextBox1.Size = new System.Drawing.Size(192, 20);
            this.radTextBox1.TabIndex = 1;
            this.radTextBox1.TabStop = false;
            this.radTextBox1.Text = "radTextBox1";
            //
            // radButton1
            //
            this.radButton1.Location = new System.Drawing.Point(211, 247);
            this.radButton1.Name = "radButton1";
            this.radButton1.Size = new System.Drawing.Size(33, 24);
            this.radButton1.TabIndex = 2;
            this.radButton1.Text = "1";
            this.radButton1.Click += new System.EventHandler(this.radButton1_Click);
            //
            // radButton2
            //
            this.radButton2.Location = new System.Drawing.Point(250, 247);
            this.radButton2.Name = "radButton2";
            this.radButton2.Size = new System.Drawing.Size(36, 24);
            this.radButton2.TabIndex = 3;
            this.radButton2.Text = "20";
            this.radButton2.Click += new System.EventHandler(this.radButton2_Click);
            //
            // radTextBox2
            //
            this.radTextBox2.Location = new System.Drawing.Point(211, 277);
            this.radTextBox2.Name = "radTextBox2";
            this.radTextBox2.Size = new System.Drawing.Size(75, 20);
            this.radTextBox2.TabIndex = 4;
            this.radTextBox2.TabStop = false;
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(153, 277);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(52, 13);
            this.label1.TabIndex = 5;
            this.label1.Text = "Counter:";
            //
            // RadForm1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(298, 303);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.radTextBox2);
            this.Controls.Add(this.radButton2);
            this.Controls.Add(this.radButton1);
            this.Controls.Add(this.radTextBox1);
            this.Controls.Add(this.radListControl1);
            this.Name = "RadForm1";
            //
            //
            //
            this.RootElement.ApplyShapeToControl = true;
            this.Text = "RadForm1";
            this.ThemeName = "ControlDefault";
            ((System.ComponentModel.ISupportInitialize)(this.radListControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radTextBox1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radButton1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radButton2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radTextBox2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
 
    }
 
    #endregion
 
    private Telerik.WinControls.UI.RadListControl radListControl1;
    private Telerik.WinControls.UI.RadTextBox radTextBox1;
    private Telerik.WinControls.UI.RadButton radButton1;
    private Telerik.WinControls.UI.RadButton radButton2;
    private Telerik.WinControls.UI.RadTextBox radTextBox2;
    private System.Windows.Forms.Label label1;
}


Ivan Todorov
Telerik team
 answered on 08 Sep 2011
2 answers
304 views
Hi,

I have a radgridview which has an IQueryable as datasource. When attempting to filter the radgridview using filter descriptors the fiter descriptors are shown on the grid. But the fields are not filtered. I have an idea this has something to do with the binding?

The IQueryable is generated in the DAL and returned to the BL which in turn returns it to the WinForm. There is no way to directly access the database as we can only work on the Winform.

Is it possible to filter the radgridview when it is using an untyped IQueryable as datasource?

radGridView1.DataSource = BusinessObject.getAll(); //Returns IQueryable
 
//Setting filter descriptors
 
FilterDescriptor filter = new FilterDescriptor();
                                filter.Operator = FilterOperator.IsEqualTo;
                                filter.PropertyName = "Username"t;
                                filter.Value = "Bob";
                                filter.IsFilterEditor = true;
                                this.radGridView1.MasterTemplate.EnableCustomFiltering = true;
                                this.radGridView1.MasterTemplate.EnableFiltering = true;
                                this.radGridView1.FilterDescriptors.Clear();
                                this.radGridView1.FilterDescriptors.Add(filter);
                                radGridView1.ShowFilteringRow = true;
ado
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
899 views
Hey at Telerik

I would like to know how i can set the RadMaskedEditBox to accept only a decimal number.

I need the RadMaskedEditBox for coordinates and cannot limit the box to a specific number og digits before the seperator or after.

The closest i can get is by setting the MaskType of the RadMaskedEditBox to 'Numeric' and the Mask to 'n'.

As i see it 'n' and 'n2' gives the same result. isn't 'n' supposed to not limit the input.

Sincerly

Jan
Stefan
Telerik team
 answered on 07 Sep 2011
1 answer
55 views
Hello,
I am trying to acheive the following scenerio and was hoping i could get some guidance or even a sample. Here is the scenerio.

I have a form with 2 raddocks on it. I am loading my forms into the left raddock which is on the left. one of the forms is a searching feature for searching inventory. on the second dock i am loading a sale order form. when a user does a search for inventory i am wanting them to be able to drag a row from the search results (gridview) to an identical gridview on the other form(sale order form). Right now i have a collection on the order form which stores which inventory items it has. i then bind the grid view to the collection to show current inventory that belongs to the sales order. ideally what i would like to happen is a user selects an item (row) from the gridview on form1 and can drag it over to the other form at which time i populate the collection on that form and bind its gridview to that collection?
is it possible to drag and drop a row from a grid on one form to a grid on another form if so...how can i accomplish this?


Thanks,
Joshua Gates
Svett
Telerik team
 answered on 07 Sep 2011
2 answers
138 views

Hi,

Is it possible to control the data that appear in the appointment box?

 

As you see in the picture the time is appearing, if I want to show something else how can I do that?

Thanks in advance

Ivan Todorov
Telerik team
 answered on 07 Sep 2011
1 answer
242 views
Hi everybody,
Does anyone help me to select multi items without Ctrl key in RadListView? (like SelectionMode: MultiSimple in RadListControl). I want to select items by mouse click.
Stefan
Telerik team
 answered on 07 Sep 2011
11 answers
486 views
Does something like this exist?

I want to transpose my normalized data into a pivot view, but also have that pivotview be editable and then have those edits update the backend normalized table that it came from.  Is this a feautre, or do I have to write my own enumaration class, stored procedures, etc. to do this for me?

Thanks,
~patrick
Svett
Telerik team
 answered on 07 Sep 2011
1 answer
179 views
Does someone help me to set border (width, color ...) for each ListItem in RadListControl? Thank you!
Stefan
Telerik team
 answered on 07 Sep 2011
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?