Telerik Forums
UI for WinForms Forum
1 answer
176 views

Hi,

I have designed a form in windows 7 using telerik  winform ,it looks good on windows 7 but when I run the application on windows xp it is not displaying properly , it looks it is not fitting the screen resolution controls(buttons,textfield,labels) are cutting and I can't see full form . please advise how to handle it ? 

I tested for same resoltion on both windows 7 and windows xp 


Regards 

Ivan Todorov
Telerik team
 answered on 06 Jun 2012
1 answer
103 views
Hi!

I have a question: how can I bind a list of custom objects to a radgridview, where each custom object itself contains a list of custom objects.

Here is an example to get a clearer:
===========================

Custom Objects:

public class ArticleData()
{
    public string MonthName { get; set; }
    public decimal MonthValue { get; set; }
}

public class Article()
{
    public string ArticleNo { get; set; )
    public string ArticleName { get; set; )

    public List<ArticleData> ArticleDetails();

    public Article()
    {
        ArticleDetails = new List<ArticleData>();
    }
}

Filling with test data:

List<Article> ArticleList = new List<Article>();

Article a = new Article();
a.ArticleNo = "1000";
a.ArticleName = "Testarticle 1000";
a.ArticleDetails.add(new ArticleData { MonthName = "January", MonatValue = 10 });
a.ArticleDetails.add(new ArticleData { MonthName = "February", MonatValue = 5 });
...
ArticleList.add(a);

Article b = new Article();
b.ArticleNo = "2000";
b.ArticleName = "Testarticle 2000";
b.ArticleDetails.add(new ArticleData { MonthName = "January", MonatValue = 6 });
b.ArticleDetails.add(new ArticleData { MonthName = "February", MonatValue = 3 });
...
ArticleList.add(b);

and so on ...


DataBinding to Grid:

Imagine, I have a grid, with 14 columns: the first two columns should represent ArticleNo and ArticleName. The other columns should represent 12 months of a year with each MonthValue.

GridViewTextColumn colArticleNo = new GridViewTextBoxColumn();
colArticleNo.FieldName = "ArticleNo";
radgridview1.columns.add(colArticleNo);

GridViewTextColumn colArticleName = new GridViewTextBoxColumn();
colArticleName.FieldName = "ArticleName";
radgridview1.columns.add(colArticleName);

GridViewDecimalColumn colJanuary = new GridViewDecimalColumn();
colJanuary.FieldName = "Article.ArticleDetails.MonthValue";

GridViewDecimalColumn colFebruary = new GridViewDecimalColumn();
colFebruary.FieldName = "Article.ArticleDetails.MonthValue";

radgridview1.DataSource = ArticleList;

How can I achieve, that for the January column, the ArticleDetails[0].MonthValue is bound, for the February column ArticleDetails[1].MonthValue ist bound and so on??

Kind regards

Michael
Ivan Todorov
Telerik team
 answered on 06 Jun 2012
1 answer
98 views
Hi, I have a radgridview and everything inside is readonly but in runtime when I press Ctrl+X or Ctrl+V it let me Cut or Paste in a cell.
How can I solve the problem?
I am pretty sure this is a bug.
Ivan Petrov
Telerik team
 answered on 06 Jun 2012
3 answers
237 views
Hi everyone,

I think that Telerik refers to a RadRibbonBarGroup as a "Chunk," which is contained in a RibbonTab.  I want to use contextual tabgroups as in the example: "RadRibbon/First Look" or something similar to "Windows 7 Paint".  I noticed that many "Chunks" occur in different tabs.

Is there a way to include a single chunk into multiple contextual / tab groups?  I have a color gallery with 30 buttons just like paint which I want to add to others tabs with minimal code. I also want to include a "Clipboard" chunk in several tabs.

What is the easiest way to do this?  Maybe you have a link that I didn't discover?

Thanks!



Nikolay
Telerik team
 answered on 05 Jun 2012
1 answer
95 views
I have a gridview with filter enabled. Some columns are Text and some columns are combobox based. If I click into a filtering cell for a column that is combobox based then I get an empty combobox for the filter. I dont want a combobox to show up. I just want to be able to enter text into a textbox instead. How can I do this?
Nikolay
Telerik team
 answered on 05 Jun 2012
1 answer
106 views

I'm trying to configure the track bar with a threshold value that is greater than the min and less than the max, the user can only go past the threshold value by holding the Control key will dragging the slider. I have tried resetting the value in the Scroll event, that didn’t prevent the slider from continuing or change the value; I reset the value in the ValueChanged event, this did not prevent the slider from continuing but it did reset the value back to the threshold once the mouse was lifted.


I was hoping to have a hard stop at the threshold, is this something that is possible?

Thanks

Ivan Todorov
Telerik team
 answered on 05 Jun 2012
2 answers
117 views
Hi,

Is it possible to set a maximum height on a subgrid and allow autohide scrolling in that subgrid?

Many thx!

Maarten
Maarten
Top achievements
Rank 1
 answered on 05 Jun 2012
7 answers
482 views
Hi,

We are using the Self Referencing grid to show hierachical data which only has one parent and is always one level deep.
For Instance:
    Parent
     => Child 1
     => Child 2
     => Child 3

For some users the number of children can reach 10 000 records. The load time for these users is really slow. Currently we are retrieving the data and binding it via the datasource to the grid.

grid.DataSource = listOfData;


grid.Relations.AddSelfReference(grid.MasterTemplate, "Id""ParentId");
grid.TableElement.ShowSelfReferenceLines = true;

But if we remove the self referencing code all data is loaded very fast (off course without the hierarchical structure). Is there a trick to increase the performance? For instance not using the datasource to bind the data?

Many thx!







Maarten
Top achievements
Rank 1
 answered on 05 Jun 2012
5 answers
233 views
The url below is my source code. The file name is 354709_CheckedGroupHeaderCellElement.zip
https://skydrive.live.com/redir?resid=DBDF9B2C2251D8AA!109

I created it base on 2 article below:
1. http://www.telerik.com/support/kb/winforms/gridview/add-check-uncheck-all-check-box-in-the-header-cell.aspx 
2. http://www.telerik.com/community/forums/winforms/gridview/adding-checkbox-to-the-group-header.aspx 

The problem now is:
1. After grouping, CheckBoxHeaderCell cannot work.
2. If I add code below in ValueChanged, CheckBoxHeaderCell is working but CustomGroupHeaderCell cannot work


Note: If you hide all the in ValueChanged, you can see customCell_MeCheckChanged is working perfectly on CustomGroupHeaderCell.


Please refer the video below.
http://www.youtube.com/watch?v=fqVY0bfEgJY

Another question:
How to get fast response? Because I have some topic does not get reply from telerik support.
My Unique Customer ID is: SU878455


How to control/manage in radGridView1_ValueChanged?


private void radGridView1_ValueChanged(object sender, EventArgs e)
        {
            if (sender.GetType().ToString() == "Telerik.WinControls.UI.GridViewCellInfo")
            {
                //MessageBox.Show(((GridViewCellInfo)sender).ColumnInfo.FieldName);
                if (bool.Parse(((GridViewCellInfo)sender).Value.ToString()))
                {
                    foreach (GridViewRowInfo dr in radGridView1.Rows)
                    {
                        dr.Cells[0].Value = true;
                    }
                }
                else if (!bool.Parse(((GridViewCellInfo)sender).Value.ToString()))
                {
                    foreach (GridViewRowInfo dr in radGridView1.Rows)
                    {
                        dr.Cells[0].Value = false;
                    }
                }
            }
        }

Svett
Telerik team
 answered on 05 Jun 2012
1 answer
80 views
Hi,

I want to make hierachical grid with object:

Class Toy
{
  public Guid Id {get; set;}
  public Guid ParentId {get; set;}
  public string Name {get; set;}
  public int Count {get; set;}
}


Objects:

ParentToy (id1, null, "Castle", 1)
ChildToy1 (id2, id1, "Knight", 10)
ChildToy2 (id3, id1, "Brick", 100)

I want to have in grid first row with ParentToy and only column "Name" visible.
In hierarchy for ParentToy I want to have two child toys with columns: "name", "count".

Is this possible?

Best regards
 Krzysztof
Jack
Telerik team
 answered on 05 Jun 2012
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?