Telerik Forums
UI for WinForms Forum
1 answer
173 views
Hi - I am using WinForms Q2 2008 and am unable to apply the Vista Theme to a RadForm.  I can set other Themes, like Desert and Aqua, but when I set ThemeName to Vista, it seems to get ignored.  Any help appreciated.
Martin Vasilev
Telerik team
 answered on 24 Sep 2008
1 answer
98 views
I have a scenario on a form where I need to save all the rows in the form to a collection in memory to save any changes a user has made prior to saving them to a database, but still allow them to swap between different views.

I'm using the SelectionChanged event to handle storing the data, but I have found that calling GridView.Rows.CopyTo()  doesn't work.  I get a GridViewDataRowInfo[] array that is populated with null values.

Sample code is below:
_batchTrays = new Dictionary<int, GridViewDataRowInfo[]>();
int batchNumber = Convert.ToInt32(grid.CurrentRow.Cells["BatchNumber"].Value);
_batchTrays[batchNumber] =  new GridViewDataRowInfo[batchTraysGrid.Rows.Count];
                    batchTraysGrid.Rows.CopyTo(_batchTrays[batchNumber], 0);


this gives me an array populate with null values.

is there a preferred way to accomplish what I am trying to do?
Martin Vasilev
Telerik team
 answered on 24 Sep 2008
5 answers
172 views
Hi
I have 2 tables in a hieracycal grid.
I need to add a column to the parent table that it's value is calculated depanding on the chiled rows, like that:
In the child row there is a checkbox column:
 if all the child rows (of a specific parent row) checkbox = true, then the column value is: full
 if some of the rows checkbox = true, then the column value is: partly
 if all the rows checkbox = false, then the column value is: empty

Can you give me an idea, how to implement this?

Thanks Yael
Jack
Telerik team
 answered on 24 Sep 2008
20 answers
1.6K+ views
Hi

I need to know the best way to call a client detail form by clicking on a row in a RadGridView. I'm not sure what code to put in the Click event.

My RadGridView shows 15 columns of Client data and stores the Client ID column in the first column of the Grid. I want to click on a row and then call a detail form and pass it the selected Client's ID.

I'm using VB.Net.

Many thanks
Nikolay
Telerik team
 answered on 24 Sep 2008
1 answer
194 views
I'm currently using the RadGridView.Rows.Add(new object[]) method to create a new row in a GridView on a button click.  Calling the Rows.Add method will trigger the SelectionChanged event twice, as expected, but a problem occurs when I try to access the properties of the newly added row via the  RadGridView.SelectedRows[0].Cells[0] properties.  I only get default values for the cells, and not the actual values that I provided in the Rows.Add(new object[]) call.

Is this a known issue, or is there a different way to get the Objects that have been added?

Thanks,
Chris
Martin Vasilev
Telerik team
 answered on 24 Sep 2008
4 answers
105 views
Hi Telerik Team,
Please do guide me if I can add an image along with Text in RadToolStripLabelElement? If yes then please guide how can I?
What a want is to display an image followed by a label at toolstrip (ImageBeforeText )

Regards,
Haroon.
Haroon
Top achievements
Rank 1
 answered on 24 Sep 2008
9 answers
950 views
I am developing on a Windows Server 2003 box using Visual Studio 2005. I installed the RadControls for WinForms 2008 SP1 on top of a previous Winforms installation from early 2007. My existing WinForm application works fine after installing the new Telerik update. However, I'm not seeing the RadForm class. I created a new project, added a reference to Telerik.WinControls to my new project and then proceeded to edit the default form to inherit from Telerik.WinControls.RadForm. The problem is "RadForm" is in red because VS2005 cannot find a reference to the class. I thought maybe I had to add a using clause but that didn't seem to help. Did my installation not work correctly, fogetting to register something, or am  missing something simple? Thanks.
Nick
Telerik team
 answered on 24 Sep 2008
1 answer
213 views

Hi,

I have created a framework for our application (CMXUIFramework.Dll). All user controls are in this dll, which may comprise of one of more UI controls. This DLL can be now referenced for a stand alone app as well as an Outlook integration app. On one of the controls I have used is Microsoft’s TreeView control and everything works fine, however, when I replace the Microsoft’s TreeViewControl with a Telerik Treeview control, at runtime I get object not set to an instance of an object.

Is there anything I should know about when displaying Telerik’s controls on a form in this manor?

Thanks

P

Jordan
Telerik team
 answered on 24 Sep 2008
1 answer
115 views
I have a Windows Form GridView object that I am populating.  I need to allow the user to change the order of items in the list.  To do this, I have two buttons, MoveUp and MoveDown to let them.  For simplicity sake, I have left out a lot of error checking code from my post.

My problem is that I am calling the GridElement.BeginUpdate() and GridElement.EndUpdate() methods, and for the MoveUp it works just fine, however, oddly enough, the MoveDown causes a flicker effect, which is not supposed to happen (I think) if I am using these methods correctly.

Here is the portion of my code that is doing this action, as you can see the same code is running in both instances, I am just passing in a different change:

private

void btnMoveUp_Click(object sender, EventArgs e)
{
    MoveCurrentItem(-1);
}

private void btnMoveDown_Click(object sender, EventArgs e)
{
    MoveCurrentItem(1);
}

private void MoveCurrentItem(int indexChange)
{
    if (radgvScriptsList.SelectedRows.Count == 1)
    {
        radgvScriptsList.GridElement.BeginUpdate();
        
        MultiScriptFile
file = GetSelectedFile();
        int oldIndex = Files.IndexOf(file);
        Files.Remove(file);
        Files.Insert((oldIndex + indexChange), file);
        radgvScriptsList.Rows[(oldIndex + indexChange)].IsCurrent =
true;
      
        radgvScriptsList.GridElement.EndUpdate();
    }
}

Jack
Telerik team
 answered on 24 Sep 2008
2 answers
239 views
What I'm trying to do is AutoGenerateColumns at the end of the predetermined columns of the radgrid.  It works fine the first time the form loads, but if i change the dataset to bring back an extra column of AutoGenerated data the grid doesn't show any of the AutoGeneratedColumns anymore.  However if I remove an AutoGenerated column of data from the dataset the grid will still display the correct AutoGenerated columns of data. 

I have tried setting the radGrid.DataSource to null as well as the MasterTemplate.DataSource, before I rebind the grid with the new fields for the AutoGeneratedColumns, but that doesn't seem to work either...
Vassil Petev
Telerik team
 answered on 24 Sep 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?