Telerik Forums
UI for WinForms Forum
1 answer
456 views
Hi

Can anyone please tell me how to add the Minimize , Maximize and close button on the panorama control or form just like the one on the demo.? I've been trying to achieve that for sometime now. I need help.

Thanks
Hristo
Telerik team
 answered on 15 Dec 2014
1 answer
87 views
When I am in month view, what event is triggered when I click the text being pointed to in the image below.

Thanks.
Hristo
Telerik team
 answered on 13 Dec 2014
1 answer
207 views
I have two radlistviews on a form. I want to hide the selection color in the first listview when an item is selected in the second listview and vice versa. I have added code to the VisualItemFormatting event to do this. However, selecting an item in the second listview doesn't trigger the VisualItemFormatting event of the first listview, so nothing happens. How do I trigger the VisualItemFormatting event of the first listview? Or is there some other way to do this?
Hristo
Telerik team
 answered on 12 Dec 2014
1 answer
120 views
Does anyone know if with the RTF Editor you have the ability to count the number of characters. What I need to be able to do is insert an external file and count the total characters typed into the editor minus the count of the inserted file. Also If portions of the inserted file are changed be able to add the changed characters to the total count.
Ivan Petrov
Telerik team
 answered on 12 Dec 2014
7 answers
472 views
Hi,

I'm using the winforms Telerik GridView in c#

I'm trying to populate a Parent Child Relationship ( Self Referencing Columns from same Table). I have created the Master and Child Templates. Code Below.

On executing this code, the master files are displayed with a '+' symbol. However they dont seem to be expandable. But when the bound columns are removed from the child template, the hierarchy works fine (Child data are displayed)

Also when for the child template, Columns are NOT customised and AUTOGENERATECOLUMNS is set to true, the hierarchy works fine and child data is displayed.

Can you please suggest how to achieve a hierarchy with customised bound columns in the Child template like in the case below ? I need this at the earliest as i'm running on a deadline

 

 

 

// Datasource for Parent Rows
  
DataTable dtDashboardView_MasterFiles = CDashboardManager.Get_DashboardView_MasterFiles();
  
// Datasource for Child Rows
  
DataTable dtDashboardView_SubFiles = CDashboardManager.Get_DashboardView_SubFiles();
  
// Parent Template Creation
  
radDashboard.AutoGenerateHierarchy = true ;
radDashboard.MasterGridViewTemplate.AutoExpandGroups = true;
radDashboard.MasterGridViewTemplate.AutoGenerateColumns = false;
radDashboard.EnableAlternatingRowColor = true;
((GridTableElement)radDashboard.GridElement).AlternatingRowColor = Color.LightGray;
radDashboard.MasterGridViewInfo.TableHeaderRow.AllowResize = true;
radDashboard.MasterGridViewTemplate.AllowAddNewRow = false;
radDashboard.MasterGridViewTemplate.AllowDeleteRow = false;
radDashboard.MasterGridViewTemplate.AllowEditRow = true;
PopulateMasterGridColumns();
radDashboard.MasterGridViewTemplate.DataSource = dtDashboardView_MasterFiles;
  
// Child Template Creation
  
GridViewTemplate template = new GridViewTemplate();
template.Caption = "SubFiles";
template.AutoGenerateColumns = false;
template.AllowColumnResize = true;
template.AllowRowResize = false;
template.AllowAddNewRow = false;
template.AllowDeleteRow = false;
template.AllowEditRow = true;
template.ShowColumnHeaders = true;
  
GridViewCheckBoxColumn dtCheckBox = new GridViewCheckBoxColumn();
dtCheckBox.UniqueName = "c_chkBxSelect";
dtCheckBox.HeaderText = "";
dtCheckBox.Width = 40;
template.Columns.Add(dtCheckBox);
  
GridViewTextBoxColumn cMasterID = new GridViewTextBoxColumn();
cMasterID.UniqueName = "c_MASTERID";
cMasterID.HeaderText = "Master ID";
cMasterID.FieldName = "MASTERID";
cMasterID.ReadOnly = true;
cMasterID.Width = 60;
template.Columns.Add(cMasterID);
  
GridViewTextBoxColumn cHealthStatus = new GridViewTextBoxColumn();
cHealthStatus.UniqueName = "c_HEALTHSTATUS";
cHealthStatus.HeaderText = "Health Status";
cHealthStatus.FieldName = "HEALTHSTATUS";
cHealthStatus.ReadOnly = true;
cHealthStatus.Width = 60;
template.Columns.Add(cHealthStatus);
  
  
radDashboard.MasterGridViewTemplate.ChildGridViewTemplates.Add(template);
  
// Establishing Relationship
                GridViewRelation relation = new GridViewRelation(radDashboard.MasterGridViewTemplate);
                relation.ChildTemplate = template;
                relation.RelationName = "MasterSub";
                relation.ParentColumnNames.Add("MASTERID");
                relation.ChildColumnNames.Add("c_MASTERID");
                radDashboard.Relations.Add(relation);
  
private void PopulateMasterGridColumns()
        {
            try
            {
                radDashboard.Columns.Clear();
  
                GridViewCheckBoxColumn dtCheckBox = new GridViewCheckBoxColumn();
                dtCheckBox.UniqueName = "chkBxSelect";
                dtCheckBox.HeaderText = "";
                radDashboard.MasterGridViewTemplate.Columns.Add(dtCheckBox);
                dtCheckBox.Width = 40;
  
                GridViewTextBoxColumn cMasterID = new GridViewTextBoxColumn();
                cMasterID.UniqueName = "MASTERID";
                cMasterID.HeaderText = "Master ID";
                cMasterID.FieldName = "MASTERID";
                cMasterID.ReadOnly = true;
                radDashboard.MasterGridViewTemplate.Columns.Add(cMasterID);
                cMasterID.Width = 60;
  
                GridViewTextBoxColumn cHealthStatus = new GridViewTextBoxColumn();
                cHealthStatus.UniqueName = "HEALTHSTATUS";
                cHealthStatus.HeaderText = "Health Status";
                cHealthStatus.FieldName = "HEALTHSTATUS";
                cHealthStatus.ReadOnly = true;
                radDashboard.MasterGridViewTemplate.Columns.Add(cHealthStatus);
                cHealthStatus.Width = 60;
  
                GridViewTextBoxColumn cBranch = new GridViewTextBoxColumn();
                cBranch.UniqueName = "BRANCH";
                cBranch.FieldName = "BRANCH";
                cBranch.ReadOnly = true;
                cBranch.HeaderText = "Branch";
                radDashboard.MasterGridViewTemplate.Columns.Add(cBranch);
                cBranch.Width = 70;
  
                GridViewTextBoxColumn cDepartment = new GridViewTextBoxColumn();
                cDepartment.UniqueName = "DEPARTMENT";
                cDepartment.FieldName = "DEPARTMENT";
                cDepartment.ReadOnly = true;
                cDepartment.HeaderText = "Dept";
                radDashboard.MasterGridViewTemplate.Columns.Add(cDepartment);
                cDepartment.Width = 40;
  
                GridViewTextBoxColumn cEditLink = new GridViewTextBoxColumn();
                cEditLink.UniqueName = "JOBFILENUMBER";
                cEditLink.FieldName = "JOBFILENUMBER";
                cEditLink.HeaderText = "Job File";
                radDashboard.MasterGridViewTemplate.Columns.Add(cEditLink);
                cEditLink.ReadOnly = true;
                cEditLink.Width = 70;
  
                GridViewTextBoxColumn cCustomerName = new GridViewTextBoxColumn();
                cCustomerName.FieldName = "CUSTOMER_NAME";
                cCustomerName.UniqueName = "CUSTOMERNAME";
                cCustomerName.HeaderText = "Customer Name";
                cCustomerName.ReadOnly = true;
                radDashboard.MasterGridViewTemplate.Columns.Add(cCustomerName);
                cCustomerName.Width = 180;               
            }
            catch (Exception pobjExc)
            {
                MessageBox.Show(pobjExc.Message.ToString());
                throw pobjExc;
            }
            finally { }
        }

Ivan Petrov
Telerik team
 answered on 12 Dec 2014
3 answers
159 views
Hi,

I use TSSP file that changes the appearance of the entire application.
There is a problem with the appearance when the user has different font scaling setting in Windows (120 DPI).
Due to the nature of the project I need to get the same appearance of the application, regardless of the DPI.
So using VisualStyleBuilder I changed the font size from the point value to the pixel value (Segoe UI; 8,25pt => Segoe UI; 11px).
In Annex, you can see the result.
Font has the same size. But the size of the control type CommandBarButton is strange. It looks as if I set the padding (but padding is 0 for all).
How to get rid of the padding?
For other types of controls do not see this behavior.
Dimitar
Telerik team
 answered on 12 Dec 2014
2 answers
130 views
Hi,

how can I set the left location of GanttViewGraphicalViewElement?

Thx
Frank
Top achievements
Rank 1
 answered on 11 Dec 2014
6 answers
250 views
I have a radSplitContainer where I would like to have a SplitterWidth of 3. Now, the background of everything in the project is black. The splitterarea is a greyshade, or silver. How do I change that to black?

Thanks,
Karl
Pierre
Top achievements
Rank 1
 answered on 11 Dec 2014
1 answer
80 views
tried to post it in Reporting forum, but unsuccessfully, doesn't show 

Hi,

here is the code for background printing.

        void ReportToDefault(Report report)
        {
            if (report == null) return;

            System.Drawing.Printing.PrintController standardPrintController =
                                    new System.Drawing.Printing.StandardPrintController();
            Telerik.Reporting.Processing.ReportProcessor reportProcessor
                                                = new Telerik.Reporting.Processing.ReportProcessor();
            reportProcessor.PrintController = standardPrintController;
            try
            {
                reportProcessor.PrintReport(report, Properties.Settings.Default.defaultPrinter);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }

The question is:

If the high intensive printing is needed, then what is the best practice to use the code? 
Is it better to instantiate the controller and processor only once, on the App start up, and then just pass arguments to PrintReport? 
What if it's using im multithreading mode, when Docs come ech time while the processor maybe is still busy in printing?
Thanks you!
Роберт
Top achievements
Rank 1
 answered on 10 Dec 2014
10 answers
323 views
Hi...

I've added a radtheme manager to my form loading themes from a file, but when i redistrubute my application, the path gets "hardcoded" to the project with my original folder path. Is there a way to reference to a project file or folder?

thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Dec 2014
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?