Telerik Forums
UI for WinForms Forum
4 answers
153 views
When the user has added a new row in my grid the column values are written to the database.

In the UserAddingRow event I ask the user "Are you sure you want to add values to database?", and I set e.Cancel=true in case the answer is no.

If the user starts adding values in the grid, and then changes his/her mind and try to close the application, this question from the UserAddingRow event fires, which is not how I want it to be. If the user wants to close the application, the application should close.

I've tried capturing the FormClosing event to set applicationClosing=true and add a check to this in the UserAddingRow event, but the FormClosing event fires after the UserAddingRow, so there is no help there.

Is there another way to prevent the UserAddingRow to be handled when the form is closing?


Regards, Jill-Connie Lorentsen
Stefan
Telerik team
 answered on 02 Nov 2011
0 answers
73 views
 Hello, I changed the version of telerik components, had version Q32010 and moved to Q2 2011, and in view of the scheduler in month view, got an opacity. Could answer me how can I resolve this problem?
Wait for a response.


Best Regards, João Alberto
João
Top achievements
Rank 1
 asked on 02 Nov 2011
0 answers
50 views
 Hello, I changed the version of telerik components, had version Q32010 and moved to Q2 2011, and in view of the calendar month, got an opacity. Could answer me how can I resolve this problem?
Wait for a response.

Best Regards, João Alberto
João
Top achievements
Rank 1
 asked on 02 Nov 2011
1 answer
107 views
Hi,

We are developing a new GUI to our system, which is built on top of a legacy code. In details, we write our User Control as a COM (CCW) object that contains the RadGridView and is then placed in the old GUI. The GridView should act mostly in read only mode. Since the communication between the old system and the new system is through the COM interface - it led us to choose the XML populating method to populate our grid. We've sent the XML as a string to the user control. It worked perfectly when we needed only text to be shown in the grid.

Now, we need to be able to show several types of data and several sub-controls in the grid cells (i.e.: GridViewComboBoxColumn, GridViewCheckBoxColumn, GridViewDecimalColumn, GridViewDateTimeColumn, GridViewImageColumn). The way it works now is:
(a) Loading the XML into a source DataTable, using ReadXml
(b) Building a new target DataTable with the needed data types
(c) Adding the right data columns to the Grid
(d) Iterating through the source DataTable and copying each cell to the target DataTable
(e) Assigning the target DataTable to the grid as its Data Source.

As expected - this process led to performance issues...

So, we would like to know if our solution is correct? Is there another way to populate the grid under our limitations?
(Even if we bypass the process of building the XML in the legacy system, and accessing the DB directly, we still need to iterate through all the cells and copying them)

Thanks,

Boaz

Julian Benkov
Telerik team
 answered on 02 Nov 2011
1 answer
65 views
Hi,

I am currently working with the radRichTextBox control to format plain text.

I must replace certain keywords such as <%sender%>, with the text 'You', and then format this in bold font. 

I am able to add additional text to the RTB, however it is added at the end.  

Please help
Julian Benkov
Telerik team
 answered on 02 Nov 2011
3 answers
160 views
Hello
I have bought Telerik Full verion with Source code an so on.. I have started to use it and it seems to fit perfectly with my needs.
I have only a problem
There are some examples in RadControls for WinForms Q2 2011 Demos (I have attached a picture) and I cannot use those examples.

I am working in VB.NET. So How could I take the code from examples and create an application? What do I have to do?
Stefan
Telerik team
 answered on 01 Nov 2011
1 answer
117 views

Hi,

I seem to be getting a wierd glitch in the display when using a small number of items in the Carousel.

If I have 6 items in the list and I set the number of items to display to 5 it works as expected.

However, there is room to show all 6 items so I want to set the the VisibleItemCount to 6 so all the images are visible.

This causes the Carousel to have a stange effect at the ends of the path. One end often ends up with a blank space (so that only five images are showing, the 6th one has somehow gotten 'stuck behind'. In addition, the other end of the Carousel seems to drop an image with an flicker when changing the selected item.

I have a simple code example for this behaviour:

Demo Code (Zip File)

Is there a fix for this issue - or a known workaround?

This may be related to Bert's issue with small numbers of items not displaying in a sensible manner (I get that too).

Forum Thread

I'd like to be able to use the Carousel to show user entered items - but this breaks down when there are only a few items -it's fine once the user has added enough that the Carousel can't show them all at once - but while there are only a few in the list there seem to be a few odd behaivours going on....

There's another interesting effect that happens when there are only two items in the list. Clicking either of the arrows moves the second item to cover the first. Clicking again moves it back to the other side of the path. I can see how this is behaving consistently with the coverflow style design, but it looks strange with only two items. (Which is bound to happen as soon as you start letting users add their own content - because it'll start empty).

Is there any way to make a simple image list look like a Carousel (i.e. get all the reflections and things). I was thinking that one workaround would be to use a simple image list for the items and then swap out the list control for a Carousel when the number of items gets high enough? (The trouble with this in my initial tests was that it's hard to make the look and feel consistent - it suddenly "jumps" from a simple looking list into being a fancy dynamic control - which is jarring)

Alternativly is there a way to get more direct control of the elements in the Carousel, so you can manually position them when there are only a few?

I'm pretty new with these controls so any hints would be welcome :)
Peter
Telerik team
 answered on 01 Nov 2011
1 answer
161 views

Is there a way of playing with the animation settings on the Carousel? For example, setting the speed at which the items spin when you change the selected item?

It seems that it can rotate very fast; If you click an item at the far end it will shoot across the screen to the selected item location. However, if you select the item that's right next to the selected item location it kind of slowly eases it's way over like there's no hurry...

I'd like to be able to be able to whip round really quickly, even if I'm only moving one item round the Carousel, to get that super-responsive feel that you get from iPhone applications.

When writing a scroller in JavaScript I got the high speed effect by moving the items 50% of the distance to target each frame - so they shot very quickly to almost in place, then smoothly slotted in just as the end. Are such tweaks accessible for the Carousel animations?

Any pointers would be much appreciated :)

 


Peter
Telerik team
 answered on 01 Nov 2011
1 answer
242 views
I use RadListView with property ShowCheckBoxes = true.

1. Business logic requires me to disable CheckBox for certain item. How can i do that?
2. As alternative i would like to disable the whole item, not it's checkbox. I try to do that this way:
...
foreach (var item in lvListView.Items)
    item.Enabled = false;
...

This source does not work - after it all items are still selectable and their checkboxes are selectable too. 
Ivan Todorov
Telerik team
 answered on 01 Nov 2011
1 answer
108 views
Hi,
I'm trying to build the gridview to be exactly or almost like Microsoft crm 2011 advanced find.
where to start?
  • How to make 2 or more Rows Most Left column Span together/Grouped , Group as And and Or
  • How to make the Grid as like that Editor, each column has combobox.
  • Exactly on which event we can customize the rows or layout and Data?
    I tried the RowFormatting and Cellformating.
  • I've got another case, which I use the Grid to display success and Error Record I bind it to A SubObject.
      Because I bind the Grid to many type of object, it just so Many typing to set the autogeneratecolumn to false, and do one by one.
      how do you control the layout of autogeneratecolumns? especially if my Object Property is List.
      that property is the ErrorList and there is another one ValidationError which is also a LIst, when i set Hierarcial to True and      autogenerate to True . It did can expand to bottom , but again the Width is too small because of many properties, and how do you control the Expanded GridView Layout? how do you control the visibility? . What I'm trying to achieve here is AutoGenerateColumns=true and Hierarcial=true but can set What to displayed and the Width.
Jack
Telerik team
 answered on 01 Nov 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?