Telerik Forums
UI for WinForms Forum
1 answer
638 views
How can I change page type to A4 programmatically before printing?
Hristo
Telerik team
 answered on 09 Jun 2016
1 answer
83 views

Actually current i am working on a project that needs to import /export/manage a very large word document in Rich Text Editor. 

In this project user imports a word document of approx. 50 pages and then make some changes and the it saved to sql server database.

Now user can load it from database and further make some changes and again saved to database.

On importing the large word document it successfully imported in Rich Text Editor but after making some changes,

when i export it to a file then got the error "object reference not set to an instance of object".

Export functionality is working fine for small documents(approx 10 pages).

I am using this code.

Dim pathSource As String = Application.StartupPath & "\FileName.docx"
Using fsSource As Stream = New FileStream(pathSource, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite, Int32.MaxValue, True)
                        provider.Export(document, fsSource):  '(error raised after executing this line of code.)
                        Dim docByte As Byte() = New Byte(fsSource.Length - 1) {}
                        fsSource.Read(docByte, 0, System.Convert.ToInt32(fsSource.Length))
                        fsSource.Close()
                        SaveFileToDatabase(docByte)
End Using

Please help....

Regards,

Panch Raj

 

Hristo
Telerik team
 answered on 09 Jun 2016
1 answer
144 views

Hello,

RadGridView supports self referencing hierarchy mode to mimic multi-column TreeList behavior. Is it possible to do the same with VirtualGrid?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Jun 2016
1 answer
408 views

Hi,

I need a control like windows TabControl for my project. For the radRibbon, I cannot make it dock to the whole layout and have full page tab containers where I can put all of my contents. I need same functionality like TabControl.

 

Medical App is providing the same functionality of tab which I need.

 

Thanks

Dimitar
Telerik team
 answered on 09 Jun 2016
1 answer
135 views

I would hide a column before copy selected items.

Generally I use first column as Icon, but I have to remove it before copying.

How can I do?

Is exists a specific event to use before call Copy method?

ItemsRadGridView.SelectAll()
ItemsRadGridView.ClipboardCopyMode = GridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText
ItemsRadGridView.Copy()

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Jun 2016
4 answers
381 views

radDock Position = Fill, Top, Bottom......

I want the loaded form will be in floatting mode without drag and drop it in the radDok.

I tried with the below code but I am not satisfied:

<p>var frmBrand = new FormBrand();<br>frmBrand.Text = @"Brand::  ";v<br>HostWindow host = radDock1.DockControl(frmBrand, new DockPosition()); </p><p>//HostWindow host = radDock1.DockControl(frmBrand, DockPosition.Left)<br>host.DockState = DockState.Docked;<br>radDock1.AutoDetectMdiChildren = true;<br><br>frmBrand.Show();</p>

Dimitar
Telerik team
 answered on 09 Jun 2016
2 answers
143 views

Hi, 

I've used your demo solution to understand how cell border color errors works.

I've found a bug if you populate your gridview with enough data to have a vertical scrollbar.

When you scroll down enough to hide first rows, when you scroll up to see the rows, it seems there's a glitch on some cells like you see in the screenshot.

Regards

OD
Top achievements
Rank 1
 answered on 09 Jun 2016
4 answers
195 views
I am using Telerik Tree View control in Excel VSTO Application. The Tree View control is added in the Document action pane. I am deploying VSTO application using Click Once. In the deployment deployment folder I see the dll's Telerik.WinControls.dll.deploy, TelerikCommon.dll.deploy,Telerik.WinControls.UI.dll.deploy .
But on openning the workbook the Tree View control is not gettting loaded and it is not throwing any error either. I am using the Telerik Trial version. Thanks
Hristo
Telerik team
 answered on 08 Jun 2016
1 answer
194 views
How can I print the radTreeView as shown?
Dimitar
Telerik team
 answered on 08 Jun 2016
3 answers
177 views

My form having a MultiColumn ComboBox , (version 2016.1.112.40 ) the data bound it it is long, 500+ columns. When i press down arrow next to text area, popup is flashing and dismisses but when i double click it appears.

 

While debugging i realize drop down closing event is being fired due to some 'bubble event / mouse down. What is happening?, The form has lot of other non Rad controls. But control focus remains intact when this happens

 

Please help.

 

Here is my code for initializing it.

 

01.var productService = UnityContainer.Resolve<ProductService>();
02.           var productCodes = new List<DAL.Model.Product>();
03.           var productCodeList = await productService.GetAllProductCode(null);
04. 
05.           if (productCodeList.Any())
06.           {
07.               productCodeList = productCodeList.DistinctBy(x => x.ProductCode).ToList();
08.               productCodeList = productCodeList.Where(x => x.ProductStatusID != null).OrderBy(x => x.ProductCode).ToList();
09.               productCodeList.RemoveAll(x => x.IsDevice == true && x.ProductStatusID == 0);
10.               productCodes.AddRange(productCodeList);
11.           }
12.           var productList = productCodes.Select(x => new CustomComboSourceDto
13.           {
14.               Id = x.ProductID,
15.               Name = x.ProductCode.ToUpper(),
16.               Description = x.ProductDescription
17.           }).ToList();
18. 
19.           productList.Insert(0, new CustomComboSourceDto { Id = -1, Name = string.Empty, Description = string.Empty });
20.           comboBoxProductCode.DataSource = productList;
21. 
22.           FilterDescriptor descriptor = new FilterDescriptor(this.comboBoxProductCode.DisplayMember, FilterOperator.StartsWith, string.Empty);
23.           this.comboBoxProductCode.EditorControl.FilterDescriptors.Add(descriptor);

 

 

Hristo
Telerik team
 answered on 08 Jun 2016
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
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
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
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?