Telerik Forums
UI for WinForms Forum
5 answers
296 views
I posted this before but the post seems to have vanished

void TelerikRadGridViewEnhanced_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)  
        {            
            if(!(e.CellElement.RowElement is Telerik.WinControls.UI.GridTableHeaderRowElement) && TextColorOverrideFunction != null)  
            {  
                e.CellElement.ForeColor  = TextColorOverrideFunction((e.CellElement.RowInfo.DataBoundItem as DataRowView).Row);  
              
            }  
      } 

This works fine and sets the foreground (text) color. However despite there being 4 BackColor properties, I can't change the back color, it is overridden by the theme. Is there a way to set the BackColor? Thanks
Jack
Telerik team
 answered on 01 Jun 2012
2 answers
235 views
Hi, Telerik team.
I'm working with Telerik Winform controls Q1 2012.
I want when i set SelectedValue = "admin" or SelectedValue = "ADMIN" ,anyway RadMultiColumCombobox will return just one Value in Datasource .Can i set which Properties?
Thanks .
Exclamation
Top achievements
Rank 1
 answered on 01 Jun 2012
0 answers
83 views
Hello,

some minutes ago I discovered a behavior on GridView which let me struggled for some time. The background is, I fill the rows with data and set the Tag property of row to my data object. After calling GridView.Relations.AddSelfReference the type of rows changed from GridViewDataRowInfo to GridViewHierachyRowInfo. Cell data is copied, but Tag value is missed. As I saw in the Constructor of GridViewHierachyRowInfo the data cache is only copied. In my mind also the Tag data schould be copied?

My workaround is to build a separate Dictionary with the key on my data object, also used in the hierachy. So I can access the data, which should be stored in Tag property, now from Dictionary using the value of ny ID column in GridView.

Same behavior can also be discovered on Tag property of the Cells.


Regards from Leipzig

Holger
Holger Boskugel
Top achievements
Rank 2
 asked on 31 May 2012
1 answer
200 views
Hi.. 
Im using RadPropertyGrid to my own class..
that class contain Color Property..
when I test that my computer.

result was test2.jpg

but some person's computer show test1.jpg..

I couldn find why that result is diffrence.
I checked .net framework version. but both version is same.. plz help me..

and when i click color pickerbutton that popup window size didn show me full size.
also i cant change size..
this example is test3.jpg

plz answer this request..

Thanks.
Ivan Petrov
Telerik team
 answered on 31 May 2012
1 answer
154 views

Hi Telerik Team

Im using Radscheduler (2012.1.321.40) in a customer project and need to render multiple appointments e.g. "unassigned Tasks" in the first Grouped Resource "Unassigned" which is kind of a virtual resource from where appointments can be assigned to real resources by drag+drop operation.  

Therefore I need to be able to set the height of the first grouped Resource "Unnassigned" (e.g height of 10 appointments) without the need to scroll cell content. The height of the other grouped resources (swimmlanes) should be settable also (min+max/auto where auto is current behaviour where available space is divided by number of grouped resources)

If total height of visible grouped resources exeeds the available space in Y-Axis, a scrollbar should allow for vertical scrolling.

What do other think about such a feature?

The only way to achive this behaviour at the moment would be adding a radSplitcontainer to the form, add add two radscheduler to it.
But then you need to sync viewsettings, visible scrollarea and need separate datasource which makes searching|filtering more complex...

Regards
Daniel K
 

Ivan Todorov
Telerik team
 answered on 31 May 2012
3 answers
186 views
Is there any possible way to remember the location of specific tool window to keep its location after closing and restarting the application.
I need to do this for specific tool window and not for other doc windows in the rad dock control since the other windows are created dynamically.

Ivan Todorov
Telerik team
 answered on 31 May 2012
3 answers
145 views

I've downloaded the most recent trial version of Winforms and I’m testing several new features including the enhanced drag and drop (specifically from Radgridview to another radgridview).  I've found several older unbound implementations on your website and I'm having troubles adapting them to using the most current version.  

Is there a SQL bound example of this feature that someone can point out (in VB please) that uses the most recent version (2012 Q1) that I can review and build from for testing?

Thank you.

   




   
Svett
Telerik team
 answered on 31 May 2012
1 answer
86 views
hi dears,
please help me , how can i handle right click on a RadButtonElement ?
Ivan Todorov
Telerik team
 answered on 31 May 2012
2 answers
282 views
How to click on group header bar to collapse expand?

Just to make more user friendly, let the user click on group header bar to collapse expand the list rather than click on the small button.

Is possible?
Please refer the picture from attachment.
Stanley
Top achievements
Rank 1
 answered on 31 May 2012
18 answers
575 views
void RadGridView_RowFormatting(object sender, RowFormattingEventArgs e)
        {
            object value = e.RowElement.RowInfo.Cells[1].Value;
 
            if (value != null)
            {
                if (e.RowElement.Tag == null)
                {
                    e.RowElement.DrawBorder = true;
                    e.RowElement.GradientStyle = GradientStyles.Solid;
                     
                    CustomAnimatedPropertySetting setting = new CustomAnimatedPropertySetting(e.RowElement);
 
                    setting.ApplyValue(e.RowElement);
 
                    e.RowElement.Tag = setting;
                }
            }
            else
            {
                CustomAnimatedPropertySetting setting = e.RowElement.Tag as CustomAnimatedPropertySetting;
 
                if (setting != null)
                {
                    e.RowElement.Tag = null;
 
                    setting.Stop();
 
                    e.RowElement.ResetValue(LightVisualElement.DrawBorderProperty, ValueResetFlags.Local);
                    e.RowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
                    e.RowElement.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Animation | ValueResetFlags.Local);
                }
            }
 
        }
 
        public class CustomAnimatedPropertySetting : AnimatedPropertySetting
        {
            GridRowElement row;
             
            public CustomAnimatedPropertySetting(GridRowElement row)
                : base(
                        LightVisualElement.BorderColorProperty,
                        Color.Blue, // start value    
                        Color.White, // end value    
                        40, // number of animation frames    
                        10 // time in ms between 2 frames
                )
            {
                this.row = row;
                this.AnimationFinished += new AnimationFinishedEventHandler(CustomAnimatedPropertySetting_AnimationFinished);
                this.AnimatorStyle = AnimatorStyles.AnimateAlways;
                this.ApplyEasingType = RadEasingType.Linear;
                this.UnapplyEasingType = RadEasingType.Linear;
            }
 
             
            public void Stop()
            {
                GridRowElement o = this.row;
                this.row = null;
                this.Stop(o);
            }
 
            void CustomAnimatedPropertySetting_AnimationFinished(object sender, AnimationStatusEventArgs e)
            {
                if (row != null && row.Parent != null)
                {
                    this.ApplyValue(row);
                }
                else
                {
                    row = null;
                    this.AnimationFinished -= new AnimationFinishedEventHandler(CustomAnimatedPropertySetting_AnimationFinished);
                }
            }
 
        }

Hi Folks,


I would like to make the border become flashing... but it failed to do so....what's wrong with the code ?

Thanks!
Charles.

Nikolay
Telerik team
 answered on 30 May 2012
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
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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?