Telerik Forums
UI for WinForms Forum
1 answer
201 views

Hi,

I want to add hand cursor in RadMenuItem.

Waiting for your favorable response.

Thanks..

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jan 2020
3 answers
183 views

Hello Team Telerik,

Is there any way to reproduce the cart component attached? We are working on a POS solution and reproducing the item is crucial for us. We are currently trying Telerik for Winforms.

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Jan 2020
1 answer
2.0K+ views

Hi Team, 

I am unable to find the direct download links for older versions of telerik. I am looking for for 2018 R3 version for windows. 

Thanks, 

Vijay

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Jan 2020
8 answers
346 views

Hi,

I have a grid-view with multiple grids working together, and one of the tasks at hand is if a value changes in a cell in one grid, then the main grid has to highlight any objects that shared that data that were affected by the change. The customer then needs to compile that data and at that point, the row for that object needs to have the highlight removed. I am able to get the conditional formatting for the highlight to work, but removing it from the entire row after the button click is proving to be a challenge. currently my code is set to do this using the following:

      public void GridHighLighterSetConditions()
      {
         int x = -1;
         double Index1 = - 1;
         double Index2 = - 1;
         double Index3 = - 1;
         string MIDindex = "";
         int RowIndex = 0;
         int MID = 0;


         foreach (GridViewDataRowInfo Index in MainGridView.SelectedRows)
         {

            if (MainGridView.SelectedRows.Count > 0)
            {
               for (x = 0; x < MainGridView.SelectedRows.Count; x++)
               {
                  RowIndex = MainGridView.SelectedRows[x].Index;

                  MIDindex = MainGridVIew.Rows[RowIndex].Cells[0].Value.ToString();

                  MID = int.Parse(MIDindex);
               }
               break;
            }
         }

         foreach (GridViewDataRowInfo Event in GridView2.Rows)

         {

            if (GridView2.SelectedRows.Count > 0)
            {
               for (x = 0; x < GridView2.SelectedRows.Count; x++)
               {
                  Index1 = GridView2.SelectedRows[x].Index + 1;
               }
               break;
            }
         }

         foreach (GridViewDataRowInfo Vevent in GridView3.Rows)
         {

            if (GridView3.SelectedRows.Count > 0)
            {
               for (x = 0; x < GridView3.SelectedRows.Count; x++)
               {
                  Index2 = GridView3.SelectedRows[x].Index + 1;
               }
               break;
            }
         }

         foreach (GridViewDataRowInfo REvent in GridView4.Rows)
         {

            if (GridView4.SelectedRows.Count > 0)
            {
               for (x = 0; x < GridView4.SelectedRows.Count; x++)
               {
                  Index3 = GridView4.SelectedRows[x].Index + 1;
               }
               break;
            }
         }

         ConditionalFormattingObject HL_1 = new ConditionalFormattingObject("Highlighter", ConditionTypes.Equal, Index1.ToString(), "", true);
         Font newFont = new Font("Arial", 8f, FontStyle.Bold);
         HL_1.CellFont = newFont;
         HL_1.CellForeColor = Color.DarkRed;
         HL_1.RowBackColor = Color.Gold;

         ConditionalFormattingObject HL_2= new ConditionalFormattingObject("Highlighter", ConditionTypes.Equal, Index2.ToString(), "", true);
         Font newPBVFont = new Font("Arial", 8f, FontStyle.Bold);
         HL_2.CellFont = newPBVFont;
         HL_2.CellForeColor = Color.DarkRed;
         HL_2.RowBackColor = Color.Gold;


         ConditionalFormattingObject HL_3 = new ConditionalFormattingObject("Highlighter", ConditionTypes.Equal, Index3.ToString(), "", true);
         Font newRVFont = new Font("Arial", 8f, FontStyle.Bold);
         HL_3.CellFont = newRVFont;
         HL_3.CellForeColor = Color.DarkRed;
         HL_3.RowBackColor = Color.Gold;

         ConditionalFormattingObject No_HL = new ConditionalFormattingObject("No Highlighter", ConditionTypes.Equal, MIDindex, "", true);
         Font newUMCFont = new Font("Arial", 8f, FontStyle.Regular);
         No_HL.CellFont = newUMCFont;
         No_HL.RowBackColor = Color.White;
         No_HL.CellForeColor = Color.Black;

         if (Index1 > Index2 && Index1 > Index3)
         {
            MainGridView.Columns["Column1"].ConditionalFormattingObjectList.Add(HL_1);

            GridView2.ClearSelection();
         }

         else if (Index2 > Index1 && Index2 > Index3)
         {
            MainGridView.Columns["column2"].ConditionalFormattingObjectList.Add(HL_2);

            GridView3.ClearSelection();
         }

         else if (Index3 > Index1 && Index3 > Index2)
         {
            MainGridView.Columns["Column3"].ConditionalFormattingObjectList.Add(HL_3);

            GridView4.ClearSelection();
         }
         else if (MIDindex != null && MID > Index1 && MID > Index2 && MID > Index3)
         {
            Index1 = -1;
            Index2 = -1;
            Index3 = -1;

            MainGridView.Columns["Column0"].ConditionalFormattingObjectList.Add(No_HL);
            

            MainGridView.ClearSelection();
            MainGridView.Refresh();
         }
         return;
      }

 

I Feel as though there must be a much easier way to do this.

Thanks.

David
Top achievements
Rank 1
 answered on 27 Jan 2020
2 answers
683 views

Hi,

I have a grouped radgridview.

What I am trying to accomplish is, when a regular (not group row) row is selected, I would like to change the background color of it's group row so it will be easy to see it (the group row of the selected regular row).

For example - 

Group Row A

1

2

3

Group Row B

4

5

if the user selects the row "2" I want "Group Row A" to change color. If the user then selects row "4" I want "Group row B" to change color (and "Group Row A" to change back to it's default color).

 

I have succeeded to change the color of the group row when selecting the group row directly (through the ViewRowFormatting event) but can not do it in a good way when a regular row is selected (in the SelectionChnaged event). I tried using:

1) From SelectionChanged event calling  this.gridView.TableElement.Update(GridUINotifyAction.Reset) but it brings the table back to the top if the user scrolled down.

2) From SelectionChanged  - tried to get the group row of the selected row and change it's background. Can not find the way to get to the GroupRowElement where I can access the background property.

Please help, any advice to achieve this would be appreciated!

Yaron

 

 

n/a
Top achievements
Rank 1
 answered on 27 Jan 2020
1 answer
302 views

hello i'm using radchat on my project and i have two questions

one

I've read how to sending a image but i'm not sure how i can send other files like Audio,video...

 

ChatMediaMessage mediaMessage = new ChatMediaMessage(img, new Size(300, 200), null, Chat_Box.Author, DateTime.Now);

 

two

and also are some of them like video types going to have a preview in the radchat like the image or not

if not how i can access the file that radchat is showing to execute it example like this Process.Start("C:\\");

thank you 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2020
1 answer
466 views
I have 80 email addresses separated with comma in a textbox. I also have four empty textboxes. How can I share the 80 email addresses equally among the four textboxes? I have not tried any thing because I no idea on how to start.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jan 2020
1 answer
301 views

     Hello,

I have an application, which is using RadGridView with additional DragDrop functionality and I have encoutered problems with applying all "Material xxx" themes for such a grid.

 

To find out the problem I have created new project from scratch, with new class: 

using Telerik.WinControls.UI;
 
namespace root
{
    public class CustomGrid : RadGridView
    {
        public CustomGrid()
        {
 
        }
    }
}

 

and then I have added 3 grids into WinForm. 

First one is just normal RadGridView with "Material" grid applied, second is CustomGrid with "Material" theme applied and third one is CustomGrid with Office2010Black theme applied, as can be seen in attachment. First and third controls are working as intended, but there is a problem with the middle one.

As You see, the grid in the middle does not apply selected Material Theme - in such cases it is using "Fluent" theme all the time. The problem is connected with all 4 Material themes available in current version of WinControls. Is it possible to change it in easy way? I have changed like 80% of application and all grids which are not supporting DragDrop to this Material Theme, and it is blocking me from releasing this new version to customer. 

 

Regards,

Mateusz

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Jan 2020
1 answer
136 views

I'd like to show a custom context menu when the user right clicks on an RadCheckedDropDownList item

What is the best way to do it?

 

I've tried setting the ContextMenuStrip property, as in:

    dropDownList.ContextMenuStrip = contextMenuStrip1;

but both my custom menu strip and the default context menu appears. See the attached image

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Jan 2020
1 answer
133 views

Hi,

I have three GridViewComboBoxColumn in RadGridView. Each Combobox column has display name and selected value code. When I assign the value, corresponding values are assigning correctly. But when when I fetch the row, Code value is coming as null and code value is displaying in name. I have attached the image.

The following code I have used to bind data to GridViewComboBoxColumn.

 ((GridViewComboBoxColumn)this.dataGrid.Columns["Company_Name"]).ItemsSource = CompanyList;
 ((GridViewComboBoxColumn)this.dataGrid.Columns["Company_Name"]).DisplayMemberPath = "Company_Name";
 ((GridViewComboBoxColumn)this.dataGrid.Columns["Company_Name"]).SelectedValueMemberPath = "Company_Code_Hdn";

Vladimir Stoyanov
Telerik team
 answered on 23 Jan 2020
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?