Telerik Forums
UI for WinForms Forum
5 answers
240 views
How do I select a specific appointment in code?

More precisely, when the RadSchedulerReminder dialog is displayed and the 'Open" button is pressed, I would like to scroll to and select that appointment.

I am handling the Reminder.ItemOpened() event, and I assume that e.RemindObject points to an appointment in the Scheduler's event storage, please correct me if that is not the case.

-Chris
Dobry Zranchev
Telerik team
 answered on 15 Sep 2010
1 answer
205 views
I am trying to add tooltips to my unbound data grid... Can someone please let me know how to accomplish this through code? Below is how I am adding data to the grid.
Thanks for the help!

Craig

 

for (int i = 0; i < scheduleNotesList.Count; i++)

 

{

 

GridCommandCellElement cellElement = null;

 

 

GridViewRowInfo rowInfo = this.grdNotes.Rows.AddNew();

 

rowInfo.Cells[

"User"].Value = scheduleNotesList[i].AddedByUserIdSource.NameFirst + " " + scheduleNotesList[i].AddedByUserIdSource.NameLast;

 

rowInfo.Cells[

"PatientName"].Value = scheduleNotesList[i].PatientIdSource.FullName;

 

rowInfo.Cells[

"Note"].Value = scheduleNotesList[i].NotesDetail;

 

rowInfo.Cells[

"Note"].CellElement.ToolTipText = scheduleNotesList[i].NotesDetail;    //This throes a NullReferenceException.

 

rowInfo.Cells[

"DateAdded"].Value = scheduleNotesList[i].ModifiedDate.ToShortDateString() + " " + scheduleNotesList[i].ModifiedDate.ToShortTimeString();

 

}

Stefan
Telerik team
 answered on 15 Sep 2010
2 answers
178 views
Hi,

I'm using the gridview and sometimes get quite a lot of rows, like about 40.000 records.
there are about 18 columns and some need formatting based on the value in the cells.
this works fine either through the conditinal formatting or in the rowformatting/cellformatting event as described in some of your posts and tutorials.

so far so good.

However, two cells need some more action and I'm just wonderingwy the rowfomatting event is always fired, when you scroll or get the focus in the grid etc. Seems a little too much.

Shouldn't those events be fired when the value changes or is there an event which only fires when the value changed or when the value is being written in the cell? Like a rowcreated event?


Thanks
Robert
Top achievements
Rank 1
 answered on 14 Sep 2010
4 answers
306 views
Hello,
I'm having problems with the RadForm component. This problem appears to me both in Q1 2010 and Q2 2010, .NET Framework 4. I'm running Windows 7 and using VS 2010. The problem is that the form does not appear to style itself correctly. I've attached a screenshot to show you the problem. I'm confused as to what is causing this problem, because I don't recall having this issue with Q2 2008 or even Q1 2010 before i had it uninstalled and installed again.

Thank you.

Edit: The form appears correctly in the Visual Studio Designer, the problem appears only when running the application.
Stefan
Telerik team
 answered on 14 Sep 2010
1 answer
209 views
Hi,
     Please send a sample form which is there in QuickStart.dll.Only form with  RadDock Control and Titlebar with images .
On Maximize , the image also should resize.

Thanks
Stefan
Telerik team
 answered on 14 Sep 2010
8 answers
507 views
hi,

I am trying for binding a Relational data from the database to Rad TreeView control.
Ihave taken a Dept table (primary Key table) , Employee table (related with a foriegn key to Dept table and itself has a primary Key column) and Products table (related with a foriegn key to Employee table).
I have tried using RelationBindings.Add() methods but, i didn't get the result.

Please can u tell me how to bind a relational data to a Rad treeview control.

Thank you,

regards,
Mahitha Madala.
Jack
Telerik team
 answered on 14 Sep 2010
1 answer
349 views
I'm using Visual Studio 2005 with RadControls for WinForms Q2 2010.  I'm attempting to compile the DLL references for Telerik into the exe.  To do this, I'm using the following Post-Build event command line:

"C:\Program Files\Microsoft\ILMerge\ILMerge.exe" /out:"C:\Documents and Settings\mlunow\My Documents\Visual Studio 2005\Projects\vbpMackinPhotoManager\vbpMackinPhotoManager\bin\Release\MackinPhotoManager.exe" "C:\Documents and Settings\mlunow\My Documents\Visual Studio 2005\Projects\vbpMackinPhotoManager\vbpMackinPhotoManager\bin\Release\vbpMackinPhotoManager.exe" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\TelerikCommon.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.Themes.Breeze.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.UI.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.Themes.BreezeExtended.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.dll"

Building the release successfully creates the .exe.  However, when I run the exe, I get the following error:

Error deserializing custom shape:  System.ArgumentException:  Type not found:  Telerik.WinControls.Tests.QAShape.  Please make sure you have reference to an assembly which contains type:  Telerik.WinControls.Tests.QAShape at ....

The executable, without the command-line works just fine on my machine.  However, other users on our network, are not able to use the .exe.

Any help would be greatly appreciated.

-Matt.
Peter
Telerik team
 answered on 14 Sep 2010
1 answer
143 views
Hi,

I wanted to use a gif image (animation) in a Panelbar item, but its shown static without the animation.
Is it possible to use an animated gif?

Best regards
Andreas
Stefan
Telerik team
 answered on 14 Sep 2010
7 answers
889 views
Hi

Is it possible to have a RadTextBox that has rounded corners, transparent background and cusomized scrollbars. I have tried the Theme Builder but could not find any satisfactory way to do it.

Look forward to any hints.
Thanks
Nikolay
Telerik team
 answered on 13 Sep 2010
7 answers
292 views
Hi,

I'm evaluating the Telerik GridView for use in a new project and am coming up against a couple of difficulties. I haven't found answers in the Forum, so I thought I would ask.

The situation. We are binding CSLA collections to a data grid. We want to use comboboxes for certain columns. Due to customer restraints, we are forced to use WinForms.

First. For GridViewComboBoxColumns. Is it possible to bind not to a value of the SelectedItem but to the item itself? We use readonly "Mini Objects" for things like Products and try not to expose the ID for that product. It shouldn't be necessary for the UI Developer to know what the ID is. You might think about adding the option SelectedItem to the ValueMember options. Then the SelectedItem is bound to the object and not the ID. I would think this would also be interesting for things like EF Entities where you also want to bind to an object and not directly to an ID.

I found a partial workaround for the above problem, see below, but it seems very cludgy.

 Private Sub RadGridView1_ValueChanged(ByVal sender As ObjectByVal e As System.EventArgsHandles RadGridView1.ValueChanged

        Dim dataRow As GridViewDataRowInfo = TryCast(Me.RadGridView1.CurrentRow, GridViewDataRowInfo)
        If dataRow Is Nothing Then
            Return
        End If

        Dim orderDetail As BO.OrderDetail = TryCast(dataRow.DataBoundItem, BO.OrderDetail)

        Dim cbEditor As RadDropDownListEditor = TryCast(Me.RadGridView1.ActiveEditor, Telerik.WinControls.UI.RadDropDownListEditor)

        If cbEditor IsNot Nothing Then
            Dim editorElement As RadDropDownListEditorElement = TryCast(cbEditor.EditorElement, RadDropDownListEditorElement)
            Dim prod As BO.ProductInfo = DirectCast(editorElement.SelectedItem.DataBoundItem, BO.ProductInfo)
            orderDetail.ProductInfo = prod
            orderDetail.UnitPrice = prod.UnitPrice
        End If
    End Sub


Second: Our Business objects are based on bindinglists. That means they have logic for determining default values for new items added to collections. For example for the OrderDetail object will automatically set the default discount depending on the Customer defined in the OrderObject.

Does the RadGridView support this kind of senario?  How can I convince the grid to use my 'correct' value instead of an empty version?

Also, since the RadGridView adds a "Phantom" object, the above code doesn't work. I can't set the editable price for the OrderDetail. It gets ignored.

Note, the default object works perfectly in the Windows datagrid but causes problems with the Telerik product. Interestingly, if I have both controls on the same form, bound to the same bindinglist and click on the "new row" in the Windows DataGrid, the Telerik gets all the events and shows the right information.

Thanks for any help.
Julian Benkov
Telerik team
 answered on 13 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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?