Telerik Forums
UI for WinForms Forum
1 answer
562 views

Dear Concerns

  Please help for a issue of datagridview in c#. I want create new line by enter key in datagridview instead of else. I have seen several  of your solution and trying to correct. Problem is that datagridviewTextboxColumn do no accept AcceptReturn method. Please give a solution. I am sending the snapshot of my code. please see the attachment.  

Dimitar
Telerik team
 answered on 10 Apr 2018
2 answers
142 views

I've tried several examples from this forum to try to get the flashing caret to appear in a loaded document but no matter what I do nothing seems to work.

For example:

            RadRichTextEditor2.CaretWidth = 1
            Dim position As DocumentPosition = RadRichTextEditor2.Document.CaretPosition
            RadRichTextEditor2.Document.CaretPosition.MoveToLastPositionInDocument()
            RadRichTextEditor2.RichTextBoxElement.VerticalScrollBar.Value = RadRichTextEditor2.RichTextBoxElement.VerticalScrollBar.Maximum
            position.MoveToNext()

I think the caret is at the end of the last paragraph but until I actually click on the document and hit the space bar or start typing, the Caret is not visible...

I'm sure there's a simple way to get the flashing Caret to automatically appear but it evades me.  Does anyone know how to do this?

Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Apr 2018
0 answers
107 views
The text conten is always unformates until backspace is pressed.this beaviour is present in pother controls
Sergio
Top achievements
Rank 1
 asked on 09 Apr 2018
3 answers
153 views
I have created next custom panel.

 

public class PrintablePanel : RadPanel, IPrintable
    {
        public PrintablePanel()
        {
        }
        public int BeginPrint(RadPrintDocument sender, PrintEventArgs args)
        {
            return 1;
        }
        public bool EndPrint(RadPrintDocument sender, PrintEventArgs args)
        {
            return true;
        }
        public Form GetSettingsDialog(RadPrintDocument document)
        {
            return new PrintSettingsDialog(document);
        }
        public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)
        {
            Bitmap bmp = new Bitmap(this.Width, this.Height);
            bool printLandscape = Width > Height;
            Size printSize = this.Size;
            if (Size.Width > Convert.ToInt32(args.PageSettings.PrintableArea.Width) ||
                Size.Height > Convert.ToInt32(args.PageSettings.PrintableArea.Height))
            {
                printSize = new Size(Convert.ToInt32(args.PageSettings.PrintableArea.Width),     Convert.ToInt32(args.PageSettings.PrintableArea.Height));
                bmp = Imageworker.ResizeImage(bmp, printSize.Width, printSize.Height);
            }
            args.PageSettings.Landscape = printLandscape;
            this.DrawToBitmap(bmp, new Rectangle(new Point(0, 0), printSize));
            args.Graphics.DrawImage(bmp, Point.Empty);
            sender.
            return false;
        }
        public void Print()
        {
            RadPrintDocument doc = this.CreatePrintDocument();
            doc.Print();
        }
        public void PrintPreview()
        {
            RadPrintDocument doc = this.CreatePrintDocument();
            RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(doc);
            dialog.ThemeName = this.ThemeName;
            dialog.ShowDialog();
        }
        private RadPrintDocument CreatePrintDocument()
        {
            RadPrintDocument doc = new RadPrintDocument();
            doc.AssociatedObject = this;
            return doc;
        }
    }

 

The problem I have is that when I want to print a panel that's larger then the papersize, it won't resize.

Setting the page to landscape also doesn't work.

See my code in the following method:

public bool PrintPage(int pageNumber, RadPrintDocument sender, PrintPageEventArgs args)

Hristo
Telerik team
 answered on 09 Apr 2018
1 answer
94 views

This is strange.  I have an application with a number of GridViews in separate user controls.

The code underneath each one is very similar but for some reason on GridView1 when the user clicks on the funnel icon the filter drop down - drops down (opens) but in GridView2 when the funnel is clicked on - nothing happens.  The drop down won't 'drop down'.  The filter row can be typed in but clicking the icon has no effect whatsoever... and I can't figure out why.

Has anyone else experienced this issue and if so how does one go about fixing this issue?

Dimitar
Telerik team
 answered on 09 Apr 2018
3 answers
1.9K+ views

i have several issues kindly respond

1) I want to highlight (specific) cell back color for 2-sec on value changed. 

2) somehow i highlighted back color(which is not correct way) but issue is when i scroll horizontally and vertically or resize splitter, cell color move to different cell as well.

kindly respond me how to fix this issue.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2018
5 answers
923 views

I have a blank RadGridView.  The user will click a button and I want to add a new row to the grid.  The first column is a textbox, second column is a GridViewMultiComboBox.  When they click the button, I can't figure out where I populate just the combobox with data. 

Once they select the entry in the combo box, I then need to get data from the database for the text box column.

any help is greatly appreciated.

Thanks!

Mark

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2018
0 answers
124 views

Hi team,

I designed a RadMenu with 3 levels RadMenuItem inside. By the default, Left clicked will expand the sub level and Left clicked again to select sub item.

I want to change the behavior as screen below:

- Right clicked on RadMenuItem to expand sub levels

- Left clicked on RadMenuItem to select it.

I don't find any event to do it.

 

Thank you

Thuy

thuy
Top achievements
Rank 1
 asked on 06 Apr 2018
3 answers
140 views

     I'm wondered why the design-Time Editor of QuickAccessToolbarItems of RadRibbonForm is not offering to add a TextBoxElement,

However, I added it programmaticly.

this.radRibbonBar1.QuickAccessToolBarItems.Add(new Telerik.WinControls.UI.RadTextBoxElement());

it appears, bot I cannot focus and type in it (The CanFocus property is set to true).

 

Maybe some RadItem Types, are not offered by purpose in the Designer ?

I thought, putting a search text element in the QuickAccessToolbar is a quiet common scheme.

Is there a way to get a fully functional TextBoxElement into a QuickAccessToolbar ?

Hristo
Telerik team
 answered on 05 Apr 2018
1 answer
80 views

Hi.

I found RadVirtualGrid fires CellValueNeeded everytime, when user resize some column. So resizing isn't smooth, especially when grid is expanded to fullscreen.

Why so? Column resizing doesn't changing cell values, just their appearance, and there is no needing to aplly new value. Is there a way to awoid firing CellValueNeeded on every column resize event?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Apr 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)
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?