Telerik Forums
UI for WinForms Forum
5 answers
338 views
Anyone knows if it's possible to create a custom theme for the component RadForm using the Visual Style Builder?

Tks
Nikolay
Telerik team
 answered on 31 Jul 2008
0 answers
118 views
Hi,

I have XP, VS 2008, .Net 3.5 and I had RadControls for winforms Q1 Sp1 and now installed Q2.

  After opening the Property Builder I found that the General Settings panel is strange. Look at the attached pictures. It has both tab "thing" at the bottom but it is like a normal panel like the other on top, with the little triangle for the hiding and detaching and stuff, but it does not work. You can drag it around from one side to another, and you can detach it with double click on the panels bar.
So you can actually detach all for panels (this is not a bug, still I was told, that you cannot detach General Settings panel), but they are empty (as I reported at a nother bug report). At this point you can close all four panels. Something like a "Hide" function. But after that there is no way to get back the Genereal Settings panel, only the other three (3). I know if you re-install it or delete some config files or stuff you can get is back to a default stage, but that is not normal. I believe this is a bug.

Thank you.


http://img227.imageshack.us/img227/1764/telerikgensetbug1ju2.jpg
http://img501.imageshack.us/img501/5452/telerikgensetbug2jo5.jpg
http://img501.imageshack.us/img501/3961/telerikgensetbug3ut6.jpg
Spoook
Top achievements
Rank 2
 asked on 31 Jul 2008
3 answers
258 views
I can theme PanelBar ok.

.... but how ever hard I try I can't theme a label or textbox.

Using individual "Edit UI Elements' on each control works ok but not when I edit a theme and apply that theme to these controls.

Regards,
Steve.
Nikolay
Telerik team
 answered on 31 Jul 2008
6 answers
219 views
Hi.

I am creating the following control which has a label, a textbox and another label which can be hidden or shown.

Label1ForTitleBold Label2ForValidationRed
_________________________________
Multiline |
textbox |
________________________________|
I've started with this but got stuck on setting the height of the textbox.
    public class LabelMultilineTextBox : RadTextBox
    {
        private TextPrimitive title = new TextPrimitive();
        private TextPrimitive validation = new TextPrimitive();

        public LabelMultilineTextBox()
        {
            this.Size = new Size(425, 60);
            this.MaxLength = 1024;
            this.Multiline = true;
            this.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            this.title.Text = "Title";
            this.validation.Text = "* Validation";
        }

        public string TitleText
        {
            get { return this.title.Text; }
            set
            {
                this.title.Text = value.Trim();
                this.Invalidate();
            }
        }

        public string ValidationText
        {
            get { return this.validation.Text; }
            set
            {
                string text = value.Trim();

                if (text.StartsWith("*"))
                {
                    this.validation.Text = text;
                }
                else
                {
                    this.validation.Text = "* " + text;
                }

                this.Invalidate();
            }
        }

        public bool ValidationVisible
        {
            get { return this.validation.Visibility == ElementVisibility.Visible; }
            set
            {
                if (value)
                {
                    this.validation.Visibility = ElementVisibility.Visible;
                }
                else
                {
                    this.validation.Visibility = ElementVisibility.Collapsed;
                }
            }
        }

        protected override void CreateChildItems(RadElement parent)
        {
            base.CreateChildItems(parent);

            RadTextBoxElement element = this.RootElement.Children[0] as RadTextBoxElement;

            element.Size = new Size(425, 46);

            this.RootElement.Children.Clear();

            BoxLayout layoutTexts = new BoxLayout();
            layoutTexts.Orientation = Orientation.Horizontal;

            layoutTexts.Children.Add(title);
            layoutTexts.Children.Add(validation);

            BoxLayout layout = new BoxLayout();
            layout.Orientation = Orientation.Vertical;

            layout.Children.Add(layoutTexts);
            layout.Children.Add(element);

            this.RootElement.Children.Add(layout);
        }
    }

1. Has the coming SP2 Telerik scrollbars? looks kind of weird with standard scrollbars
2. How do I set the default height of the textbox? Size does not work
3. The createchildelements adds the labels UNDER the textbox (to see it set this.Multiline = false)
4. How do I create a theme (in XML please) which can set the styles of the title label (bold) and validation label (red) differently using Themes?
5. How can I bind the size of the TextBox (width) to the size of this control?


Thanks!
- jorge





Boyko Markov
Telerik team
 answered on 31 Jul 2008
3 answers
103 views
I have themed a panelbar to have a 10 pixel border on all sides ... then I have enabled 'EnableHostControlMode' on a PanelBarGroupElement and a 'ContainerPanel' is added ... then I change the BackColor property of the ContainerPanel to match my themed PanelBar Color.

The problem is then:-

1. The container panel doesn't persist the new backcolor property.
2. The container panel doesn't recognise the themed properties so overlaps the border that was created in the theme.

(I also found that VSB doesn't include the ContainerPanel for theming)

Regards,
Steve.
Boyko Markov
Telerik team
 answered on 31 Jul 2008
3 answers
294 views
How can I automatically resize the dropdown part to be wide enough to hold the longest item?

How can I make the tooltip when the list is dropped down show the item under the mouse?

Thanks
Georgi
Telerik team
 answered on 31 Jul 2008
8 answers
378 views
Once I start my app, it utilizes 15MB of RAM.

After adding 2,000 records and manipulating some of the cells, it's at 75MB.  Okay, no problem.

I then clear the rows...but the memory is still at 75MB.  What must I do to clear that 60MB from memory?
Peter
Telerik team
 answered on 30 Jul 2008
3 answers
128 views

I have a gridview that is grouped by one field.  When a cell in a row is changed and the focus is moved to another row, the group where the updated row resides in automatically collapses and the user has to expand the group again. I haven’t got a clue why it collapses and how to stop it from collapsing.

Can u please help me?

Many tanx in advance!

Jack
Telerik team
 answered on 30 Jul 2008
6 answers
216 views
Hi

My company decided to use third party software like telerik or another soft (that I will not mention here, to avoid advertising of any kind). So I started to play with telerik at first. I made a simple RadGridView and added 3 columns and the Vista style. When I add a new row for the first time and type in some values, press enter, all is good. But when trying to add a new row again, after introducing some data and pressing enter, nothing happens (so i thought), because there is no visible change. But if i do something to the grid that needs refresh (like resizing a column) than the new data will appear. I think this is a bug, cause people will expect to see the new row as soon as they added it to the grid, not after a forced refresh.

I searched the forum but did not find any stuff on this issue.

Thank you.

PS. I have the latest trial version, using VS 2008 .Net 3.5 under Windows XP
Spoook
Top achievements
Rank 2
 answered on 30 Jul 2008
4 answers
170 views
Hi,

First issue:
I have a RadGridView with three columns and this data:
            radGridView1.Rows.Add("a", "b1", "c");
            radGridView1.Rows.Add("a", "b2", "c");
            radGridView1.Rows.Add("a", "b3", "c");
            radGridView1.Rows.Add("a", "b1", "c1");
            radGridView1.Rows.Add("a", "b2", "c1");
            radGridView1.Rows.Add("a", "b3", "c");
            radGridView1.Rows.Add("a2", "b1", "c1");
            radGridView1.Rows.Add("a2", "b2", "c");
            radGridView1.Rows.Add("a2", "b3", "c");
            radGridView1.Rows.Add("a3", "b1", "c");
            radGridView1.Rows.Add("a3", "b2", "c1");
Very simple. If I set ShowGroupPanel property to false and group for example by the first colum, is there any possibility to ungroup?

Second issue:
When I group by the first column for the example above, with ShowGroupPanel set to true, I can sort asc/ descending from the GroupPanel on the given column. All good. But if I for example collapse all the groups(nodes) except the first, in normal ascendin order there are 6 entries and the first group (node) named "a". But if at this point I choose descending order to the first column (that I grouped by) then the expended node will be "a3" with 2 entries it has.
I belive in most cases this is not what a user has in mind. If you collapse a group(node) you expect it to stay collepsed until expanded. Is there any simple way to make this happen? or this is a bug kinda' thing?

Thank you.
Spoook
Top achievements
Rank 2
 answered on 30 Jul 2008
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?