Telerik Forums
UI for WinForms Forum
3 answers
200 views
This is probably a very dumb question.
But basically. I have 2 datatables that I merged together. 
I then assigned the resulting dataTable as the datasource of my GridView.
However the rows in the dataTable are not in the order I want the end user to see. 
So I want to Sort the gridview. I'm not seeing a Sort Method on the control. 

How can I sort by the first column (descending)?

Thanks. 
Stefan
Telerik team
 answered on 16 Sep 2010
1 answer
60 views
Hi:

I have a strange problem that I could solve and it's driving me nuts!

I have dynamically added a Lookup column to my grid during form load:

    c = New GridViewLookUpColumn("ColFinalGrade_Manual", "FinalGrade_Manual")
    c.ValueMember = "GdRule_GradeCode"
    c.DisplayMember = "GdRule_GradeCode"
    c.DataSource = ds_Gd.Tables(0)
    RGV_StdEnrl.MasterGridViewTemplate.Columns.Insert(RGV_StdEnrl.Columns.Count - 1, c)

Then during CellBeginEdit of the grid, I have the following codes (except from longer codes)

    If RGV_StdEnrl.Columns(e.ColumnIndex).UniqueName = "ColFinalGrade_Manual" Then
        Dim editor As IInputEditor = Me.RGV_StdEnrl.ActiveEditor
        If Not editor Is Nothing AndAlso TypeOf (editor) Is RadComboBoxEditor Then
            Dim comboElement As RadComboBoxElement = CType(CType(editor, RadComboBoxEditor).EditorElement, RadComboBoxElement)
                            For I As Integer = 0 To comboElement.Items.Count - 1   (!!!!!PROBLEM IS HERE!!!!)
                                If comboElement.Items(I).Text = "" & RGV_StdEnrl.MasterGridViewTemplate.Rows(e.RowIndex).Cells("ColFinalGrade_Manual").Value Then
                                    comboElement.SelectedIndex = I
                                    Exit For
                                End If
                            Next
    . . .

The problem is:  The item count for comboElement is ALWAYS 0 when I click on that particular cell FOR THE FIRST TIME after the form is loaded. So, the correct value never gets selected.  In fact, during the FIRST run of CellBeginEdit, the DataSource for the comboElement is ALWAYS Nothing.  There is nothing I could do to change that. EVEN IF I first test for it begin nothing and then try to assign it a datasource at that time (If comboElement.DataSource Is Nothing Then comboElement.DataSource = theTable), the item count for the comboElement remains 0.  It almost as if it doesn't want to take anything. No error is generated either.

The strangest part is: This problem only happens ONCE every form load (the very first time that cell is click).  After that, the above code works exact as it should.

I'm just stumped, and would appreciate some help on this.

Thanks!

Justin
Jack
Telerik team
 answered on 16 Sep 2010
9 answers
575 views
I have a check box column in a RadGridView, and I can't seem to make it read only.  I've searched through the forums, and only found people with the opposite problem.  I've seen posts about people with read only grids where they want one column editable.  What I want is a checkbox column that is NOT editable, but try as I might, you can edit the check boxes in this grid.

I set the grid's ReadOnly property to True.
I set the individual column's ReadOnly property to True.
I set the grid's AllowEditRow to False.
I even set the grid's BeginEditMode property to BeginEditProgrammatically.

Nothing has any effect.  What do I have to do to make a simple read-only grid?
Jack
Telerik team
 answered on 16 Sep 2010
1 answer
152 views
Hello admin!

I have a file image "bindingmanyfield.gif". It is a radGridview. I added by control (RadLabelElement) in radGridview.

In that, text "15, 100%, Sold Out" with (number, percent, status get from DataTable), I want to add three fields to one Cell of radGridView.

Help me!
Thank you!
Jack
Telerik team
 answered on 16 Sep 2010
6 answers
152 views

Hello,

i use a RadGridView with a GridViewDateTimeColumn.

How can i localize the dropdown calendar of this column ?

Kind Regards,

Ramius

Svett
Telerik team
 answered on 16 Sep 2010
1 answer
126 views
hi,

i use RadWinforms 2010 Q2 in c# 2008 ,

i inherited a customized textbox from RadTextBox , everything works fine except that theme is not applying to this new control, the control have black borders and does not have the same look of RadTextbox,

how should i fix it ?
Nikolay
Telerik team
 answered on 16 Sep 2010
5 answers
112 views
Is there something I'm missing... I have the Ribbonbar with the Office2007Black theme.  I set the tab shapes to TabVsShape and I can see it at design time.  However, the tabs are still rectangular at run-time.  What am I missing?
Stefan
Telerik team
 answered on 16 Sep 2010
3 answers
198 views
Hi,

in my RadRibbonBar are 4 RadButtonElements in the QuickAccessToolBar (radRibbonBar.QuickAccessToolBarItems).
Now i want to collapse one or more Buttons at runtime. Therefor i've set the Visibility-Propertie of the RadButtonElement to Collapsed:

radButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Nothing happens.

Than i try to refresh parts of, or the whole, the RibbonBar.
At first i tried it with RadButtonElement.UpdateLayout(). - Same result, nothing happens.
Next i've used the Refresh- and Update-Methode of the RibbonBar - still no results.
And at last i've add a new RadButtonElement to the QuickAccessToolBarItems of RibbonBar in the hope that the RibboBar now refresh itself.

I only want to hide one or more Buttons programmatically.
Can you explain me, how to get it working?


Regards



Peter
Telerik team
 answered on 15 Sep 2010
4 answers
209 views
Hi,

Working in VB.Net with the last release.

How can I test is there is a verticalscroll bar in my RadGrid ?

Or is there a way to force a column to fit the space unused ?

Thanks
Svett
Telerik team
 answered on 15 Sep 2010
2 answers
172 views
Hello all,

I think I may have found a bug with the Export function for the RadScheduler.  I used the Export function as follows:

Using stream As FileStream = File.Create("schedule.ics")
    Me.schAvailability.Export(stream, New SchedulerICalendarExporter)
End Using

and then used this iCal feed in lotus notes and got the error: "The content of this URL does not conform to the iCalendar parsing specification."  At first I thought this was because I was using a custom appointment object and editappointmentdialog.  Here is the contents of the .ics file produced from the export function:

BEGIN:VCALENDAR
PRODID:-//Telerik Inc.//NONSGML RadScheduler//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Mountain Standard Time
BEGIN:STANDARD
TZNAME:Mountain Standard Time
TZOFFSETTO:-0700
TZOFFSETFROM:-0600
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=11;BYSETPOS=1;WKST=MO
DTSTART:16010101T020000
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:-0700
TZOFFSETTO:-0600
DTSTART:20070101T020000
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=3;BYSETPOS=2;WKST=MO
TZNAME:Mountain Daylight Time
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=Mountain Standard Time:20100702T000000
DTEND;TZID=Mountain Standard Time:20100702T235900
SUMMARY:Vacation
DESCRIPTION:Vacation
UID:98ef45e7-e8b1-43b9-92f2-91cd7a9cf2fb
LOCATION:Vacation
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
BACKGROUND:BUSINESS
END:VEVENT
END:VCALENDAR

Please note the bolded lines.  This above .ics file did not load correctly in lotus notes and produced the error message I said above.

All I had to do to fix this error and get my ics file correctly working in lotus notes was make the following changes to the above bolded lines:

DTSTART:20100702T000000-0700
DTEND:20100702T235900-0700

Can you confirm that setting time zone as ;TZID=Mountain Standard Time: is indeed an issue (for lotus notes)?

EDIT: I found another fix for this.

We can leave the DTSTART and DTEND in VEVENT as is:
DTSTART;TZID=Mountain Standard Time:20100702T000000
DTEND;TZID=Mountain Standard Time:20100702T235900

BUT we have to add a timezone offset to the DTSTART (in STANDARD and DAYLIGHT) of VTIMEZONE

BEGIN:VTIMEZONE
TZID:Mountain Standard Time
BEGIN:STANDARD
TZNAME:Mountain Standard Time
TZOFFSETTO:-0700
TZOFFSETFROM:-0600
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=11;BYSETPOS=1;WKST=MO
DTSTART:16010101T020000-0700
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:-0700
TZOFFSETTO:-0600
DTSTART:20070101T020000-0700
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=3;BYSETPOS=2;WKST=MO
TZNAME:Mountain Daylight Time
END:DAYLIGHT
END:VTIMEZONE

Brennan
Top achievements
Rank 1
 answered on 15 Sep 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
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?