Telerik Forums
UI for WinForms Forum
1 answer
189 views
I was wondering how an images text could be put underneath the image (its currently in a horizontal orientation).  The code I have below is not doing the trick and I was hoping you could help on this, should be a quick solution.  Thank you for your time.

private void addEmptyImages()
        {
            for (int i = 0; i < imagelistPictures.Images.Count; i++)
            {
                if (imagelistPictures.Images[i] != null)
                {
                    ListViewDataItem item = new ListViewDataItem();
                    item.Tag = "Delay Render";
                    item.Text = "Page " + (i + 1).ToString();
                    item.Image = Properties.Resources.imageLoading;
                    item.ImageAlignment = ContentAlignment.MiddleCenter;
                    item.TextAlignment = ContentAlignment.TopLeft;
                    listviewGotoPage.Items.Add(item);
                }
                else
                {
                    MessageBox.Show("contents of initial list are null, break");
                    break;
                }
                 
            }
        }
Stefan
Telerik team
 answered on 18 Jul 2013
15 answers
258 views
Positioning of components on RadPageView works different on different systems - see attached screenshots.

I'm developing on Windows 7. 3 buttons have anchor set to right-bottom.

On Server 2012 vertical positioning is bad.
On Windows 8 both vertical and horizontal positioning are bad - you don't see any of 3 buttons.

From time to time also RadPageView vertical size changes on itself to be bigger that the form itself and so you don't see whole RadPageView.
Paul
Telerik team
 answered on 18 Jul 2013
4 answers
268 views
Hi Telerik Team,

I am using hierarchy grid, in which I am setting the datasource as a dataset. In the dataset I have almost 250 rows in the main grid and more than 20,000 under each of these 250 rows as child rows. My problem is if I expand the first row and use filtering row to filter in the first child grid to filter the rows according to the given criteria. It filters for all of the child rows according to the same criteria.

I want to change this behaviour that if I am searching data in a specific child grid it should limit only to that child grid not all of them.

Please advice how can I achieve this behaviour.

Many thanks,

Sheraz
Paul
Telerik team
 answered on 18 Jul 2013
1 answer
125 views
1. Create a Tree View with the Visual Studio 2012 Light them.
2. Add multiple nodes to the tree
3. Select the first node
4. While hovering the selected first node with the mouse press the down arrow to select the next node
5. The text of the first node will stay white while the hover background will also be white making the text seem like it vanishes.

See attached image.
Dimitar
Telerik team
 answered on 17 Jul 2013
1 answer
170 views
Hi ,
I have a problem.
I want to hide radribbon group bar in code behind according to user roles
I applied this technique : 
RadribbonGroupbarControl.visible = false;

It works but hide all Radribbon Groupbar Controls , but after clicking between two tabs for a while it`s appear again.
Thanks In Advance. 

Dimitar
Telerik team
 answered on 17 Jul 2013
3 answers
829 views
Hello,

I have a form with multiple grids on it. I NO visualization of the selected rows and cells if the grid does not have the focus.
I tried to use the HideSelection property, but that seems only to hide selection of selected text when a cell is in edit mode. I would expect that applies to the selected rows and cells.
I found this tread http://www.telerik.com/community/forums/winforms/gridview/disable-cell-highlighting-row-only-selection.aspx using the row and/or cell formatting events. But that's not exactly what I want.
Can you provide me with an example of which properties to set?

Regards, Jaap
Ivan Petrov
Telerik team
 answered on 17 Jul 2013
13 answers
206 views
Dear support team
I used  http://www.telerik.com/help/winforms/scheduler-data-binding-binding-to-business-objects.html link to impemelent appointment. 
I do not know how to load data and edit them.
I search in example but Binding Example did not answer my requirement.
Please guide me  on that!
Ivan Petrov
Telerik team
 answered on 17 Jul 2013
10 answers
190 views
I have an Hierarchy GridView with two levels.  In the child gridview I want to Add a New Row, however I need to set some default values in the row, so I have used the DefaultValuesNeeded event to populate the new row with the required defaults.

This works well within one child view, however if I move to a different child view and try to Add a New Row, the DefaultValuesNeeded function fails with an error - NullReferenceException was unhandled.  This error is coming from the e.row.cells().value.

Here is the code that both works and fails:

Private Sub rgvVoucherServices_DefaultValuesNeeded(ByVal sender As Object, _  
        ByVal e As Telerik.WinControls.UI.GridViewRowEventArgs) _  
        Handles rgvVoucherServices.DefaultValuesNeeded  
        If TypeOf (rgvVoucherServices.CurrentRow) Is GridViewNewRowInfo Then 
            With e.Row  
                .Cells("ELS_ELVKey").Value = rgvVoucherServices.CurrentRow.ViewInfo.ParentRow.Cells("ELV_Key").Value  
                .Cells("ELS_LastUpdAction").Value = "I" 
                .Cells("ELS_LastUpdBy").Value = GlobalParameters("UserKey")  
                .Cells("ELS_LastUpdWhen").Value = Now  
            End With 
        End If 
    End Sub 

Is there a problem with the way that I have implemented this method?
Stefan
Telerik team
 answered on 17 Jul 2013
1 answer
72 views
Hi,

I am going to explain what I want to achive and what I think is a option, but reaaly whould like to get your opinion.

I want to create a PDF file for every employee with there benefits with our company. The PDF will consist of about 10 pages and there will be Some static text (read from a data base) to print in differnt fonts and colours etc ( that I want to RichTextBox).

I then have a spesific page for every employees info from the payroll.

I also think I can create a report, but there is some things I dont know eg. how do I create differnt a PDF for every employee? and how will I get some RichTextBox text in my report.

Please help me  in the right direction.

regards
Stef
Telerik team
 answered on 17 Jul 2013
9 answers
395 views
Hello,

I've asked this before, and I'm still a bit confused how this all wires up. The confusion is mine, over what the Telerik RadPropertyGrid type checking is actually doing.

Let's say we've got a model that looks like this. These all would implement INotifyPropertyChanged and such, but for example, I'm leaving that off.

class Dog {
  public string Name{get;set;}
}
 
class Shelter {
  public Dog AdoptedDog{get;set;}
  public List<Dog> AvailableDogs{get;set;}
}

Further, I am adapting the model into the view (RadPropertyGrid DropDownList editors) through a view model something like this:

abstract class ModelView<T> {
public T Item{get;set;}
  public ModelView(T item) {
    Item = item;
  }
}
 
class DogModelView : ModelView<Dog> {
  public DogModelView(Dog dog)
    : base(dog) {}
}
 
class ShelterModelView : ModelView<Shelter> {
  public ShelterModelView(Shelter shelter)
    : base(shelter) {}
}

I need to be able to edit the AdoptedDog property from the Shelter (adapter through ShelterModelView) with a DropDownList that shows the AvailableDogs to choose from.

So we set the RadPropertyGrid SelectedObject to the ModelView instance:

//Shelter AvailableDogs might be populated with Dogs of course.
var shelter = new Shelter();
radpgShelter.SelectedObject = new ShelterModelView(shelter)

And when the editor is initialized:

//...
element.DataSource = shelter.AvailableDogs;
//Following which the SelectedValue is indeed selected.

Am I assuming correctly that the RadPropertyGrid type check wants to connect an item from the DataSource, in particular the SelectedValue, to agree in type with the ModelView property being edited?

So in this example, if we want to edit (select from a DropDownList) the AdoptedDog from a list of AvailableDogs, then we should be talking about Dog and Dog? Rather, not, say, Dog and string (Dog.Name)?

Thank you...

Regards,

Michael Powell
Ivan Petrov
Telerik team
 answered on 17 Jul 2013
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?