Telerik Forums
UI for WinForms Forum
1 answer
139 views
I am using the Radcontrol Windows Grid to bind data returned by a 'Select' query.
The piece of code is something like this:

            SqlDataReader dr = null;
            SqlConnection conn = null;
            try
            {
                this.radGridView1.MasterGridViewTemplate.AutoGenerateColumns = true;
                this.radGridView1.GridElement.BeginUpdate();
                DataSet ds = new System.Data.DataSet();
                string connectionString = ConfigurationManager.AppSettings["Conn"];
                conn = new SqlConnection(connectionString);
                SqlCommand cmd = new SqlCommand("SELECT * FROM Payment");
                cmd.Connection = conn;
                conn.Open();
               SqlDataAdapter da = new SqlDataAdapter();
                da.SelectCommand = cmd;
                da.Fill(ds);
                radGridView1.DataSource = ds.Tables[0].DefaultView;
             }
            catch (Exception ex)
            {
            }
            finally
            {
                conn.Close();
                dr.Dispose();
            }
Although the dataset is returning rows as a resultset, but when the grid loads, it displayes nothing. Is there anything I am missing.
I want to Auto generate the columns.
Thanks,
Saikat

Emanuel Varga
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
167 views
If we add more GroupDescriptors to the collection. Only the first group will be displayed. 

This is our code :

var descriptor1 = new GroupDescriptor(new[]{ new SortDescriptor("Country", ListSortDirection.Ascending) });
var descriptor2 = new GroupDescriptor(new[]{ new SortDescriptor("User", ListSortDirection.Ascending) });
 
radListView1.EnableGrouping = true;
radListView1.ShowGroups = true;
radListView1.GroupDescriptors.Add(descriptor1 );
radListView1.GroupDescriptors.Add(descriptor2 );

Do we still have to do something extra or is this not supported yet?

Kind regards,

Kim
Ivan Todorov
Telerik team
 answered on 10 Oct 2011
3 answers
177 views
Are there any guidelines on when to use RadApplicationMenu/ RadCommandBar/ RadMenu/ RadRibbonBar?

I want a tool bar interface at the top of my form (without any drop down menus). All items will have an image and some text. And I also want accelerator key support (put an "&" in item text to underline an alphabet and create a short cut key).

With so many choices, I am not sure which of these is the best control to use.

Most of the above is achievable using RadCommandBar, but it does not have accelerator key support.

Regards.
Ivan Petrov
Telerik team
 answered on 10 Oct 2011
1 answer
193 views
Hi,

How do I set the default alignment of the command bar to the right?

For example see attached screenshot "before".
What I want to do is display the commandbar on the right by default as shown in screenshot "after".

I have tried setting the Alignment property of CommandBarStripElement to "TopRight", but this does not make a difference.

Regards.
Ivan Todorov
Telerik team
 answered on 10 Oct 2011
1 answer
64 views
Hi -

 I'm binding my ListView to a class that contains a list which is a list of another class.
 
For instance,  

public class Person
{
  public List<Orders> Orders {get; set;}
}
 
public class Orders
{
   public Guid Id {get; set;}
   public string {get; set;}
}

When I bind the ListView to an instance of the person class,  how could i display specific value for one of the orders on the row that displays for the person class?

Thanks -
Ivan Todorov
Telerik team
 answered on 10 Oct 2011
7 answers
146 views
Hello all,

This is my first post after i started working with Telerik Radcontrols for winforms.
Currently i would like to select multiple rows from the grid and i would like to pin them all (either at top or bottom).

At present, eventhough it is possible to select multiple rows, only the first row is pinned.

Is it possible to extend the rad grid row header context menu, item click event handler ? such an event handler is really available in the first place ? Kindly throw some light guys....
Martin Vasilev
Telerik team
 answered on 07 Oct 2011
2 answers
395 views
Hi to everyone
this is my problem
on a radform, I placed a radpageview control with 02 pages
inside this pages, I placed texboxes, group etc..
I also have a button somewhere inside the radform
How can I reset all the textboxes (xtextbox.text="") ?
My english is not so good
thanks
Ivan Petrov
Telerik team
 answered on 07 Oct 2011
3 answers
145 views
Hi...

I have a radgridview linked to a datasource.

One of the columns (a decimal column) takes the data from an integer value in the database... this value represents a time, but I can´t change the type in the database.

I want to show the value in a HH:MM:SS format.
To do that in other situations I just set a string.Format this way:
string.format("{0:00}:{1:00}:{2:00}", value/3600, (value%3600)/60,(value%3600)%60)

Is there a way to apply this custom format to the column?

I´ve tried using a date format in the FormatString property of the columm this way: {0:hh.mm.ss} but then the columm shows data like this "hh.Valuemm.ss" (Value is the integer in the column, like 4 or whatever).

Any help will be welcomed

Thanks in advance
Ivan Petrov
Telerik team
 answered on 07 Oct 2011
8 answers
195 views
Hi Telerik Team,

I am currently using Q3 2007 SP1. I have poblem with the fontsize of the GridView. I try to change the fontsize through visual style builder (the edit element). It works fine when design. However, on runtime, it prompts me error of index and the fontsize back to as the default.
Please clarify if this problem existed in the version i mentioned.
Thanks in advance

-Tobin-
Martin Vasilev
Telerik team
 answered on 07 Oct 2011
2 answers
94 views
Hello once again
I wish to know to which collection radpageview belong too ?
I can't find any information in the documentation
Ivan Petrov
Telerik team
 answered on 07 Oct 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?