Telerik Forums
UI for WinForms Forum
5 answers
807 views

Hello,
I have a scenario, where i need some help of you guys.

In this sample application i have created 1 Enum with short datatype.
Also, Enum is flagged enum.
[Flags]
public enum MyType : short
{
    None = 0,
    NseFO = 1,
    BseFO = 2,
    NseCM = 4,
    BseCM = 8,
    NseCD = 16,
    Use = 32,
}

Now i have created below code for generate output as shown in picture attached here.

private void Form1_Load( object sender, EventArgs e )
{
    //DataColumn dt =new DataColumn("Value",typeof (Test));
    //dt.DataType = typeof (Test);
    //dttemp.Columns.Add(dt);
    dttemp1.Columns.Add("ID",typeof(int));
    dttemp1.Columns.Add( "Value", typeof( int ) );
 
    //DataColumn dt = dttemp.Columns["Value"];
    //dt.DataType = typeof (Test);
    ////dttemp.Columns.Add(dt);
 
    dttemp1.Rows.Add(0, 0);
    dttemp1.Rows.Add( 1, 1 );
    dttemp1.Rows.Add( 2, 2 );
    dttemp1.Rows.Add( 3, 3 );
    dttemp1.Rows.Add( 4, 4 );
    dttemp1.Rows.Add( 5, 5 );
 
    temp2 = dttemp1.Clone();
    DataColumn dcolumn = temp2.Columns["Value"];
    dcolumn.DataType = typeof( ExchangeType );
 
    DataTable dtfinal = temp2.Clone();
    foreach( DataRow row in dttemp1.Rows )
    {
        temp2.Rows.Add( row.ItemArray );
    }
 
    DataView filter = new DataView(temp2);
 
    dataGridView1.DataSource = filter;
 
    c1Flex1Grid.DataSource = filter;
 
    radGridView2.DataSource = filter;
}

There is no other event handled here for any other grids.

This simple code producing different out put as shown.

Can you tell me how can i get same output in telerikgridview??????
Svett
Telerik team
 answered on 15 Apr 2011
1 answer
96 views
Hi
i couldn't  find my previous post with the same title ... sorry if im reposting it .... but i did a search and didn't find it

im trying to use office 97 them form with my project .. i dont had any tools to put in the ribbons tho . im just trying to use the ribbon tabs and its tab area as a first stage of data navigation. i.e: select tab-project/select project(checkbotton or radpageview tabs) then select further categories and sort option outside the ribbonbar

projects should be added according to data entries and therefore i need to add either radpageview with tab for each project or radbutton which should act as check button
is their a way to add  such raditems to ribontab? can they be docked their?.

note: i thought of using one ribbon group with button for each data entry but the buttons and the raibbongroud dont seem to be fittable inside the available area.

any thoughts will be appreciated.

thx and sorry for reposting 

  
Stefan
Telerik team
 answered on 14 Apr 2011
1 answer
109 views
Hi:
I found that after setting CurrentViewColumn  and CurrentViewRow ,the navigation bar is appered even the property  'Showheader' is false.
calendar.CurrentViewColumn = colForCurrentDate;
calendar.CurrentViewRow = rowForCurrentDate;


any help, thanks advance!
Ivan Todorov
Telerik team
 answered on 14 Apr 2011
3 answers
151 views
How can I cancel the appointment dragging once its started?  For example by pressing the escape key.
Ivan Todorov
Telerik team
 answered on 14 Apr 2011
1 answer
148 views
Hello,

I'm creating an windows forms application (VS 2010), with a custom theme for a tabcontrol. I've created a theme with the thembuilder and in designmode, the theme is loaded correctly, but in runtime my tabcontrol is white and black, without layout.

I've added a radThemeManager and added the them (xml) as resource to my project. I've loaded the theme in my thememanager, but still it won't work.

It's just like the theme is not loaded... Are there any suggestions?

Tnx!
Geert
Top achievements
Rank 1
 answered on 14 Apr 2011
8 answers
175 views
This is crazy.

A simple form, with one control, a radtreeview, opens a data table and attempts to bind it to the control. 

Public Class frmTree2
    Private cmdTemp As New OracleCommand
    Private dvTemp As DataView
    Private dtTemp As New DataTable
    Private daTemp As OracleDataAdapter

    Private Sub frmTree2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        With cmdTemp
            .CommandType = CommandType.StoredProcedure
            .Connection = db.oraCn
            .CommandText = "badgernet.web_read_util.group_tree_dept"
            .Parameters.Clear()
            .Parameters.Add("out_rs", OracleDbType.RefCursor, DBNull.Value, ParameterDirection.Output)
        End With
        daTemp = New OracleDataAdapter(cmdTemp)
        dtTemp.Clear()
        daTemp.Fill(dtTemp)
        Me.RadTreeView1.DataSource = dtTemp
        Me.RadTreeView1.DisplayMember = "group_name"
        Me.RadTreeView1.ParentIDMember = "p_id"
        Me.RadTreeView1.DataMember = "g_id"
        Me.RadTreeView1.ValueMember = "id"
    End Sub
End Class


That's the whole form.

Table contents
id     g_id  p_id   group_name

500    10    -1     Athletic Dept
780    780    10    May, Keith
141    141    10    Chelesvig, Bart
142    142    10    Clark, Christopher

It will display the name field, but no hierarchy - if I comment out the valuemember line. If I leave that in there I get an "InvalidCastException" - Unable to cast object of type 'System.Windows.Forms.RelatedPropertyManager' to type 'System.Windows.Forms.CurrencyManager'.

I took this code right out of your (so-called) documentation, but it doesn't even come close to working. Any help would be greatly appreciated.

Later
Art
Jack
Telerik team
 answered on 14 Apr 2011
1 answer
315 views
Hello, all

I want the behavior of Tree nodes renaming same as behavior of renaming files and folders in Windows Explorer:
When user press F2 or select node and after a few seconds click node text node starts edit mode.
When user double click on the node I need to open according document. No renaming on node double click.
Could you help me?

Best regards,
Andrew Shyliuk
Stefan
Telerik team
 answered on 14 Apr 2011
4 answers
164 views
Hi,

                  I have made used of PageView outlook mode in that can i have the autohide option for the outlook view .If yes how can i do it or is there any property for this please can anyone tell me about this.....









Thanks
Divya
Ivan Petrov
Telerik team
 answered on 14 Apr 2011
2 answers
151 views
It seems that there is a bug in the Telerik Grid Control.

I have a database that contains a
1 - numerical field - integer
2 - memo field - contents of the field are in Arabic
3 - memo field - contents of the field are in English

I set up the grid with all columns displayed 

When RTL is set to True
The grid displays with the Arabic correctly displayed, but the English is incorrectly displayed.  Scrollbar appears on the Left.

When RTL is set to False
The grid displayed with the English correctly displayed, but the Arabic incorrectly displayed.  Scrollbar appears on the Right.


It is not a choice for me to display either the English only or the Arabic only - I need to display both at the same time.  Does anybody have any possible solution?

I would also like the ability to choose the side I would like to place my scrollbar - on the left of the grid or the right.

This is a realworld situation and desperately need some help.
Are there any alternative products that would help achieve this?

Many thanks




Ahmuser
Top achievements
Rank 1
 answered on 13 Apr 2011
1 answer
132 views
3 questions

1. Why can I not simply set the datasource for the load-on-demand child grid. As opposed to needing
to build each grid row from the corresponding datarow.

In the code below I'd like to simply set the datasource as in the second line of code. But I have to
build each row as in the remaining lines of code. Why can't I simply use the datasource?

2. I specify each column in the columns collection editor (same as ".Cells" below) of the grid's first
template, things like Name, HeaderText and FieldName. If I remove Name in the columns collection editor,
the code below won't work. (FieldName doesn't seem to be needed.) So somehow this thing called
SourceCollection is connection to the template. What is the connection?

3. I'm trying to set the first item's (called DueDate) FormatString to {0:dd/MM/yyyy}. If I don't set it,
DueDate displays with hour/minute/second (which is zero). If I do set it in the collection editor,
same result. I can't seem to set it in code (in ".Cells"). How can I set FormatString?

--------------- code snippet from RowSourceNeeded below ----------------
Dim
dt As DataTable = .FillTable("usp_SelectPTA2_TicketAssignments")
'e.Template.DataSource = dt
''' why do I need the rest of this code?? '''
For Each dr As DataRow In dt.Rows
    Dim row As GridViewRowInfo = e.Template.Rows.NewRow
    With row
        .Cells("DueDate").Value = dr("TICKET_DUE_DATE")
        .Cells("AssignTo").Value = dr("AssignedTo")
        .Cells("Reason").Value = dr("TICKET_DUE_DATE_CHANGE_REASON")
        .Cells("Notes").Value = dr("TICKET_ASSIGMENT_NOTES")
        .Cells("AssignedBy").Value = dr("AssignedBy")
        .Cells("AssignedDate").Value = dr("TICKET_ASSIGNED_TO_DATETIME")
    End With
    e.SourceCollection.Add(row)
Next
Julian Benkov
Telerik team
 answered on 13 Apr 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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?