Telerik Forums
UI for WinForms Forum
2 answers
166 views

Hi,

i would like to change the color of my tileElement in runtime (property defined by user), but i would like to keep the effect of the tileElement (another color define  for mouseover)

Is there any way ?

OD
Top achievements
Rank 1
 answered on 22 Feb 2017
2 answers
124 views

Hi, 

i made a custom filtering in my Grid. I have a FilterCell with a "FilterClearButton" and I confirm my FilterCellEntry with the Keys "Enter" or Tab. 

I also set these properties:

            loGridFilterCellElement:FilterButton:Visibility = Telerik.WinControls.ElementVisibility:Collapsed
            loGridFilterCellElement:FilterOperatorText:Visibility = Telerik.WinControls.ElementVisibility:Collapsed

 

When I leave my Filtercell(CellEndEdit Event), I make a new Filterdescriptor.

         loFilterDescriptor = NEW Telerik.WinControls.Data.FilterDescriptor().
         loFilterDescriptor:Operator = Telerik.WinControls.Data.FilterOperator:Contains.
         loFilterDescriptor:PropertyName = poGridViewDataColumn:Name.
         loFilterDescriptor:IsFilterEditor = TRUE.
         loFilterDescriptor:VALUE = poVal.

and add it to the FilterDescriptorCollection of my Grid.

         THIS-OBJECT:FilterDescriptors:BeginUpdate().

         THIS-OBJECT:FilterDescriptors:Add(loFilterDescriptor).
         THIS-OBJECT:FilterDescriptors:EndUpdate().

 

So far, there is no problem but if I filter a column for "Dom" and in my Grid there are two entries in this column with "Zöbl Dominik" and "test user" the Grid is empty. But if I enter "Zöb" in my Filtercell and leave it, the Entry "Zöbl Dominik" is shown in my Grid.

 

I think i have missed some property or other setting. It seems like it is filtering with "Begins" and not contains but I already iterated through oll the FilterDescriptors of my Grid and all are with "Contains". 

I know it is not easy to help me in that case because I made a lot of these extras myself but does anybody have an idea what i have made false?

Sincerely,

Dominik Zöbl

Hristo
Telerik team
 answered on 21 Feb 2017
2 answers
74 views

I need to pivot the the Day View so that my resources show up along the left vertical column and the time of day is horizontal across the top.

Using your example provided here....  http://docs.telerik.com/devtools/winforms/scheduler/views/grouping-by-resources#grouping-by-resources-in-different-views

..as a reference point...

Alan and Ann are stacked along the left side of the view.  And the times  0300-1600 are laid across the top.

Thank you in advance.

-Scott

Scott
Top achievements
Rank 1
 answered on 20 Feb 2017
1 answer
104 views

dear all, i m facing the following issue when i pressed shortcut key which is "Ctrl + F" register in my application using the following code.

[code]

this.grdMain.GridViewElement.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.F));
this.grdMain.GridBehavior = new ModifiedGridActions();

[/code]

and overriding the keyprocess function in grid behaviors using the following code

[code]

public class ModifiedGridActions : BaseGridBehavior
        {
            public override bool ProcessKey(KeyEventArgs keys)
            {
                try
                {
                    if (keys.Control && keys.KeyCode == Keys.F) // issue on this line
                    {
                        this.GridControl.MasterView.TableFilteringRow.Cells["cName"].BeginEdit();
                    }
                }
                catch (Exception ex)
                {
                }
                return base.ProcessKey(keys);
            }
        }

[/code]

when i press ctrl + f above override function triggers but its parameter only contains keys.control is true and keys.keycode property contains 17 which also ctrl code. what i expect is to get keys.control is true and keys.keycode should contains keys.F so that my logic can execute am i implementing somthing wrong.

Dimitar
Telerik team
 answered on 20 Feb 2017
3 answers
117 views
Hello,

I am trying to keep an object in the Tag property of a tool window.
But when I dock the tool window to a position the tag property becomes null.

  

 

ToolWindow window = new ToolWindow();   
_documentTabStrip.Controls.Add(window);  
window.Tag = "Tag";  // Here I assign a tag   
_radDock.DockControl(window, DockPosition.Top, DockType.ToolWindow);  
// The Tag property of the docked toolwindow is null (_radDock.ToolWindows[0].Tag is null)  
 

Is there any way to find the docked window in the _radDock to set its Tag.
Please help.
Burhan Eyimaya

 

 

 

 

 

 

 

 

 

 

Hristo
Telerik team
 answered on 20 Feb 2017
0 answers
80 views

Hi,

I'm creating password with track bar.

I do not know how to write code (TrackBar.Value):

 

Please check my code:

01.int PassLength = 0;
02.static string Shuffle(string input)
03.{
04.    var q = from c in input.ToCharArray()
05.            orderby Guid.NewGuid()
06.            select c;
07.    string s = string.Empty;
08.    foreach (var r in q)
09.        s += r;
10.    return s;
11.}
12.private void CreatePassword_Click(object sender, EventArgs e)
13.{
14.    txt_CreatePass.Text = "";
15.    string text = "aAbBcCdDeEfFgGhHiIjJhHkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ01234567890123456789{,;:!*$@-_=^[}{,;:!*$@-_=^[}";
16.    text = Shuffle(text); //shuffle the above symbols using shuffle() method.
17.    text = text.Remove(PassLength); //cut the string size according to the chosen trackbar value.
18.    txt_CreatePass.Text = text;
19.}
20. 
21.private void TrackBar_ValueChanged(object sender, EventArgs e)
22.{
23. 
24.    this.TrackBarCreatePass.Value = Convert.ToInt32(+1);
25.    lbl_Count.Text = PassLength.ToString();
26. 
27.    //lbl_Count.Text = TrackBarCreatePass.Value.ToString();
28.    //PassLength = this.TrackBarCreatePass.Value;
29.}
30. 
31.private void TrackBar1_CreatePass_ValueChanged(object sender, EventArgs e)
32.{
33.    PassLength = TrackBar1_CreatePass.Value + 1; //trackbar value starts from 0, so I add +1 to make it understandable;
34.    lbl_Count.Text = PassLength.ToString();
35.}
saeid
Top achievements
Rank 1
 asked on 19 Feb 2017
1 answer
159 views

Is there any way to apply a StyleRepository object to a control? I know I can do something like:

         Theme currenTheme = ThemeRepository.FindTheme(ThemeResolutionService.ApplicationThemeName);
         StyleRepository repositoryFromTheme = currenTheme.FindRepository("DisabledForeColor");
         PropertySetting styleForeColor = repositoryFromTheme.FindSetting("ForeColor");
         Color colorToSet = (Color)styleForeColor.Value;
         myTextBox.Forecolor = colorToSet;

However, if I have multiple properties to set (say, multiple colors and maybe some transparency or a background image or something), this can get a bit tedious and it lacks flexibility. So, what I'd like to do is just take the StyleRepository object and apply it directly to the control. Alternately, I'd be fine with looping through the settings collection and applying each of those individually so long as I didn't have to hard code the names of the PropertySettings into my code. Something like:

         foreach (PropertySetting currentPropertySetting in repositoryObjectFromTheme.Settings)
         {
            genericRadControl.SOMETHING = currentPropertySetting;
         }

would work for me fine as well.

Any suggestions?

 

Hristo
Telerik team
 answered on 17 Feb 2017
2 answers
620 views
Hi, I am working with the Rich Text Editor Ribbon Bar in WinForms.  I want to hide the entire File menu options.  How can this be done?
Bill
Top achievements
Rank 1
 answered on 17 Feb 2017
4 answers
493 views
Hello,

Since last version, how could I change column index, because now it seems that "Telerik.WinControls.UI.GridViewColumn.Index" is read only ?

Thanks.
Hristo
Telerik team
 answered on 17 Feb 2017
5 answers
117 views

Hello,

There is a bug in gridview printiing with mode landscape only

with this gridview :

http://creiler.free.fr/window_gridview.jpg

My PrintStyle :

 With oStyle

                .FitWidthMode = PrintFitWidthMode.NoFitCentered
                .PrintGrouping = False
                .PrintSummaries = True
                .PrintHeaderOnEachPage = True
                .PrintHiddenColumns = False
                .PrintHierarchy = True
                .PrintAllPages = True
                .HierarchyIndent = 0
                .CellFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
                .HeaderCellFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
                .SummaryCellFont = New System.Drawing.Font("Arial", 8, FontStyle.Bold)
                .GroupRowFont = New System.Drawing.Font("Arial", 8, FontStyle.Bold)
            End With​

 

normal :

http://creiler.free.fr/gridview1.jpg

landscape :

http://creiler.free.fr/gridview2.jpg

Summary cells are shifting 
Hristo
Telerik team
 answered on 16 Feb 2017
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?