Telerik Forums
UI for WinForms Forum
1 answer
256 views
Hi
Would you help me, how I can bind Form Grid image column with resource situated in file directory. In database i save only image path and name

Thanks

Nikolay
Telerik team
 answered on 16 Nov 2009
3 answers
181 views
Hi,
I found some issue. I am using BindingList bounded to RadGridView.
Using memorystream to save and restoree layout of grid.

Problem is that when i am using grid.LoadLayout(ms); layout is loading well but there is some problem with groups
Look at 2 pictures
11.png - after LoadLayout
12.png - after group header click ( status )
When i change sorting groups are displayed well.

Using nevest telerik Q3

Regards
Zbyslaw Kanik
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
185 views

I have a DockPanel docked to the right in a docking manager.

The DockPanel is AutoHide. When I move the cursor to it and it is opened, the width is very large. Is there a way to set this width?

If I dock the DockPanel the width is what I've set the DockPanel.Size = new Size( width, height) to be.

Regards, Jill-Connie Lorentsen

Nikolay
Telerik team
 answered on 13 Nov 2009
1 answer
100 views
Hello,

My test app, is a WinForm application:

I have a column in a DataTable named "my]field". I also have a RadGridView with the "EnableFiltering" property set to "True". I assign my DataTable to the DataSource of the RadGridView. At runtime, when I attempt to set a filter on this column, I get this error: "Syntax error: Missing operand after 'field' operator."

Any ideas how I can have a "]" character in a column name and the filtering still works?

Thanks,
-Gary
Julian Benkov
Telerik team
 answered on 13 Nov 2009
3 answers
145 views
Hello,

We have a project using Q2 SP1. There is a grid with an unbound checkbox in one form. If the data is less than a page, the checkbox column works like a charm. If the data is more than a page, any selection of the checkbox column in the 2nd page and beyond will case the grid scrolls back to page 1. Is there any quick fix for this? Thanks in advance.

BR/shortie
Jack
Telerik team
 answered on 13 Nov 2009
6 answers
410 views
Hi,

I want to have a grid with a combo box column, but for each row, I want to apply different DataSource in the combo cox. The values in the combo box are depending on another column value for each row.

I can't use the MasterGridViewTemplate, because it's applying the SAME datasource for each row, so what should I do?
Nikolay
Telerik team
 answered on 13 Nov 2009
3 answers
228 views
Hi, I'm currently trying the charting component in my winform application. (version 2009.1.9.316)
Now I've got just a treeview and a chart component on my winform.
when I click on a treenode the chart view is loaded with the data, everything works fine.
now as long as my treeview isn't reloaded the chart loads the data, but when in my main form is triggered to reload the treeview and I click a treenode, my program crashes. with the following exception:

general exception:    at Telerik.Charting.Chart.GetException(RenderEngine renderEngine, Exception ex)
   at Telerik.Charting.Chart.GetImage(Int32 width, Int32 height)
   at Telerik.Charting.Chart.GetImage()
   at Telerik.WinControls.UI.RadChart.GetImage()
   at Telerik.WinControls.UI.RadChart.OnPaint(PaintEventArgs e)
  
in the innerexception I'm reading system.nullreferenceexception
   at Telerik.Charting.ChartSeriesItem.set_Parent(ChartSeries value)
   at Telerik.Charting.ChartSeriesItem.Clone()
   at Telerik.Charting.ChartSeries.CopyItems(ChartSeries originalSeries)
   at Telerik.Charting.ChartSeries.CloneSeries()
   at Telerik.Charting.RenderEngine.InitializeChartElements()
   at Telerik.Charting.Chart.GetImage(Int32 width, Int32 height)

how is this possible? I didn't found anything bizar in my code. I added a try catch around the code that fills the chart, but the error isn't triggered here, but in my main try catch of my program.

my code:

public partial class HistoricData : Form 
    { 
        public IOController TheIO { getset; } 
 
        public HistoricData() 
        { 
            InitializeComponent(); 
             
        } 
 
        public void FillData(List<ChartHistoric> days, string title) 
        { 
            try 
            { 
                rchrtHistoricData.DataSource = days; 
                rchrtHistoricData.ChartTitle.TextBlock.Text = title; 
                rchrtHistoricData.PlotArea.XAxis.DataLabelsColumn = "Month"
                rchrtHistoricData.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -45; 
                rchrtHistoricData.DataBind();     
            }catch(Exception ex) 
            { 
                Logging.Log.LogMessageToFile("HistoricData.cs -> FillData(List<ChartHistoric> days): " + ex.Message + ex.StackTrace); 
            } 
             
        } 
 
        public void FillTreeView(TreeNode overview) 
        { 
            trvMonths.Nodes.Clear(); 
            trvMonths.Nodes.Add(overview); 
        } 
 
        public void ClearChart() 
        { 
            rchrtHistoricData.DataSource = new List<ChartHistoric>();  
            rchrtHistoricData.DataBind(); 
        } 
 
        private void trvMonths_AfterSelect(object sender, TreeViewEventArgs e) 
        { 
            if(trvMonths.SelectedNode == nullreturn
 
            //ClearChart(); 
 
            //get the selected historic data for this month or whole year. 
            //data for the whole year 
            if(trvMonths.SelectedNode.Tag.Equals("1")) 
            { 
                FillData(TheIO.GetDataChartHistoricYear(), "Month view"); 
            } 
 
            if(trvMonths.SelectedNode.Tag.Equals("2")) 
            { 
                FillData(TheIO.GetDataChartHistoricMonth(trvMonths.SelectedNode.Text), "Week view"); 
            } 
        } 
    }



The function TheIO.GetDataChartHistoricMonth or TheIO.GetDataChartHIstoricYear are returning a list of ChartHistoric

public class ChartHistoric 
    { 
        public ChartHistoric(string _month, int _days) 
        { 
            month = _month; 
            days = _days; 
        } 
        private string month; 
        public string Month 
        { 
            get { return month; } 
            set { month = value; } 
        } 
        private int days; 
        public int Days 
        { 
            get { return days; } 
            set { days = value; } 
        } 
    } 

Thanks a lot

gerbrand
Top achievements
Rank 2
 answered on 13 Nov 2009
9 answers
341 views
What is the best way to have multiple column heading rows but only single data rows?  For example:

+----------+-----------------------------+  
|  Item    |           Service           |  
|          +-----------------------------+  
|          |   Qty    |   Description    |  
+----------+-----------------------------+  
|  Oil     |     4    |    Quarts        |  
+----------+-----------------------------+ 

I don't have a data column for Service, for example. That is just a way to show the user how the Qty & Desc columns are grouped. I tried the ColumnGroupView but did not see a way to create the sample above since the Item column seems to need a parent group.

When I try the HTMLView apparently I need to add unbound columns to the grid or else I cannot format the headings. Specifically this line of code fails if I do not add dummy columns for the extra group (like Service above):

GridTableHeaderRowElement

 

header = (grid.GridElement as GridTableElement).TableBodyElement.Children[0] as GridTableHeaderRowElement;

 

 

 

 

 

The Children collection is empty.  If I DO add dummy columns to the grid to make the headings work then my data rows have mutiple rows. In the example above, a text box appears in a row above the 4 and Quarts columns representing Service which we don't want.

Anyway please let me know if I'm missing something obvious to make this work.

Jack
Telerik team
 answered on 12 Nov 2009
5 answers
399 views
Hi there,

I was hoping you could shed some light on how I could add an image to a Command Column.  Currently my command column contains a button... but I would like it to contain a nice little edit image instead.

Any ideas, or sample code?

Thanks for you help.

Jon
Jack
Telerik team
 answered on 12 Nov 2009
1 answer
120 views
Hi Telerik

We have the same problem as "PunjabiSingh", but different at some point

Our problem as below:

We try  to use "Hierarchy (Master-Detail Layout) with Tabbed Child View" to list all the information in one folder (including sub-folders and files). If there is more files under sub-folder, we can use "+" to explore this folder. (It is greate). If there is nothing in sub-folder, we also get a blank grid which the coulum name the same as others. But I think it shouldn't appear "+" at the right of the folder which don't have files in it.

Do you have any other control to avoid this problem?

Best Regrads
Jack
Telerik team
 answered on 12 Nov 2009
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?