Telerik Forums
UI for WinForms Forum
3 answers
196 views
I would like to enable/disable button's on my form based on whether the user clicks the master row or the child row.
I am trying the following code, but this does not seem to work correctly in all the conditions.

What is the correct way to do this?
-------------------
GridViewSelectedRowsCollection selectedRows = this.rgResults.SelectedRows;
foreach (GridViewRowInfo selectedRow in selectedRows)
{
GridViewDataRowInfo selectedDataRow = selectedRow as GridViewDataRowInfo;
if (selectedDataRow != null)
{
bool isMaster = (selectedDataRow.ViewTemplate.ChildGridViewTemplates.Count == 1);
if (isMaster)
{
//Enable button1
//Disable button2
}
else
{
//Enable button2
//Disable button1

}

Jack
Telerik team
 answered on 23 Sep 2008
7 answers
159 views
I just downloaded the Q2 2008 RadControls for WinForms and I cannot find any documentation for the RadMultiColumnCombobox.  I am not finding anyting in Documentation Help file or in the Examples.  Am I missing something?
Nick
Telerik team
 answered on 23 Sep 2008
3 answers
196 views
What I am trying to do would be to either when the user is leaving the cell or when the user is leaving the row I want to validate the data entered and if they fail the validation then to not allow the user to leave either the cell or row.  I would like to be able to pop a message and inform the user of the error and then set the cursor to when the error exists. 

Is this possible?
Martin Vasilev
Telerik team
 answered on 23 Sep 2008
3 answers
119 views
hi,

how can i drag 'n drop elements from the gridview to the treeview control?

thanky you for the answer,

andreas
Rob
Top achievements
Rank 1
 answered on 23 Sep 2008
1 answer
339 views
Hi
Am new to telerik and we are evaluating the RadGridView functionality for our project. I have worked some time but couldnt completely make a point of following functionalities needed by us. Can you please help me to resolve the same

1)Can we show only limited specified fields of the object binded along with some unbounded columns(like check box for selection). How to state to show only few and not all the fields of the binded object.

2) Once the grid is binded to any generic collection, can we add a new object of the same type to the grid to create a new row.(Is it mandatory that the collection should implement IBindingList, if not it throws expection when trying to add a new object/row ). What is the best way to add a new row in this scenario.
Also, the newly added row should be able to have selectable combobox, datetime and other controls to select right option for the column, which can then be individually captured to set for the corresponding object of the row.
Note: I may not need this comobox in same cell of other rows. Something like, all other rows be noneditable and only the newly added  row cells are editable and once the focus is lost, its made uneditable.
How can I place controls like RichTextBox, datetimeEditor, ComboBox into the cells.
This is a major point of focus, any code example will be appreciated.

3) Handling sorting.
I see there is a SortChanging event, which gives the new header values for sort.
As our DB is huge and we implement our own custom sorting along with pagination, we would like to handle the sort.
Isn't there any SortHandled property in this event as we dont want to make e.cancel, doing which it doesnt show the sort indicators.

4) Hierarchy : How to achive heirarchy with 
    a) Collection of objects (for which we can have heirarchy condition)
    b) DataSet

5) An example of showing that individual cells can accept different controls like checkboxes, combobox, datetime, image editors etc.,

6) Any Printing option from the grid.

7) Any Paging : Like many of the webgrid does when binded to DB.

8) Some kind of RowInitialised event, where in we can set that row cells to be editable/ non editable or row to be visible/hidden.

Help for the points with an example code will be very helpfull so as to know if RadGridView can be used in our project.

Thanks in advance.
Arif

Martin Vasilev
Telerik team
 answered on 23 Sep 2008
4 answers
142 views
Hello,
what is the correct event handler to get notice that the user has clicked "Show below the ribbon"/"Show above the ribbon" and "Minimize the ribbon"/"Maximize the ribbon"  of the quick access menu?

Carsten
Top achievements
Rank 1
 answered on 22 Sep 2008
1 answer
207 views
Hi,$0We use the Telerik.WinControls.UI.RadSpinEditor control in our UI. While we configure that tab order for the form controls inside a form, we notice that it takes two tabs to get the focus onto the SpinEditor control. $0$0$0$0$0Is there some special setting that needs to be done for SpinEditor controls? The tab order works fine on single tab for moving the focus to all other controls. Only the SpinEditor seems to need 2 tabs to move the focus from the previous control onto it.$0$0$0$0$0Thanks,$0$0Hemanth$0
Martin Vasilev
Telerik team
 answered on 22 Sep 2008
1 answer
149 views
Hi there,

i'm new with theming and just created a new application wide theme. I inserted the following code in the MainForm_Load:

ThemeResolutionService.RegisterThemeFromStorage(ThemeStorageType.Resource, "Program.Resources.ApplicationTheme.xml");  
ThemeResolutionService.ApplicationThemeName = "ApplicationTheme"

This works great, also for different UserControls and Forms. But now I want to create some hierarchy within the theme.

Examples:
The RadLabel. For most of the time I can use the defined style in the ApplicationTheme. But I also need for a specific number of  labels some header styles (like a <H1> or <H2>, somewhat bigger and Bold).
The RadButton. Most of the time the buttons are blue, but some buttons must be red.

How can I achieve this? I can't really find an option in the VisualStyleBuilder. And I played with the <RadStylesheetRelation> section in the XML file combined with the ThemeName and ThemeClassName in the VS designer, but no results so far. Can I implement Theming on a CSS way? Is there any HowTo or Tutorial available?

Thank you,

Maarten
Mike
Telerik team
 answered on 19 Sep 2008
5 answers
160 views
Are there any known issues with radtextboxes not taking themes as other cotrols do?

My radtextboxes are not displaying themes while other types of controls do.

Ryan
Martin Vasilev
Telerik team
 answered on 19 Sep 2008
1 answer
238 views

OK, the title's a little bit of a lie.

I am unable to figure out the right combination of property values and event handlers to get a behavior I need for dragging things around in a radtreeview.

I want to allow users to drag node around in the tree (not into other controls).  This would seem to be very easy by simply setting the AllowDragDrop property to true.  This works great -- except that I need to implement some constraints.  Specifically, each type of node knows whether a given other node can be dropped onto it. 

I was unable to find any event I could effectively hook to implement  this.  The documentation suggests that at the end when the drop happens (DragEnding) it's possible to apply some logic to determine if the drop is valid.  However this is not enough for me.  I want to provide real time feedback when the user is hovering over various nodes about whether they can drop there.

So I started trying tsome things.  First I tried adding some feedback in the DragOver event.  But as soon as I did that, the visuals provided by the control (basically the bitmap being dragged around) moved a few pixels but then froze.  I finally concluded that I was colliding with the fully automatic drag drop capabilities in the control enabled by setting AllowDragDrop.

So I turned off AllowDragDrop and initiated a DoDragDrop manually on the MouseMove event.  Then I started implementing the other normal Windows events (like DragOver).  In order to provide feedback, I change the colors of the potential target node.  This all works well *BUT* I can't figure out how to catch when the user cancels the drag-drop so I can restore the node to its original colors.  I can do this if the operation completes by changing it back in the DragDrop event, but I don't think that happens if the user hits escape while dragging.

So... I thought I could hook QueryContinueDrag because it seems to have a flag indicating whether the user pressed Escape.  And here's the problem.  The event never seems to be called.  Is that a bug?  Is there something I need to do to cause the events to be fired?  My concern is that there is a bug such that QueryContinueDrag doesn't fire if the drag-drop operation is manually initiated (as I'm doing now).

Any advice?  Is there a simpler way to make this work?  Is there a bug with firing QueryContinueDrag?

Help!

Thanks,

David

Jordan
Telerik team
 answered on 19 Sep 2008
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?