Telerik Forums
UI for WinForms Forum
3 answers
136 views
Pinning is not working for gridview with ColumnGroupViewDefinition.It works perfectly fine for gridview with tableviewdefinition.
Is it because telerik is not supporting it.Is there any workaround for this.Please give me a solution for this.

Jack
Telerik team
 answered on 28 Dec 2010
4 answers
163 views
Hi All
I using this code for generete gridview master detail  but not work
any ideas?
thancks a lot

GridViewTemplate

 

 

childTemplate = CreateChildTemplate();
GridViewRelation relation = new GridViewRelation(this.gwSchemi.MasterTemplate, childTemplate);relation.ChildColumnNames.Add("XMLFLUSSI");
this.gwSchemi.Relations.Add(relation);
this.gwSchemi.DataSource = ManagerSchema.GetSchemi();
this.gwSchemi.Refresh();

 

 

 

private GridViewTemplate CreateChildTemplate(){
GridViewTemplate template = new GridViewTemplate();
template.AutoSizeColumnsMode =
GridViewAutoSizeColumnsMode.Fill;
template.AllowDeleteRow =
false;
template.AllowEditRow =
false;
template.AllowAddNewRow =
false;
template.ReadOnly =
true;
GridViewTextBoxColumn idColumn = new GridViewTextBoxColumn("id");
ridViewTextBoxColumn nomerColumn = new GridViewTextBoxColumn("nome");
GridViewCheckBoxColumn statoColumn = new GridViewCheckBoxColumn("stato");
GridViewTextBoxColumn tipoColumn = new GridViewTextBoxColumn("tipo");
template.Columns.AddRange(idColumn,nomerColumn,statoColumn,tipoColumn);
template.Columns[
"id"].IsVisible = false;
return template;
}

this is the definition of the two poco class

 

 

 

public class XMLSCHEMI{
public Guid id { get; set; }
public string nome { get; set; }
public string XMLSCHEMA { get; set; }
public List<XMLFLUSSI> XMLFLUSSI { get; set; }
}

 

 

 

public class XMLFLUSSI{
public Guid id { get; set; }
public Guid id_xmlschemi { get; set; }
public string nome { get; set; }
public string f_origine { get; set; }
public string tab_destin { get; set; }
public Boolean stato { get; set; }
public string namepart { get; set; }
public Int32 length { get; set; }
public string extension { get; set; }
public string f_storico { get; set; }
public string f_errore { get; set; }
public string tipo { get; set; }
public XMLSCHEMI XMLSCHEMI { get; set; }
}

 

marco
Top achievements
Rank 1
 answered on 28 Dec 2010
6 answers
164 views
Maybe I'm setting up the grid the wrong way but what I need to do is to constantly query some external files to build a grid. That isn't the issue per se as I've done that. But every time I rebuild the grid (which is around every 2 seconds) what ever row I had selected and where ever I had scrolled to in the list goes away and I go back to the top of the list.

Every two seconds a BuildGrid procedure is called where the data source is created and assigned to the grid.

Here is a portion of the BuildGrid that I'm referring to:

   Private Sub BuildGrid()
        Timer1.Stop()
        Dim completedJobSource As New BindingSource
        While not done
              completedJobSource.Add(New CompletedJobs(strGUID, strJobName, strJobDescription, priority))
         end while

    RadGridView_Completed.DataSource = completedJobSource
   Timer.Start

Could it be that the data source is always being created here? It is possible that some of the data rows might not be there the next time which isn't a big deal but I just don't like that the scrolling keeps going to the top. It would also be great to keep the current row selected whatever it was whether the data in it changed or not.

Thanks,

Tim

Tim
Top achievements
Rank 1
 answered on 27 Dec 2010
4 answers
194 views
Hi

I have a special requirement where all the cells of a particular column can have a different datatype (thus a different editor).

I was able to put dates, strings and numbers but I have a problem with combo. My combo has a ID and a description (showing the description). I have been able to display the combo but I haven't been able to retreive the selected item from the combo. Also, my combo is only filled when the editor is required (CellBeginEdit) which means that the description is not shown as long as I don't edit that cell.

Do you have an example that would be good for me?
Julian Benkov
Telerik team
 answered on 27 Dec 2010
1 answer
188 views

Hi,

I'm facing a problem with creating customized theme.

I don't have time to start from scratch so I based on Windows 7 Theme.

I'd like to make all rows same color by default - now it's look more or less like 'zebra', first is white second gray and so on ....

Could you please describe me how to change it using Visual Style Builder?

Regards.

Dobry Zranchev
Telerik team
 answered on 27 Dec 2010
4 answers
147 views

1. i have tree with about 4 levels
the first level i get from server code and the other
by webservice.

in the begining i just recieve
the first level
i know from advanced what is their checked property
some are:

  • 0 - Unchecked
  • 1 - Checked
  • 2 - Indeterminate
  • how can i set these values by code ,when the component can't make it itself
    , because it doesn't have childs yet (until i click on some of the first level and recive by webservice their childs. the second level)

    2. one more problem is that tri state doesn't work properly. example: one of the three childs isn't checked, the father of it, the second level is Indeterminate but the first level is Checked  instead of Indeterminate 

    Julian Benkov
    Telerik team
     answered on 27 Dec 2010
    1 answer
    307 views
    I want, when RadMaskedTextBox is clicked to position cursor at the beginning.
    Right not it is at the end of my decimal number so I can not type my number but need to do one more click to go to the begining (left) and then typing value...

    I tried this, but didn't help me.

    myNumber.SelectionStart = 0;

    Regards
    Matjaž
    Dobry Zranchev
    Telerik team
     answered on 27 Dec 2010
    2 answers
    201 views
    I'd like to know how to define a min and max date range for the scheduler. I'm in timeline view. Currently, my scheduler goes to a max of 31-dec-2010 by default. I'd like to customize that. Also, I'd like to know if there is a way to make the scheduler virtually infinite as the Silverlight Scheduler is.
    Dobry Zranchev
    Telerik team
     answered on 27 Dec 2010
    4 answers
    127 views
    I use RadControls for WinForms Q1 2009 SP1.
    The problem is that the aggregates are only updated when new items are added to my bindinglist, not when a property is just updated. I have tried different events, but no luck.

    RadGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
    RadGridView1.DataSource = myBindingList; // a BindingList<T> where T have INotifyPropertyChanged implemented
                

    GridViewSummaryRowItem summaryRow = new GridViewSummaryRowItem();
    summaryRow.Add(new GridViewSummaryItem("Fiskeslag", "SUM:", GridAggregateFunction.None));
    summaryRow.Add(new GridViewSummaryItem("AntReg", "{0}", GridAggregateFunction.Sum));
    summaryRow.Add(new GridViewSummaryItem("NettoVekt", "{0}", GridAggregateFunction.Sum));
    summaryRow.Add(new GridViewSummaryItem("AntSlipp", "{0}", GridAggregateFunction.Sum));
    RadGridView1.MasterGridViewTemplate.SummaryRowsBottom.Add(summaryRow);


    When I change a property on my class (T) and call OnPropertyChanged the GridView is updated with the correct values, but the summaryrow is not. It is only updated when I do myBindingList.Add(T)
    Alexander
    Telerik team
     answered on 27 Dec 2010
    2 answers
    122 views
    Hi,
        I have the gridview and have allowed the user to add new row. When i add all the data and click on any one of the cloumn header instead of hitting enter, i get "Object reference not set to the instance of the object." .How should i solve this issue?


    With regards,
    S. Surendar
    Julian Benkov
    Telerik team
     answered on 27 Dec 2010
    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
    CheckedDropDownList
    ProgressBar
    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
    NavigationView
    VirtualKeyboard
    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?