Telerik Forums
UI for WinForms Forum
1 answer
171 views
Hi,

I'm trying to cancel row selection event. How can i do it?

Because when SelectionChanged event is fired, I can't cancel the event.
I tried to do something like
        private void RadGridView_Summary_SelectionChanged(object sender, EventArgs e) 
        { 
            GridViewRowInfo lastRow = this.RadGridView_Summary.Rows[this.RadGridView_Summary.Rows.Count - 1]; 
            lastRow.IsSelected = true; 
 
            /* only get */ 
            /* lastRow.IsCurrent = true;*/ 
        } 
 



Thanks

PS : I use RadControls for WinForms Q3 2008
Nick
Telerik team
 answered on 21 Nov 2008
1 answer
183 views
i have a column displaying 10/10/2008 12:12:00 i wnt only to show 10/10/2008, how i can format it?
Nick
Telerik team
 answered on 21 Nov 2008
1 answer
94 views
When I select an item in the ControlStrucure's TreeView, the State tabs at the bottom do not display unless I maximize/restore the VSB window.  Really frustrating, since the window itself takes forever and a day to repaint itself.
Nick
Telerik team
 answered on 20 Nov 2008
3 answers
147 views
Using RadControls for WinForms Q2 2007.

In Visual Style Builder, when selecting the ",,," for the Image property of an ImagePrimitive, it no longer works!  It just sits there.  It used to work and just stopped all of a sudden.  Recently it came back, but then it stopped working again.  What's causing this and how can I get it back?

I thought the VS preferences might have something to do with it, but they don't appear to.  Please help.  Thank you.
Nick
Telerik team
 answered on 20 Nov 2008
2 answers
187 views
How can I assign an RadContext Menu to a NON RAD control?  Or do I need to use something different?

Thanks
William
Top achievements
Rank 1
 answered on 20 Nov 2008
2 answers
171 views
hi is there any help for the scheduler control? I couldn't find any. I was looking for a tutorial which reads appointments from the database.

Thanks,
Derek.
Arni
Top achievements
Rank 1
 answered on 20 Nov 2008
2 answers
278 views
I recently installed the Q3 components and really like the themes colour blending addition.
I attempted to use this in a test app I created to test the new features.

Now this is really simple code (love it) but for some reason I cannot get it to work.

I have a form that inherits radform. I have a ribbonbar (pointless but just for testing) , a status
bar and a button. The button , statusbar and form all use the desert theme and the ribbonbar
the standard blue theme. I attempt to apply the colour blending after the button is clicked.
The code for it is as follows.

 

public partial class frmMain : RadForm
{
 private Theme currentTheme;
 private const string baseColorParamName = "BaseColor";

 public frmMain()
 {

     InitializeComponent();

 }

 private void radButton1_Click(object sender, EventArgs e)
 {

  currentTheme = ThemeResolutionService.GetTheme("Desert");
  HslColor baseColor = HslColor.FromAhsl(0.118, 0.9, 0.9);
  currentTheme.AddColorBlend(baseColorParamName,baseColor);
  currentTheme.ThemeProperties[baseColorParamName] = baseColor;
 }

}


The code generates no errors and the form borders sort of flicker as it happens,
the colour blending however has no effect. I assume I am missing something
simple but the code above barring the moving of some lines to a single proc,
is identical to that in the examples.

Could anyone shed some light on what I am doing incorrectly ?

 

Kenneth Jackson
Top achievements
Rank 1
 answered on 19 Nov 2008
3 answers
344 views
hi i set a Filter Expression manualy

DataGrid.MasterGridViewInfo.FilterExpression = "id = 7" ;

but the gird didn't filer the rows .
i tried 

DataGrid.MasterGridViewInfo.UpdateFiltering();

DataGrid.MasterGridViewInfo.UpdateView();

is there a way to ser the row filter menual from code.

 
Nick
Telerik team
 answered on 19 Nov 2008
1 answer
234 views
HI,
I posted earlier but decided to make a new thread. Seen as there is no documentation yet, I was wondering, is there a tutorial on how to use a datasource with the scheduler?  I need the appointments to be persistent. It would be really great to see the scheduler working in conjunction with a database. If I can do this, then my employer will proceed to purchase the controls suite.

Thanks,
Derek.
Jordan
Telerik team
 answered on 19 Nov 2008
5 answers
947 views
Is it possible to Add A User Control To A Grid Column?

I need a grid which for each row the user needs to choose an from one of two radio button options.

Item              Buy/Sell
Cars             [ ]  [ ]
Dogs             [ ]  [ ]
Houses          [ ]  [ ]

I figured a user control would be the easiest way to do this but I could really use an example? Experimentation makes me think it's not possible as I can only add a RadElement item to the CellElement.Children() collection?

My fallback position was to try adding to RadioButtons to the same cell and I adapted the Telerik progressbar example in this regard.. see below for method called from CellFormatting event.   Seems to work so far as long as I define a new location when adding the second element as by default it appears on top of the first element; still, I'm not sure how well this general approach will workout when I start applying more logic and controls.. is a user control a no-go?

Cheers
  Ewart.

  private void AddRadio(CellFormattingEventArgs gCell) 
      { 
         if (gCell.CellElement.Children.Count > 0) 
            return; 
 
         RadRadioButtonElement element = new RadRadioButtonElement(); 
         gCell.CellElement.Children.Add(element); 
 
         // apply theme to the progress bar   
         ApplyThemeToElement(element, "Aqua"); 
      } 



Nick
Telerik team
 answered on 19 Nov 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)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?