Telerik Forums
UI for WinForms Forum
1 answer
108 views
Hi I am using the Gridview, to display some data. I have a tax filing status column, which I am giving it the values of the combo box from an enumeration, like the following. 


(gridViewTemplateTaxData.Columns["FilingStatus"] as GridViewComboBoxColumn).DataSource = Enum.GetNames(typeof(TaxFilingStatus));

When I the user changes the value in the combo box, I change the bound data of the grid. Then I refresh the templates of the grid. 
Some of the time this works fine, but often enough, I get the following exception. 

Object reference not set to an instance of an object. 

Telerik.WinControls.UI.GridComboBoxCellElement.SetContent().  I walked through the code that I have in the cell value changed, and there is no issues there. Am I using the ComboBoxColumn wrong ? 

- Erion
Emanuel Varga
Top achievements
Rank 1
 answered on 09 Sep 2011
2 answers
110 views
Hi,

  I'd like know how to do set a icon on GridViewCommand?
Example attached!

Thanks attention!
Flávio
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
103 views
Hello, Happy Holidays!

I  have a variable SelectedIndex that is bound to the index of the "clicked" row. I use SelectedIndex like this: radGridView1.Rows[0].ChildRows[SelectedIndex].IsCurrent = true; but this doesn´t work, it highlights the first row. If I use radGridView1.Rows[0].ChildRows[1].IsCurrent = true; for example it works! anyone can give me an idea?

thanks in advance,
Michael
Alexander
Telerik team
 answered on 08 Sep 2011
4 answers
181 views
hey,
i'm using the multicolum combobox with html tags in values.
The list is beautiful but my problem is that when i select a bold string in my list for example, i see "<html><b>My value</b>" in the selectedvalue.
An idea ? thanks :)
Peter
Telerik team
 answered on 08 Sep 2011
3 answers
173 views

Hello,

 

I have one problem that makes me crazy. Can anyone help?

 

Problem:

I have a tree structure that I wanted to bind to RadGridView, something like this:

 

public interface IGridViewZadanka

{

    Odbornost Odbornost { get; }

    int IDZad { get; }

    string ZadankaInfo { get; }

    IEnumerable<IGridViewMetoda> MetodyView { get; }

}

 

public interface IGridViewMetoda

{

    string Test { get; }

    string Izolace { get; }

    string Postup { get; }

    string P { get; }

    string Zadani { get; }

    string Odecet { get; }

    string Vysledek { get; }

    string Stav { get; }

    bool Tisk { get; }

    string V { get; }

    string Popisek { get; }

    int IDZad { get; }

    int IDZadMet { get; }

    int? IDParent { get; }
    
Odbornost Odbornost { get; }

}

 

I want to bind this structure to two-level hierarchy grid with one feature: second level will contain 2 (or more in future) tables that depend on field Odbornost (detail table for Odbornost are slightly different – for Odbornost MB would be nice to use self-referenced hierarchy, but for Odbornost TS would be nice to use only flat view of data) and only one corresponding detail will be visible.

 

For example:

+ (IGridViewZadanka) IDZad=1, Odbornost=TS,…

   - (IGridViewMetoda) IDZad=1, Odbornost=TS,…

   - (IGridViewMetoda) IDZad=1, Odbornost=TS,…

+ (IGridViewZadanka) IDZad=1, Odbornost=MB,…

   + (IGridViewMetoda) IDZad=1, Odbornost=MB,…

      - (IGridViewMetoda) IDZad=1, Odbornost=MB,…

+ (IGridViewZadanka) IDZad=2, Odbornost=TS,…

   - (IGridViewMetoda) IDZad=2, Odbornost=TS,…

   - (IGridViewMetoda) IDZad=2, Odbornost=TS,…

 

 

From examples in http://mono.telerik.com/Grid/Examples/Hierarchy/TwoTablesAtLevel/DefaultCS.aspx and http://www.telerik.com/help/aspnet-ajax/grid-several-tables-at-level.html and http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/twotablesatlevel/defaultcs.aspx I know that this is possible, but I am unable to do it. Can anyone help me and provide me some example (in C# for win form)? I would appreciate it.

 

Misa

Julian Benkov
Telerik team
 answered on 08 Sep 2011
1 answer
126 views
I'm wonderingif Radscheduler supports Gant Chart.    Also, there is any way I can switch the hours of the day to horizontal instead of vertical?  I've included a screenshot of what I want to accomplish with scheduler. Also, this is for Winforms and not ASP.   Thank you in advanced

Regards,

Jose
Stefan
Telerik team
 answered on 08 Sep 2011
3 answers
316 views
4 answers
169 views
I want to insert update delete use Radgridview API.

I use automatic



[img]http://i1143.photobucket.com/albums/n637/new_adm/rad.png[/img]

And it can load my data.
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad4.png[/img]
But when I insert update delete ,it not effect to SQL.Every is not change.
[img]http://i1143.photobucket.com/albums/n637/new_adm/rad3.png[/img]
and this is my CS code:
private void Form1_Load(object sender, EventArgs e)
       {
           // TODO: This line of code loads data into the 'doanvienDataSet.doanvien' table. You can move, or remove it, as needed.
           this.doanvienTableAdapter.Fill(this.doanvienDataSet.doanvien);
            
            
 
       }

and I insert more code in RowChange event like that.It's can update and delete but it can't insert
private void radGridView1_RowsChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
        {
                 
                this.doanvienTableAdapter.Update(this.doanvienDataSet.doanvien);
                 
             
        }


When i insert it will have a fail:
There is already an open DataReader associated with this Command which must be closed first.



I don't know how to close this Command.please help me.thank you very very much!
Julian Benkov
Telerik team
 answered on 08 Sep 2011
5 answers
211 views
My company has assigned me the task of updating one of our older programs by adding a Rich Text Editor into one of the comment fields. In order to achieve this with our Q3 2009 Telerik controls, I created a button that opens a RadMarkupEditor dialog.

My only concern is -- how can I change the title of the dialog?
Jack
Telerik team
 answered on 08 Sep 2011
1 answer
110 views

Dear Telerik team,hi:

Inquire dock about several questions
Such as the figure shelf.

How to plant Form from two " Appoint "  In DocumentWindow page to this area
1.MDI_ChartForm1 "appoint" to DocumentWindow1
2.MDI_DataGridViewForm1 "appoint" to DocumentWindow2 
and
3.After increasing the two window newly, how to set up DocumentWindow1/2 DocumentButtons =>ActiveWindowList
4.In MDI mode, increases a page newly to sign each time, how could let this page signed for being main and (obvious)
and
5.How to click to sign in DocumentWindow1 page, publish DocumentWindow2 excellently at the same time,
They move ahead simultaneously

It doesn't explain this to already see Example code and Dock contents

No matter any answer, thank you very much
Thank Telerik for Telerik's demo code, it is a very good tool, arduous, thanks.

Julian Benkov
Telerik team
 answered on 08 Sep 2011
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?