Telerik Forums
UI for WinForms Forum
1 answer
139 views

Hi,

Sorry to ask you so much question but I still have a little problem.

I'm using the Selected event and I have a problem.

I'm using multi selection.

>I select 1 node with the
>Then, I click into another non selected node.


I have the feeling that the Selected event is fired before the first node is unselected because when I go to Nodes.selected.count I have 2 node and I should have just one!

Is it normal?

I check the documentation and they say I should use OnSelectionChange but I'm not able to use it. (I'm not an experienced programmer... :-( )

Can you please give me a sample code ?

Thanks in advance for your help.

Jordan
Telerik team
 answered on 15 Aug 2008
1 answer
110 views
I have a radDataGridView that is bound to a SQL database. I have to add three columns of GridViewLookUpColumn type. and then set their databindings. When I run the project everything looks right until you select one of the comboboxes, the first one you select has the correct data in it, howerver when you select either of the other comboboxes they show the same data. If you select an item it displayes the correct data for that index. The realy strange thing is that it was working as expeted up until a couple of days ago. I have tried deleting and recreating the grid and the data sources with no luck.
This is a sample of the code used to create the column

 // add Location Column
            GridViewLookUpColumn LocationColumn = new GridViewLookUpColumn();
            LocationColumn.DataType = typeof(string);
            LocationColumn.UniqueName = "LocationDesc";
            LocationColumn.FieldName = "LocationID";
            LocationColumn.HeaderText = "Location";
            LocationColumn.DataSource = uvwLocComputersBindingSource;
            LocationColumn.ValueMember = "LocationID";
            LocationColumn.DisplayMember = "Description";
            LocationColumn.Width = 180;
            LocationColumn.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            gvComputers.MasterGridViewTemplate.Columns.Add(LocationColumn);

One other thing when I create the columns in the Property Builder they don't seem to work the same as when they are done in code (this was the case even before this problem arose).
Martin Vasilev
Telerik team
 answered on 15 Aug 2008
2 answers
111 views
Hi,

I'd like to ask how far is SP1 release for current version (Q2 2008) of telerik controls. Thx in advance.

Best regards,
Daniel
Daniel
Top achievements
Rank 1
 answered on 14 Aug 2008
5 answers
226 views
Hi telerik,

In RadPanelBar, I added dynamically RadLabelElement. Try to set the cursor but i couldnt do it.

How do i set the cursor?

Thanks
Boyko Markov
Telerik team
 answered on 14 Aug 2008
1 answer
119 views
Hello,

I have two questions.

  1. Can any one please tell me how do I do the content-based automatic sizing in radgridview?
  2. How can I set the datasource of grid as generic list or list?
            I tried to set a list as datasource which is returned from webservice and it doesnt show me any results. If I change the datasource to dataset then It shows me the results.

Example:

rad_grid_Interaction_View.DataSource = SelectMyFollowups(request);

Code for SelectMyFollowups:

Public Function SelectMyFollowups(ByVal request As SelectMyFollowupsRequest) As InteractionViewSimpleResponse
Try
Return peer.SelectMyFollowups(request)
Catch ex As Exception
log.Error(ex)
Throw ex
End Try
End Function
the return set InteractionViewSimpleResponse is a list called InteractionViewSimpleResponse. If I do this I dont get any results shown in grid.

If I change the return set of the method to dataset as shown below, then I am able to see results.

Public Function SelectMyFollowups(ByVal request As SelectMyFollowupsRequest) As dataset
Try
Return peer.SelectMyFollowups(request)
Catch ex As Exception
log.Error(ex)
Throw ex
End Try
End Function

Your help is very much appreciated.

Jack
Telerik team
 answered on 14 Aug 2008
2 answers
95 views

hi, Telerik

I write the code below:

bool AddControlItem()
{
  RadListBoxItem itemRepair = new RadListBoxItem();
  itemRepair.MouseDown += new MouseEventHandler(itemRepair_MouseDown);
  lstControlItemList.Items.Add(itemRepair);
}

void itemRepair_MouseDown(object sender, MouseEventArgs e)
{
   RadListBoxItem lstItem = sender as RadListBoxItem;
   if (lstItem == null) { return; }

   lstControlItemList.DoDragDrop(lstItem, DragDropEffects.Copy | DragDropEffects.Move);
}

And target-object DragDrop method :

        void Gridview1_DragDrop(object sender, DragEventArgs e)
        {
            RadListBoxItem lstItem = e.Data.GetData(typeof(RadListBoxItem)) as RadListBoxItem;
            if (lstItem == null) { return; }

            GridViewRowInfo rowInfo = Gridview1.Rows.AddNew();
            rowInfo.Cells["RepairNO"].Value = lstItem.Value.ToString();

     lstControlItemList.Items.Remove(lstItem);
        }

Then throw exception:

System.InvalidOperationException not process
  Message="Argument not found in the list box items collection"
  Source="Telerik.WinControls.UI"
  StackTrace:
       Telerik.WinControls.UI.RadListBoxElement.selectedItems_CollectionChanged(Object sender, RadListBoxItemCollectionChangedEventArgs e)
       Telerik.WinControls.UI.RadListBoxItemCollection.OnCollectionChanged(RadListBoxItemCollectionChangedEventArgs e)
       Telerik.WinControls.UI.RadListBoxItemCollection.OnInsertComplete(Int32 index, Object value)
       System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
       Telerik.WinControls.UI.RadListBoxElement.SetSelectedIndex(RadItem item)
       Telerik.WinControls.UI.RadListBoxElement.listBoxItem_MouseDown(Object sender, MouseEventArgs e)
       System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
       Telerik.WinControls.RadElement.OnMouseDown(MouseEventArgs e)
       Telerik.WinControls.RadItem.OnMouseDown(MouseEventArgs e)
       Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
       Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)
       Telerik.WinControls.ComponentInputBehavior.OnMouseDown(MouseEventArgs e)
       Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)
       System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       System.Windows.Forms.Control.WndProc(Message& m)
       System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       Telerik.WinControls.RadControl.WndProc(Message& m)
       System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

I can not handled the exception. How can swallow that?

using Q1 2008 version.

KEN

Ken
Top achievements
Rank 1
 answered on 14 Aug 2008
1 answer
182 views
Hello,

weird enought... I found that RadDateTimePicker's Value property is of DateTime type where the corresponding ASP.NET AJAX is the nullable DateTime?

I use DataTime? property in all of my classes and I use DataBindings

RadDateTimePeaker rdp;
rdp.DataBindings.Add("Value", myObj, "MyNullableDataTimeFields");

this obviously fails

if (myObj.MyNullableDateTimeProperty== null
   rdp.SetToNullValue(); 
else 
   rdp.Value = myObj.MyNullableDateTimeProperty.Value; 
 

is quite hugly IMHO.

Any advice?

Thank you
Lorenzo

PS I use RadControls for Winforms Q2 2008
Boyko Markov
Telerik team
 answered on 14 Aug 2008
5 answers
306 views
Hi Telerik,

Is it possible to set nulltext like in combo box for RadMultiColumnComboBox?


Thanks
Dimitar Kapitanov
Telerik team
 answered on 14 Aug 2008
1 answer
296 views
We have been evaluating telerik rad controls for winform for our new Project.
I have been searching on this forum for paging functionality in GridView for WinForm, but really disappointed to know that it is not currently available in GridView Control. I would really appreciate if Telerik releases a GridView control for winform with paging functinality, if grouping, filtering and other features are hard to implement, I would suggest that make two controls, one gridview with advance features one basic with paging feature or make it a feature whatever but really it is required when data is in bulk say more than 20,000 records.
Martin Vasilev
Telerik team
 answered on 13 Aug 2008
1 answer
102 views
Hi Telerik.

My dataset look like this.

I have a main table (Passengers), which holds details of passengers connected to a group. in this table i have a GroupCabinsId which points to another table (GroupCabins) holding Available cabins for the specific group. In table GroupCabins i have an id called CabinId which points to another table (Cabins) where detials of the cabins is listed.

Below is listed the tables in the dataset.

Passengers            GroupCabins            Cabins
Id                            Id                               Id
Name                      CabinId                      Code    
Gender             
GroupCabinsId

i need to make a grid where i show the Name, Gender from passengers and Code from Cabins

This was no problem for me in version 5.0.3.0 of Telerik grid. where i manually added a GridviewTextBoxColumn and sat the DataField Property to GroupCabins.Cabins.Code

But as i have upgraded to version 6.1.0.0 this way no longer works. can anyone tell me what to do to make this work.?
Julian Benkov
Telerik team
 answered on 13 Aug 2008
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?