Telerik Forums
UI for WinForms Forum
1 answer
75 views

Hello,

For a developpment in my company, I need to print a list of data document by date with new header and new grid when there is new date

It's important : No need grouping

When I'm printing a test page, First Page is OK but not next page, There is header of grid but not data of grid by date

No bug in my code, just no data in printing preview

Printing Page 1

Printing Page 3

See my demo test project in file-attach => button of test is right-top (small button)

Link of downloading : TelerikWinFormsApp1

Do you know this issue ?

if yes, how solve it ?

Hristo
Telerik team
 answered on 13 Apr 2017
1 answer
293 views

Hi There,

I have a trackbar on which a number of (slow) actions are performed after the value has changed/changes. 

Now, the value_changed event is fired even if I have my mouse down. Is there a possibility that the actual value changes áfter I release my mousebutton so the trackbar responds much quicker.

 

 

Kind regards

Victor

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Apr 2017
3 answers
279 views

Hello folks - I am attempting to make a project similar to the "theatre" demo that is part of the Winform Demos for Map / ESRI Shapefiles.  I have extracted all the code from the ExamplesCSVS2010 project file, and made a local copy of the theatre seating data.  It appears to be loading the ESRI files properly, I can inspect the map object and it appears to have all the objects in it, but I just do not SEE anything on my form.

 

Is there a working standalone example anywhere?  Everything I have found on the forums is for outdated Silverlight, nothing for winform.  Seems like everything is there, but just missing this piece.  Any ideas?  Happy to post my current project, etc.for review, if that helps at all.

Hristo
Telerik team
 answered on 13 Apr 2017
3 answers
285 views

I don't see an event for when a mouse-click occurs on a radPageViewStripItem. I need to know when a user clicks on this element regardless if the pageview has been changed. (see screenshot)

 

 

Gone2TheDogs
Top achievements
Rank 2
Iron
Veteran
 answered on 11 Apr 2017
2 answers
185 views
I have an Element that Inherits from LightVisualElement. In CreateChildElements I add three controls - StackLayoutPanel, Image and Label - however the Size is always 0 which causes problems in another controller where I try to stack several Elements together.

 

Why is the Size 0?

When is the Size initialized?

 
protected override void CreateChildElements()
        {
            base.CreateChildElements();
 
            mainPanel = new StackLayoutPanel();
            mainPanel.Orientation = System.Windows.Forms.Orientation.Horizontal;
 
            checkBox = new LightVisualElement();
            checkBox.DrawText = false;
            checkBox.ImageLayout = System.Windows.Forms.ImageLayout.Center;
            checkBox.ShouldHandleMouseInput = false;
            checkBox.NotifyParentOnMouseInput = true;
 
            mainPanel.Children.Add(checkBox);
 
            label = new RIOLabelElement();
            label.TextAlignment = ContentAlignment.TopCenter;
            label.Font = new System.Drawing.Font("Segoe UI", 8, FontStyle.Italic, GraphicsUnit.Point);
            label.ShouldHandleMouseInput = false;
            label.NotifyParentOnMouseInput = true;
            mainPanel.Children.Add(label);
             
            this.Children.Add(mainPanel);
        }
Hristo
Telerik team
 answered on 11 Apr 2017
1 answer
203 views

I am dynamically adding tabs to a pageview.  How can I add subtabs?

When I click on a tab, I need the tabs within the top tab to show. 

Here is the code I have.  The first set of tabs work.  Can't figure how to add child tabs

//create a tab for each line
DataTable dt = GetLines();
 
if (dt.Rows.Count > 0)
{
    foreach (DataRow row in dt.Rows)
    {
        RadPageViewPage newLine = new RadPageViewPage();
        newLine.Text = row["DEPARTMENT_DESCRIPTION"].ToString();
        pvMain.Pages.Add(newLine);
 
        //get the list of what runs on each line (by Department_id)
        DataTable dtLines = GetLineDepartments(Convert.ToInt16(row["DEPARTMENT_ID"].ToString()));
 
        if (dtLines.Rows.Count > 0)
        {
            foreach (DataRow rowDept in dtLines.Rows)
            {
                // add depts tabs to the line
                RadPageViewPage newDept = new RadPageViewPage();
                newDept.Text = rowDept["LINE_DESCRIPTION"].ToString();
                //newLine.Controls.Add(newDept);  //how do I add to the newline RadPageViewPage
                newLine.
            }
        }
    }
}
Hristo
Telerik team
 answered on 11 Apr 2017
11 answers
849 views

Hi

How I have to add new row on cell end edit. I have 10 columns in the gridview, after particular cell end edit and pressing tab key i should add a new row.

I tried ProcessTab Key and it is not working.

Please let me know how i can achieve this.

Thanks in advance.

Regards

Gopinath

 

 

 

 

 

Gopinath
Top achievements
Rank 1
 answered on 11 Apr 2017
2 answers
99 views

Hi is there a way to add buttons near a collapse button in ribbon bar (see picture for more detail)?

 

Thank you :)

Hristo
Telerik team
 answered on 10 Apr 2017
4 answers
257 views
Hello,

I have this annoying issue about the radscrollablepanel, what i do is inside the scrollablepanel  i put a radgridview on it.
When the gridview is populated the radscrollablepanel adjust and works well, but the issue is when you scroll at the middle or bottom part 
of gridview and click on row or cell. It automatically scrolls you up into the top instant and by that you cant edit something in rows which you have scrolled.
Is there any ways to stop the scrollablepanel in scrolling automatically?
Hristo
Telerik team
 answered on 10 Apr 2017
4 answers
1.9K+ views

Hi

I'm trying to save and load a RadDock layout to a database field using a MemoryStream but the code fails on loading the layout with error 'System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.'

I have very similar code to save and load layouts for RadDock and it works. Also I can save and load dock layouts if I use xml files but I don't want to use them.

I'm using Progress OpenEdge andthese are code snippets for saving and loading the layout.

METHOD PRIVATE VOID SaveDockLayout( ):
    DEF VAR l_MemoryStream AS System.IO.MemoryStream   NO-UNDO.
    DEF VAR l_UTF8Encoding AS System.Text.UTF8Encoding NO-UNDO.
    DEF VAR lc_char        AS LONGCHAR                 NO-UNDO.

    ASSIGN
        l_MemoryStream = NEW System.IO.MemoryStream()
        l_UTF8Encoding = NEW System.Text.UTF8Encoding()
        .
    radDock1:SaveToXml(l_MemoryStream).
    lc_char = l_UTF8Encoding:GetString(l_MemoryStream:ToArray()).
    COPY-LOB FROM lc_char TO tt_stored_layout.layout.

    l_MemoryStream:Close().
    l_MemoryStream = ?.
    DELETE OBJECT l_MemoryStream NO-ERROR.
    DELETE OBJECT l_UTF8Encoding NO-ERROR.

END METHOD.

METHOD PRIVATE VOID LoadDockLayout( ):
    DEF VAR l_MemoryStream AS System.IO.MemoryStream   NO-UNDO.
    DEF VAR l_UTF8Encoding AS System.Text.UTF8Encoding NO-UNDO.
    DEF VAR lc_char        AS LONGCHAR                 NO-UNDO.

    COPY-LOB FROM tt_stored_layout.layout TO lc_char.

    ASSIGN
        l_UTF8Encoding = NEW System.Text.UTF8Encoding()
        l_MemoryStream = NEW System.IO.MemoryStream(l_UTF8Encoding:GetBytes(lc_char), 0, l_UTF8Encoding:GetByteCount(lc_char))
        .
    radDock1:SuspendLayout().
    radDock1:LoadFromXml(l_MemoryStream).
    radDock1:ResumeLayout().

    l_MemoryStream:Close().
    l_MemoryStream = ?.
    DELETE OBJECT l_MemoryStream NO-ERROR.
    DELETE OBJECT l_UTF8Encoding NO-ERROR.

END METHOD.

Can you help or give me an example of using a method to save and load dock layouts withouth resorting to xml files?

Kind regards

Tung

Tung
Top achievements
Rank 1
 answered on 07 Apr 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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?