Telerik Forums
UI for WinForms Forum
3 answers
286 views
Hi, lets say i have 5000 rows in my grid and I scroll down the grid. Is there any way that the scroll move the to the first position? Like move first?

Thanks
Stefan
Telerik team
 answered on 28 Oct 2011
1 answer
58 views
This one isn't big, but it might be annoying, especially to VB coders. In the GridViewComboBoxColumn example, in the Adding and binding GridViewComboBoxColumn section near the top, the C# and VB.Net code samples have different DataSources. The C# one looks to be correct, but the VB.Net one is in error.

One other thing that would help with the code samples is putting each code block in a scrollable text box, rather than having the single scroll bar at the bottom of each entry. Having to scroll to the bottom of the page to scroll to the right and then scroll back up to see the rest of the code is not an optimal solution. Also, and I do not know if this is a Chrome limitation or not, the Copy JavaScript does not work in Chrome 14.0.835.202 m on Windows 7 SP1 32-bit.
Stefan
Telerik team
 answered on 27 Oct 2011
5 answers
229 views
Hi,

I have one bar chart with only one Series.

How can I change color of each bar  ?

Regards,

YSP
Mayra
Top achievements
Rank 1
 answered on 27 Oct 2011
1 answer
74 views
Hi, I am evaluating your product right now and have written a small custom application to interface with my legacy appointment table.  I created my own custom statuses and one of my status IDs is equal to 2.  Apparently this status id is hardwired somewhere to not show the color associated with it on the left end of the appointment on the scheduler.  How can I override this to make the status color show?  Changing this ID to something else is not an option.

Thanks!
Ivan Todorov
Telerik team
 answered on 27 Oct 2011
2 answers
105 views
Hi,

I have a RadTrackBarElement hosted in a CommandBarHostItem. It displays correctly, and I have configured certain properties such as removing the tickmarks etc. However, I just cannot get the BackColor of the trackbar to take on the colour of the parent item i.e. the CommandBarStrip it is hosted in. The CommandBarHostItem.BackColor is at it's default which appears to be Color.Transparent.

How do I set the BackColor of the TrackBar so that it actually changes? If I look through VSB, it appears that RadTrackBarElement.BackColor is all that's required, but this doesn't work.

Cheers,

Steven
Steven
Top achievements
Rank 1
 answered on 27 Oct 2011
5 answers
386 views
I have a data table object that I bind a gridview to. During runtime, I'd like to give the user an option to add a column to the gridview. Now ideally the way I thought it would work was if I add a column to the Data Table object that the grid view is bound to, it would automatically add that column to the gridview because of the data binding. But when I try that, only the Data Table is updated with the new column and not the GridView. Am I not using databinding correctly? 

Thanks
Emanuel Varga
Top achievements
Rank 1
 answered on 27 Oct 2011
1 answer
200 views
Hi,
I have a problem when loading a layout configuration file im my application at startup and when I choose to change layout:
My layout configuration is a XML file and i use a RadDock and the method LoadFromXml(path), where path is where the complete path where the layout configuration file is present (*.xml).
The file is present and the layout is correctly loaded, but the application performs a bad animation during the layout update.
My Goal is to hide the layout changing animations and to show only the final result with the windows correctly positioned on the RadDock control.
Is there a way to build the layout without showing the intermediate state of the creation process of the layout, but only the final result?
Julian Benkov
Telerik team
 answered on 26 Oct 2011
2 answers
178 views

Hi

I'm trying to use a telerik RadRichTextBox for my windows form.  Is there a way I can remove the cursor from the control after inserting the value using the following line:

    RADRichTextBox1.Insert('xxx')

    RADRichTextBox2.Insert('yyyy')

Please see the attachment for reference. 


Svett
Telerik team
 answered on 26 Oct 2011
2 answers
156 views
Hi,

I was trying to write a custom column having textbox and an image to be useds as lookup column. I tried  following code and it work perfectly except the image did not appear in center. Please advise.

    void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
    {
        if (e.Column.Name == "Lookup")
        {
            RadImageItem imgElement;
            imgElement = new RadImageItem();
            imgElement.Margin = new Padding(0, 2, 0, 0);
            imgElement.Alignment = ContentAlignment.MiddleCenter;
            imgElement.Image = Properties.Resources.hd_find.ToBitmap();
            //imgElement.MinSize = new Size(20, 5);
            imgElement.Size = new Size(50, 5);
            imgElement.AutoSize = false;
            //imgElement.AutoSizeMode = RadAutoSizeMode.FitToAvailableSize;
 
            this.radGridView1.CurrentCell.Children.Add(imgElement);
 
                if (!tbSubscribed)
                {
                         
                    RadTextBoxEditor tbEditor = this.radGridView1.ActiveEditor as RadTextBoxEditor;
                    if (tbEditor != null)
                    {
 
                    tbSubscribed = true;
                    RadTextBoxEditorElement tbElement = (RadTextBoxEditorElement)tbEditor.EditorElement;
                    tbElement.KeyDown += new KeyEventHandler(tbElement_KeyDown);
                }
            }
        }
    }
 
    void radGridView1_CellEndEdit(object sender, GridViewCellEventArgs e)
    {
        if (e.Column.Name == "Lookup")
        {
            if (this.radGridView1.CurrentCell.Children.Count == 1)
            {
                this.radGridView1.CurrentCell.Children.RemoveAt(0);
            }
        }
    }
    void tbElement_KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyCode == Keys.F1)
        {
            ((RadTextBoxEditorElement)sender).Text = "Default text";
        }
 
     
    }
 
    void radGridView1_CreateCell(object sender, Telerik.WinControls.UI.GridViewCreateCellEventArgs e)
    {
        if (e.Row is GridDataRowElement)
        {
            if (e.Column.Name == "Lookup")
            {
                e.CellType = typeof(RadTextBoxExtCellElement);
            }
        }
    }
 
 
 
 
public class RadTextBoxExtCellElement : GridDataCellElement
{
    private int imageWidth = 30;
    private int imagePadding = 2;
 
    public RadTextBoxExtCellElement(GridViewColumn column, GridRowElement row)
        : base(column, row)
    {
    }
 
 
 
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(GridDataCellElement);
        }
    }
 
 
 
    protected override SizeF ArrangeOverride(SizeF finalSize)
    {
        base.ArrangeOverride(finalSize);
        if (this.Children.Count == 2)
        {
            RectangleF rect = GetClientRectangle(finalSize);
            RectangleF rectEdit = new RectangleF(rect.X, rect.Y, rect.Width - (imageWidth + imagePadding), rect.Height);
            RectangleF rectImage = new RectangleF(rectEdit.Right + imagePadding, rect.Y, imageWidth, rect.Y);
            this.Children[0].Arrange(rectEdit);
            this.Children[1].Arrange(rectImage);
        }
 
        return finalSize;
    }

Thanks,
devoas
devoas
Top achievements
Rank 1
 answered on 26 Oct 2011
0 answers
56 views
Hi, I need to program the following:


I have a list <li> of ASP ImageButton(s) which I want to set their ImageURL properties with images loaded from a SQL Server database.


I've seen people implemeent it in the HTML markup of the using <? Eval("Image"); ?>


That seems to be the approach I am looking for but don't know what else to set.


I have loaded a DataTable object containing just a column-field of type Binary holding Images.


Please advise.  Please provide detail examples if possible. :)
Mail
Top achievements
Rank 1
 asked on 26 Oct 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?