Telerik Forums
UI for WinForms Forum
2 answers
110 views
Hello
I add a RadPanorama on my form.
Then I open the "Element hierarchy editor"
If you pay attention to the left column, you can see two FillPrimitive under RadScrollBarElement.

The bug is because we have two same name here, there is no access to the second FillPrimitive items from code.

For example to changing the Backcolor and BackColor1 and BackColor2 and BackColor3 of ScrollBar, you can change it from hierarchy, but it is not possible to change it via code.

I attached a screenshot of what I explained example.




Also on RadTitleBar, we have same bug.
I mean there is no access to text via code.
For example it is not possible to access text visibility on title bar via code.

Thanks.

Sherlock
Top achievements
Rank 1
 answered on 16 Nov 2013
1 answer
110 views

Hi all 
i try to view pdf like this 
01.radPdfViewer1.ReadingMode = Telerik.WinControls.UI.ReadingMode.OnDemand;
02. 
03.              using (FileStream fStream = File.OpenRead(dlg.FileName))
04.              {
05.                  MemoryStream mStream = new MemoryStream();
06.                   
07.                  mStream.SetLength(fStream.Length);
08.                  fStream.Read(mStream.GetBuffer(), 0, (int)fStream.Length);
09. 
10.                  this.radPdfViewer1.LoadDocument(mStream);
11.              }
and then the pdf is show.after call radPdfViewer1.PageDown();

the form throw this exeption

01.System.Reflection.TargetInvocationException was unhandled
02.  HResult=-2146232828
03.  Message=Exception has been thrown by the target of an invocation.
04.  Source=mscorlib
05.  StackTrace:
06.       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
07.       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
08.       at System.Delegate.DynamicInvokeImpl(Object[] args)
09.       at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
10.       at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
11.       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
12.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
13.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
14.       at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
15.       at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
16.       at System.Windows.Forms.Control.WndProc(Message& m)
17.       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
18.       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
19.       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
20.       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
21.       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
22.       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
23.       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
24.       at System.Windows.Forms.Application.Run(Form mainForm)
25.       at BookReader.Program.Main() in d:\Omid\Kar\PDF library\Rad\1\BookReader\BookReader\Program.cs:line 18
26.       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
27.       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
28.       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
29.       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
30.       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
31.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
32.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
33.       at System.Threading.ThreadHelper.ThreadStart()
34.  InnerException: System.Reflection.TargetInvocationException
35.       HResult=-2146232828
36.       Message=An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
37.       Source=System
38.       StackTrace:
39.            at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
40.            at System.ComponentModel.RunWorkerCompletedEventArgs.get_Result()
41.            at Telerik.WinControls.UI.RadFixedPageElement.pageRenderer_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
42.            at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
43.            at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
44.       InnerException: System.NullReferenceException
45.            HResult=-2147467261
46.            Message=Object reference not set to an instance of an object.
47.            Source=Telerik.WinControls.PdfViewer
48.            StackTrace:
49.                 at Telerik.WinControls.PdfViewer.PdfElementsRenderer.RenderImage(ImageSource source)
50.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawImage(Image image, Graphics graphics)
51.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContentElement(IContentElement contentElement, Graphics graphics)
52.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContainer(Container container, Graphics graphics)
53.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContentElement(IContentElement contentElement, Graphics graphics)
54.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContainer(Container container, Graphics graphics)
55.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawContentElement(IContentElement contentElement, Graphics graphics)
56.                 at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawPage(ContentCollection content, Graphics graphics, Matrix pageTransform)
57.                 at Telerik.WinControls.UI.RadFixedPageElement.pageRenderer_DoWork(Object sender, DoWorkEventArgs e)
58.                 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
59.                 at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
60.            InnerException:

so when I change readingmode and read large file it accure.

please help how to handle it.
thanks every one
Ivan Todorov
Telerik team
 answered on 15 Nov 2013
7 answers
116 views
Hello Support,
Can you show me how to add button image like WPF, I copy code in your demo, but it don't work, not like WPF.
Please show me how to use your button like the attachment.
Thanks in advance.
Nguyen
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Nov 2013
1 answer
113 views
Hi,
I want to change the column default name of a radCalendar from a single letter (S M T W T F S) to three letters(Sun Mon Tue etc..).
In windows monthCalendar by default, the column headers are 3 letters.
How can i get the same format on radCalendar.?

Thanks in Advance to Telerik team.
Kiran
Top achievements
Rank 1
 answered on 14 Nov 2013
1 answer
166 views
Hi,

I am wanting to know if its possible to make a Menu Item contain a grid of buttons such as the Labels TextAlign PropertyGrid menu in Visual Studio as per attached pic? 

Or is it possible to put a User Control in a Menu Item?

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Nov 2013
3 answers
349 views
Hi,
We need a cell double click event on our pivot in order to get the values on that row and column. Our pivot's sample is attached.
We tried the code block below. But did not work. Can you help about this. Our product version is 2013.1.220.20
private void PivotGridReport_CellCreating(object sender, Telerik.WinControls.UI.PivotCellCreatingEventArgs e)
{
      e.CellElement.DoubleClick += new EventHandler(CellElement_DoubleClick);
}
 
void CellElement_DoubleClick(object sender, EventArgs e)
{
 
}
Dimitar
Telerik team
 answered on 14 Nov 2013
1 answer
140 views
Is there any way to make the expand/collapse plus sign float towards the top-left of the node item?  We can set the text with:

e.NodeElement.ContentElement.TextAlignment = ContentAlignment.TopLeft;

(that code is within the NodeFormatting event, btw...)

So I'm wondering if there is an equivalent function for the expand/collapse element.  It doesn't look right sitting in the center of a node whose height is set to allow for multiple lines.  Would look better at the top-left IMO.

Thanks,

Wayne
Ralitsa
Telerik team
 answered on 13 Nov 2013
1 answer
67 views
Hi
I added a RadPanorama to my form.
Now what I want is the ScrollBar, Be at the middle, not be at the top.
I mean I need my page to be at middle.

What I did is go to Element hierarchy editor, then from the left column, I selected RadScrollBarElement.
Then from right column, I set the Value to 50

This works fine in my Designer window, but when I run, it doesn't work.
Please see the attachment.

Would you please help me?

Thanks.



I should add that I tested RadHScrollBar and RadVScrollBar with the same way I explained, and they worked fine.
It seems there is bug in panorama scrollbar.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Nov 2013
1 answer
105 views
Hi there,

We have a data-bound RadGridView to which we’re programmatically adding rows. The position in which the rows are added naturally depends on how the grid is sorted. Is there a way to override this behavior, however? We’d like to insert rows at the end of the grid even if this violates the order in which users have manually sorted the grid.

I’ve tried using a BindingList in order to more closely manage the insertion order, but to no avail.

Thank you so much!

Cheers,
Ben Leibert

Dimitar
Telerik team
 answered on 13 Nov 2013
4 answers
246 views
Hi,
i use raddock in my project.as u know when it show(open) a form it becomes a tab in raddock.
my problem is that when i open a form and number of open tabs(forms) got more than the width of raddock, it automatically set new opened form in front of other forms.though , i set DocumentInsertOrder to ToBack.
when number of open forms are less than raddock's width, DocumentInsertOrder  works correctly and add new forms to end of active forms but when number of open forms exceed raddock width, it seems that this property act as InFront and add new forms in front of other forms.
i want to add new forms always at the end of active form list even though number of open forms exceed raddock width.
i'm in hurry, please help me
tanx in advance
George
Telerik team
 answered on 13 Nov 2013
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?