Telerik Forums
UI for WinForms Forum
2 answers
148 views
I am using sql server database.
1. It is a self referencing database created as per Binding to Self Referencing Data in help document
2.Table definition is given below.
CREATE TABLE [dbo].[Node] (
[ID] INT IDENTITY (1, 1) NOT NULL,
[ParentID] INT NULL,
[Name] TEXT NULL,
[Note] TEXT NULL,
PRIMARY KEY CLUSTERED ([ID] ASC)
);

3.code binded as folws
this.radTreeView1.DisplayMember = "Name";
this.radTreeView1.ParentMember = "ParentID";
this.radTreeView1.ChildMember = "ID";
this.radTreeView1.ValueMember = "ID";
radTreeView2.TreeViewElement.EditMode =TreeNodeEditMode.Text;

4.Error occurs in these case.Run project and select first root node rename it ,object reference not set to an instance of object error
5.if i rename any other node and rename first root node error will not occur.Did i done any thing wrong ?






Anoop
Top achievements
Rank 1
 answered on 29 Dec 2012
14 answers
400 views
Self Reference Hierarchy only seems to work on MasterTemplate.  I would like to have the following hierarchy:
Group
> Category
   > Category
      > Product
Where category can have any number of levels.  If I make MasterTemplate the categories and then AddSelfReference, it works fine, but if I have groups at the MasterTemplate level and then have a CategoryTemplate and AddSelfReference I only get one level of categories.

GroupCategory relation is Group.id = Category.groupId

I have tried this:
this.radGridView1.Relations.AddSelfReference(this.CategoryTemplate, "id", "parentId");
and
this.radGridView1.Relations.AddSelfReference(this.radGridView1.Templates[0], "id", "parentId");
and these both show only one level of categories.

With categories at the root (MasterTemplate) this works:
this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "id", "parentId");
I get several levels of categories.
Boryana
Telerik team
 answered on 28 Dec 2012
3 answers
131 views
Hi:

I'm trying to use the ListControl. I have two on my form and I use the DragDropManager to join them. However, it seems that I am unable to get any of the events associated with drag and drop to fire. I've created them using the properties list and everything in code is correct. Yet if I put a break point in the dragdrop event, it never gets there. (allow dragdrop is set to true).

Anyone know what gives ?

Thanks,
Ken
Jack
Telerik team
 answered on 28 Dec 2012
2 answers
149 views
I have a custom Appointment dialog because the one I use is very different from the default. I'm interrupting the default dialog by using e.cancel in RadScheduler1_AppointmentEditDialogShowing, and then displaying my custom form. This works great for new appointments but I need it to populate existing appointments when they are selected in the calendar. How can I retrieve the SQL ID of the appointment being selected? I need to pass this value to my custom form.


Boryana
Telerik team
 answered on 28 Dec 2012
4 answers
168 views
Hello,

I would like to use the functionality of the RadTextBox and SpellChecker, but I also need to use my framework's databinding interface. So I created a subclass of the RadTextBox control and implemented the interface for binding.

public partial class SFRadTextBox : RadTextBox, IBusinessBindable

After calling spellChecker1.Check(sfRadTextBox1) I get the following error:

NotSupportedException
  No spell check for GKGInc.i2Catalog.Controls.SFRadTextBox is not supported.
   You should implement IControlSpellChecker interface.
 
Source     : MicroFour StrataFrame Business
 
Stack Trace:
   at Telerik.WinControls.UI.RadSpellChecker.Check(Control editControl)

Why isn't it picking up on the fact that the base class has the IControlSpellChecker interface implemented arleady?
Can someone please tell me what I'm doing wrong here and what I should be doing to get this working.

Thank You,
Govinda
Stefan
Telerik team
 answered on 28 Dec 2012
7 answers
166 views
Hello

In a Gridview, is there a way to use the same kind of tool than ".IsOdd", but applied to a particular cell's data? In short, I want the row color to change everytime the value in a particular column changes. Said columns happens to be my "ORDER BY" column.

private void radGridUsagers_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
    e.CellElement.DrawFill = true;
    e.CellElement.GradientStyle = GradientStyles.Solid;
    if (e.CellElement.ColumnInfo.ReadOnly)
    {
        if (e.CellElement.RowElement.IsOdd)
            e.CellElement.BackColor = clsColor.ReadOnlyOdd();
        else
            e.CellElement.BackColor = clsColor.ReadOnlyEven();
     }
     else
     {
         if (e.CellElement.RowElement.IsOdd)
             e.CellElement.BackColor = clsColor.WritableOdd();
         else
             e.CellElement.BackColor = clsColor.WritableEven();
     }
}
Stefan
Telerik team
 answered on 28 Dec 2012
4 answers
146 views
You had provided the Programatically mapping in scheduler help.But i want to create scdulerdatdataset, apointmentsBindingsource,apointmenttableadpet etc using code not but design form
Is it possible.My application need to create a database then save the scheduler data to the newly created database and save .Each time i want the user to determine database name& location.If some part is done in design it is not possible.Any way?
Anoop
Top achievements
Rank 1
 answered on 28 Dec 2012
5 answers
461 views
I am making important chanages to a vs 2010 app.

I used the upgade wizard fo winforms and ajax

now..............
I cannot find Telerik.WinControls.UI.RadComboBoxElement

Please tell me where it is. I've spent 2 days trying to find it and have searched
the web.  I have to have my portion of the project complete by Thursday... Job at stake

Isaac
Stefan
Telerik team
 answered on 28 Dec 2012
2 answers
580 views
Hi,I am using RadGridView to show some data,anyone has any idea about how  to add a column of sequence number like this:
#,col1,col2,col3
1,v1_1,v1_2,v1_3
2,v2_1,v2_2,v2_3
3,v3_1,v3_2,v3_3
...
the # column have no much meaning,just show the sequence number of current row in the grid..
and I want the # column fixed no matter which column is the sort column..
thx.
phil huang
Top achievements
Rank 1
 answered on 28 Dec 2012
1 answer
124 views
Hello Telerik radgridview team,
i am developing a solution in which user uploads some .txt file to radgridview, can any one help me how to achieve this
i have radgridview control, and i want to assign .txt file fields to datagridview
Plamen
Telerik team
 answered on 27 Dec 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)
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?