Telerik Forums
UI for WinForms Forum
14 answers
535 views
this.RadDropDownList_LocationType.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
this.RadDropDownList_LocationType.Location = new System.Drawing.Point(4, 4);
this.RadDropDownList_LocationType.Name = "RadDropDownList_LocationType";
this.RadDropDownList_LocationType.NullText = "Please Select";
this.RadDropDownList_LocationType.Size = new System.Drawing.Size(123, 18);
this.RadDropDownList_LocationType.TabIndex = 0;
When I Use RadComboBox instead RadDropDown property works.
Hristo
Telerik team
 answered on 24 Aug 2018
3 answers
161 views
In demo project if I set radRichTextEditor1.RichTextBoxElement.BackColor = Color.Aqua in constructor I see the background color changed in web layout. But in print layout only the color of the background behind the pages is changed. How to change the color of the pages too?
Dimitar
Telerik team
 answered on 23 Aug 2018
6 answers
82 views

     Hey guys,my entire application is using VisualStudio2012Light theme of telerik 2015 and it's ok, the problem is when I upgrade to 2018, because it has increased size, and most of my controls get over each other. Can someone give me a version of this theme without the increased size? I want to use 2018 theme version because of clear buttons and etc...

Dimitar
Telerik team
 answered on 23 Aug 2018
3 answers
178 views
Hi!

I am trying to replace standart winforms PropertyGrid, which actually does the job, by RadPropertyGrid but faced up with an issue. Editing object contains string typed property, which stores value of a color, also there is custom editor based on UITypeEditor which should render the value inside property grid. In debug I see that in case of RadPropertyGrid, methods of my editor are not invoked and thus no rendering happens, while everything works ok with standart property grid. How may I make it work with RadPropertyGrid? 

Considering that a code base, I'm working is deep legacy, I tried to create a symplified sample app that demonstrates a use case in our app, described upstairs.
https://github.com/vklu4itesvet/ICustomTypeDescriptor-advantures/tree/master/TelerikPropertyGrid
here is the code 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Aug 2018
9 answers
355 views

Hello, does anyone knows a way to let the RadDataFilter to show the "DisplayName" of a property (as taken from a resource file) instead of the property name in unbound mode so that I do not have to write my own parser to convert the expression between "display" and "property" ?

[Display(Name = "DATAARR_DisplayProp", Description="DATAARR_zz_tooltip_", ResourceType=typeof(Warehouse.Magany2.loc.PKLIST_LOCALI))]       
public Nullable<DateTime> DATAARR      
{  
   get;
   set;
}
    

 

See attached image

Best Regards

Andrea

Dimitar
Telerik team
 answered on 22 Aug 2018
25 answers
1.0K+ views

Hi

I need to remove the selectedRows in a Radgrid. I used the following code:

 

GridViewSelectedRowsCollection RowCollection = m_radGridSource.SelectedRows;

 

foreach (GridViewRowInfo GridDataRow in RowCollection)

{

    m_radGridSource.Rows.Remove(GridDataRow

as GridViewDataRowInfo);  

 

 

}

 

 



But exception was thrown as enumerator modified.

Please let me know how ro remove selected rows.


Sangeetha.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Aug 2018
1 answer
971 views

I have a rich text editor with rubber bar (playing with Telerik's demo project), and I would like to disable the user from changing printer settings (and to change the printer in particular). So, for plain print I have this code (please correct me if there's a better way):

private void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
  if (e.Command is PrintCommand)
  {
    e.Cancel = true;
    radRichTextEditor1.Print(false);
  }
}

 

But how to prevent the print dialog from print preview dialog? Also, how to prevent print settings dialog as well? Ideally I would like the print button to just print immediately, and print settings button to disappear.

Dimitar
Telerik team
 answered on 20 Aug 2018
12 answers
359 views

At startup, I am adding the last x number of messages, but the control doesn't scroll to the bottom. How can I ensure the last message is visible?

Also, the last x messages span across more than 1 day, but my time separator always says Today.

The date in the ChatTextMessage constructor looks correct, and it is adding separators between the dates, but they all say Today

Thanks!

Kabir
Top achievements
Rank 1
 answered on 17 Aug 2018
2 answers
1.5K+ views

Hello everyone,

Title basically explains the problem. I have some code that I tried searching for online, but it doesn't do what I want it to.

See screenshot to see the duplicate data I'm trying to hide (i.e. hide the second row -- id: 34 -- where the business names are both "Tractor Supply Warehouse"

Here's the code I have now, though I've tried a few different approaches with no success. What happens in this one is that the value of the duplicateIndexList never changes...so everything after the duplicate Tractor Supply Warehouse row (id: 34) gets hidden, which I don't want!

Thanks!

private void MPLListRowCreation()
        {
            MPLList_GridView.Rows.Clear();
            this.MPLList_GridView.BeginUpdate();
            List<int> duplicateIndexList = new List<int>();
 
            foreach (BPPriceMstr myMpl in masterPriceLists)
            {
                int[] dupl;
                GridViewDataRowInfo rowInfo = new GridViewDataRowInfo(this.MPLList_GridView.MasterView);
                int count = 0;
                rowInfo.Cells[0].Value = Convert.ToInt32(myMpl.Id);
                rowInfo.Cells[1].Value = myMpl.Business.CardName;
                rowInfo.Cells[2].Value = myMpl.StartDate.ToString("MM/dd/yyyy");
                rowInfo.Cells[3].Value = myMpl.EndDate.ToString("MM/dd/yyyy");
                rowInfo.Cells[4].Value = myMpl.CreatedBy;
                rowInfo.Cells[5].Value = myMpl.CreatedOn.ToString("MM/dd/yyyy");
                rowInfo.Cells[6].Value = myMpl.ModifiedBy;
                if (myMpl.ModifiedOn.ToString("MM/dd/yyyy") != "01/01/0001")
                {
                    rowInfo.Cells[7].Value = myMpl.ModifiedOn.ToString("MM/dd/yyyy");
                }
                rowInfo.Cells[8].Value = myMpl.TermsPackage.PackageName;
 
                //set our search paramater (the row/cardname we're currently on)
                //iterate over all of the MPL objects and see if there is more than one match...
                string searchedStr = myMpl.Business.CardName;
                for (int i=0; i<masterPriceLists.Count; i++)
                {
                    if (masterPriceLists[i].Business.CardName.ToUpper().Equals(searchedStr.ToUpper()))
                    {
                        count++;
                        if (count > 1)
                        {
                            //if it finds more than one MPL, add the duplicate indices to an array
                            duplicateIndexList.Add(myMpl.Id);
                        }
                    }
                }
                 
                //if we have duplicates...
                if (duplicateIndexList.Count != 0)
                {
                    dupl = duplicateIndexList.ToArray();
                    int firstEntry = dupl[0];
                    //hide all indices greater than the first entry... i.e. hide all indexes greater than the first one in the array
                    foreach (var item in dupl)
                    {
                        if (firstEntry.ToString().Equals(item.ToString()))
                        {
                            rowInfo.IsVisible = true;
                            //here we also probably want to show that there are multiple start/end dates for that MPL
                            //rowInfo.Cells[2].Value = "Multiple";
                            //rowInfo.Cells[3].Value = "Multiple";
                        }
                        else
                        {
                            rowInfo.IsVisible = false;
                        }
                    }
                }
                MPLList_GridView.Rows.Add(rowInfo);
            }
            this.MPLList_GridView.EndUpdate();
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Aug 2018
6 answers
109 views

Is there away to use the tracking component to track between 2 values.  What I'm trying to mimic is a video time status bar.  I want the user to be able to set the IN and OUT between the start time and the end time.  Then when they play the video it will have a current status bar between the IN and OUT that shows the current time of the clip that is playing.

I attached an image of what Adobe premiere looks like. I know it can't look like this but would love to be able to do something like it that would have a tracker that has a min of 0 and max of lets say 60 (secs) then a user set the IN at 4 (sec) and OUT at 20 (sec) then when they play the thumb will move between those 2 numbers.  Even if it's just a visual background range color that is set between those 2 numbers it would work.  I just need to make it so that it's visual that the user selected those 2 ranges.

Hope this makes sense.

Brett
Top achievements
Rank 2
 answered on 15 Aug 2018
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
ProgressBar
CheckedDropDownList
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?