Telerik Forums
UI for WinForms Forum
2 answers
198 views
Hello,

I'm using a BindingNavigator and a RadGridView on the same Form with the same BindingSource.

If I change the sorting in the RadGridView it has no effects on the BindingNavigator or the BindingSource sorting.
Going to the next item by clicking on the BindingNavigator will result in jumps in RadGridView

Using the original GridView with the BindingNavigator, they always have the same sorting.

I also tried to use the RadGridView.SortChanged event to set the BindingSource-sorting but the SortChangedEventArgs are always nothing.

Is there a solution or can you give me a hint how to solve this problem?

Thanks
Christian
Declan
Top achievements
Rank 2
 answered on 02 Jun 2009
1 answer
110 views
Is there some property that will allow me to set the states that I want to allow my DockPanel to dock with.  For example, I have a window that I only want the user to be able to dock to the sides and not allow as a state of document or floating.

Thanks in advance.
Lee
Julian Benkov
Telerik team
 answered on 01 Jun 2009
1 answer
204 views
Hi.

I'm having a fairly frustrating problem with the chart control, that I can't get over.

I'm trying to use the same chart for different reports based on what the user chooses.

One report is using the chart by binding data to it. The other is manually populating it. The graph works in both scenarios. My problem is when I try to change the X-Axis label.

Let's take this scenario. First, I generate a databound graph. Let's say it comes back with 4 bars on the X-Axis. It looks fine and works fine.

Then I generate a report which uses the graph without databinding. Let's say it needs to display 8 bars. Now if I set:

rdChart.PlotArea.XAxis.AutoScale =

True

 


Then the graph works fine, but the x-axis item labels are marked 1,2,3,4..., which I need to change.

So I added a loop to change the X-Axis labels:

 

Dim labels() As String = lbls.Split(",")

 

 

For i = 0 To rdChart.PlotArea.XAxis.Items.Count - 1

 

rdChart.PlotArea.XAxis(i).TextBlock.Text = labels(i)

 

Next

 


Now this code doesn't do anything, unless I add: 

rdChart.PlotArea.XAxis.AutoScale =

False

 


before doing the loop.

Now that's where the problem is. If I set AutoScale to false, the Chart stops populating the X-Axis items correctly. So for example, if the the databound chart had returned 4 bars on X-Axis, then it stays at 4, even though if the new series is supposed to have 8 bars.

I have tried many different combinations of 

rdChart.Series.Clear()

rdChart.Series.ClearItems()

rdChart.PlotArea.XAxis.ClearDataBoundState()
rdChart.Update()

 

rdChart.UpdateGraphics()

rdChart.Refresh()

and then setting the AutoScale to true, and then setting it back to false, but nothing seems to clear up the X-Axis display correctly. The number of X-Axis items displayed is not refreshing if I trun AutoScale off, and I can't set the X-Axis item labels if it's on. HELP!

Dwight
Telerik team
 answered on 01 Jun 2009
3 answers
183 views
Hi,

I'm testing the RadMessageBox  and each time I'm calling the show method, the message is appering in the upper left corner of the screen. Reading the help it seems to be centered only for winforms, but is saying nothing about using it in a user control dll development.

Do you have any idea about how can I solve this problem?

Thanks & regards

Julio
Victor
Telerik team
 answered on 01 Jun 2009
1 answer
109 views
Does Telerik provide anything that can render PDF documents inside a win forms application?
Nick
Telerik team
 answered on 01 Jun 2009
1 answer
83 views
I have found it difficult to use Themes in general and the Color Blend facility in particular because there is no documentation to support them. 

What would be really useful is:
  1. Detailed samples showing every control under all available themes.  
  2. For each Theme a list of the main colours used and what they are used for.   This would help use Color Blend to replace these in our own applications

 

This should be in the documentation or on the website and not just a few snippets in the Forum or Blogs when somebody asks a question.

I apologise if this alreadty exists but I have hunted for it many times and not found it.

Mike

Victor
Telerik team
 answered on 01 Jun 2009
1 answer
102 views
Hi,
When i click on the date control to change the date and if i don't select the date and click outside other than calendar, it remains in its position. Even if i click on the Arrow button to close it the calendar dislocates itself to some other postion. This gives a very weird behaviour to the dataTime picker.
Please can you tell me why is this happening or am i missing some property settings for it.
Boyko Markov
Telerik team
 answered on 01 Jun 2009
1 answer
121 views
Hi there,

I've been using your product in trial extensively and we're just about to purchase it, and it's been a great pleasure to use, with excellent forums covering 90% of what I've wanted to try and do so far.

I'm currently stuck on something that I just can't get to work.

I'm trying to provide certain database bound historical information in a right-click context menu (/panel).
The consist of another datagrid of information, and depends on the row being right-clicked.

I have implemented a RadGridView with a custom context menu event handler
rgvRatings_ContextMenuOpening

which:
-Opens a manual connection to my database and executes a stored procedure returning certain drill down information contextually on the row I'm looking at.
-Sets the DataSource of a RadGridView to point at my newly acquired data
-Creates a RadDropDownMenu;
-Creates a new RadHostItem to host the "History" RadGridView, and then finally
-Sets the ContextMenu to be this newly created RadDropDownMenu
-Sets appropriate MinimumSize fields so that the hosted item is properly sized and visible.

This actually works the first time I right click on something, but only the first time. 
After that, the context menu that appears always contains the same data, no matter if I clear it.

There are some questions surrounding this:-
-How can I update the datasource of a RadHostItem's hosted control (I tried using RadControlHostItem, a derived class that basically exposes the "HostedControl" as a Control on the RadHostItem)
-Is creating the HistoryGrid at design time as I've done a bad idea ? I ask because I found programmatically instantiating a RadGridView very awkward and it never quite worked as expected.
-What happens to the control "x" when you instantiate a RadHostItem(x)? I ask because the grid does disappear, even when I tried to instantiate the RadHostItem pointing at a copy of the grid, rather than the grid itself (I admit I'm extremely new to C# so this may be because I don't know how to clone an existing object...)
-Having "surfed" the object "e.ContextMenu" at runtime in debug mode, it seemed to have the RadHostItem with grid inside and the grid showing a datasource that had the right data in it.. (may be going mad), could there be some form of contextmenu caching that has caught me out or is this a red herring?

I realise this is quite an involved question, but it is causing quite a headache, so any pointers or hints would be most welcome!

I'm also open to suggestions like "Have you thought of using this completely different component and approach to achieve a similar result" type of thing!

Regards,
Mike Renwick

Victor
Telerik team
 answered on 29 May 2009
14 answers
854 views
I am attempting to use grid sorting by clicking on a column heading. This works as expected but I need to sort on a different hidden column when the user clicks a visible column.

RegNumber is the visible column.
RegKEY is a hidden column that I need to sort the grid by if the user clicks the heading on RegNumber.

I guess I need to trap the column heading click event and override the sort in some way by replacing the sort expression. I found some info suggesting I use the SortChanging event but I don't seem to be able to get this to work.

I have tried changing the sort field name without success and adding an expression to the MasterGridViewTemplate.

Any help or samples would be appreciated.

Declan
Declan
Top achievements
Rank 2
 answered on 29 May 2009
1 answer
57 views
Hi,

Ive run into a problem where in an mdi application using the docking manager to auto detect the child forms, when you switch between forms, the leave event is fired by the form that fired the enter event, instead of the form that was previously visible.

Ive tested this with a basic mdi form setup using just .net controls and it works fine, the moment I add a DockingManager and set it to autodetectmdiChildForms the events are fired by the same form.

If you know a work around that would be great?

Cheers
Adrian
Julian Benkov
Telerik team
 answered on 29 May 2009
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
ProgressBar
CheckedDropDownList
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?