Telerik Forums
UI for WinForms Forum
6 answers
351 views

How do I remove the white space above the grid columns?

I'm using the BusinessGrid theme and have looked everywhere trying to find how to remove this white space. It's at the very top of the grid above the header columns.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jun 2018
2 answers
552 views

How do I set the column width of Excel to auto fit or any fix width in Cell Formatting?  Thanks.

GridViewSpreadExport spreadExporter = new GridViewSpreadExport(gvInventory);
SpreadExportRenderer exportRenderer = new SpreadExportRenderer();
spreadExporter.CellFormatting += SpreadExporter_CellFormatting;
spreadExporter.ExportCompleted += SpreadExporter_ExportCompleted;
spreadExporter.RunExport(OutputFilePath, exportRenderer);             

Bertha
Top achievements
Rank 1
 answered on 01 Jun 2018
2 answers
116 views

     RadBradCrumb is a nice idea, but seems to be not really finished.

First, there is no documentation at all.

This little page gives a hint, this thing exists, not more.

https://docs.telerik.com/devtools/winforms/treeview/breadcrumb

 

Second, the splitbuttons and the dropdownItems are nice initialized and working,

but the DefaultItem of the SplitButton is not set.

You cannot click on the Button, und go up the hierarchie, the most basic function of a breadcrumb.

You always have this dropdown-things only.

Additionally, the RadBradCrumb is quiet a Closed thing, there are no events to subscribe, no virtual methods to override, just nothing.

I have found a workaround for this, which makes it work es expected, but this should be default functionality.

public class BreadCrumbHandler
{
    private RadBreadCrumb crumb;
    public BreadCrumbHandler(RadBreadCrumb crumb)
    {
        this.crumb = crumb;
 
        // there is not other access to the DefaultItem of the SplitButtons in the BreadCrumb
        var r = crumb.RootElement.Children.First() as RadBreadCrumbElement;
        r.Items.ItemsChanged += BreadCrumb_ItemsChanged;
    }
 
    private void BreadCrumb_ItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
    {
        if (operation == ItemsChangeOperation.Inserted)
        {
            RadSplitButtonElement btn = target as RadSplitButtonElement;
            if (btn != null)
            {
                var defaultItem = new RadMenuItem(btn.Text);
                defaultItem.Text = btn.Text;
                defaultItem.Click += DefaultItem_Click;
                btn.DefaultItem = defaultItem;
            }
        }
        else if (operation == ItemsChangeOperation.Clearing)
        {
            foreach (var item in changed.OfType<RadSplitButtonElement>())
            {
                var menuItem = item.DefaultItem as RadMenuItem;
                if (menuItem != null)
                    menuItem.Click -= DefaultItem_Click;
                item.DefaultItem = null;
            }
        }
        else if (operation == ItemsChangeOperation.Removing)
        {
            RadSplitButtonElement btn = target as RadSplitButtonElement;
            if (btn != null)
            {
                var menuItem = btn.DefaultItem as RadMenuItem;
                if (menuItem != null)
                    menuItem.Click -= DefaultItem_Click;
                btn.DefaultItem = null;
            }
        }
    }
 
    private void DefaultItem_Click(object sender, EventArgs e)
    {
        var menuItem = (RadMenuItem)sender;
        var currentNode = crumb.DefaultTreeView.SelectedNode;
        while (currentNode != null)
        {
            if (currentNode.Text == menuItem.Text) // not really safe test, but works as long as Texts are distinct
            {
                crumb.DefaultTreeView.SelectedNode = currentNode;
                return;
            }
            currentNode = currentNode.Parent;
        }
    }
}

 

 

 

 

Hristo
Telerik team
 answered on 01 Jun 2018
1 answer
599 views

How to do paging with load on demand with radgridview in WinForm?

I have downloaded the demo of winform from Telerik.  But the left starting part of source code is cut off.  I am using Windows 7. Pressing left arrow did not go to the leftmost part (attached screen shot).

Where can I downloaded the source code of demo of winform?

Dimitar
Telerik team
 answered on 01 Jun 2018
3 answers
134 views
Hello I have a problem once I'm in the Grid.MasterView.TableAddNewRow row there is no way out of this ESC and it does not leave this row, is there any way to leave this row if the user does not want to add anything? is a problem in the version of 2015 did not have this problem assumes that the version 2017 was going to be improved but has many problems
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2018
1 answer
76 views

I'm using column groups.  Users can rearrange columns but i would like to prevent them from dragging columns to another group.

Thanks,

John

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 May 2018
6 answers
466 views
Hi I have problems with the UserAddingRow event, in the child levels of the main if the property e.cancel = True does not let me leave the grid editor, even if I cancel the edition I can not leave the grid row editor, could someone help me thanks beforehand
Daniel
Top achievements
Rank 1
 answered on 30 May 2018
11 answers
272 views

Hi all

I need custom position checkbox the same in picture. All Checkbox at Left.

[-]  >A

[-]    >B

[-]         >C

 

Dimitar
Telerik team
 answered on 30 May 2018
2 answers
237 views

Hello,

I have been having trouble determining where I can locate and remove the dashed border on RadButtons.  I believe it is the focus border, but I am not sure.

I have seen examples of setting the Got/Lost focus events to remove the ButtonElement border once focused, however this removes the highlight border as well as the dashed border which I do not want.

Although I don't like the way it looks it has been tolerable, but now that I have created buttons with a custom shape I need to figure this out.

The dashed border still appears to be square, even though the button itself is not.  I have attached an image that shows what I mean.

Can you please help me remove the dashed borders altogether?  If not, I would at least like them to have the same shape as the button itself.

Thanks for your help.

Mike
Top achievements
Rank 1
 answered on 29 May 2018
3 answers
1.6K+ views
Hi,

I have a grid, with 3 columns. 1 column with amount, one with nothing and one with total.
When i put and X in the column with nothing, I want the value of the total being changed into the value of the amount column. I have tried several events, but I dont quite understand how to do it. Should I use the cellformatting event? Thats the one that brings me closest to the desired solution

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 May 2018
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?