Telerik Forums
UI for WinForms Forum
2 answers
283 views
Is it possible to set the readonly property of a single cell in a row or column?  I want certain cells to be readonly based on other data in the row.

Thanks
Bob
Top achievements
Rank 1
 answered on 15 Nov 2010
3 answers
457 views
I updated to version 2010.3.10.1109 from 2010.2.10.914 and when I set the datasource I now get TargetInvocationException
"Exception has been thrown by the target of an invocation.".  It was working fine in the previous version.

Any ideas?

Thank you,
Aaron
Julian Benkov
Telerik team
 answered on 15 Nov 2010
2 answers
170 views
Hi

I have scheduler with resources showed in timeline view. Every 5 second scheduler is refreshed (check if there is any changes in scheduler data source). After that, for some reason, resources lose their color (became gray), so they need to be repainted, like this:

For Each res As Resource In RadScheduler1.Resources
    res.Color = Color.Aquamarine
Next
 
To ensure that resources are repainted, I need to call this part of code:
Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
schtimelineGrouping.RefreshViews(True)
schtimelineGrouping = Nothing

And it seems that this procedure RefreshViews make a problem with memory leak.
 
To be sure, I created a test application which every 5 second execute only coloring and refreshing of scheduler resources, for example:
For Each res As Resource In RadScheduler1.Resources
    res.Color = Color.Aquamarine
Next
     
Dim schtimelineGrouping As TimelineGroupingByResourcesElement = TryCast(RadScheduler1.SchedulerElement.ViewElement, TimelineGroupingByResourcesElement)
schtimelineGrouping.RefreshViews(True)
schtimelineGrouping = Nothing
In a short period of time (1 hour) application increased memory usage from 44MB to over 100MB.

In a real application memory usage growth to more than 1.5GB, and than Out of Memory exception occurred. For a testing purposes application was working almost for a 24 hours. 
 
Is this a good approach of resource coloring, and how this can be fixed?

Thanks.
Dejo Savicevic
Top achievements
Rank 1
 answered on 15 Nov 2010
5 answers
276 views
I have the following problem in windows application.

I am creating columns by code and then adding rows. As in the following example:

textcolum dim as gridviewtexboxcolumn
textcolum = new gridviewtexboxcolumn
textcolum.fieldname = "name"
textcolum.textalignment = contentaligment.middlecenter
....
....

rowinfo = me.GRID.rows.addnew ()
rowinfo.cells (0). value = "Peter bad"

export to excel, the column name is not justified to center, as I indicated in the code, but is justified on the left.

help please!
Emanuel Varga
Top achievements
Rank 1
 answered on 15 Nov 2010
0 answers
216 views

The brand new RadCommandBar is the successor of RadToolStrip. It is a flexible control for adding tool and button strips, which complement application menus in most Windows applications. The new control will come with the same features as the obsolete product (such as horizontal and vertical orientation, docking, drag and drop tool rearrangement, Add/Remove tools, etc.), but will also provide several new vital features:

  • Completely new and easier design-time support;
  • Theme and Visual Style Builder support;
  • Auto-collapse on form resize.

The old RadToolStrip control will be supported for at least one year, but users will be encouraged to use the new control since it addresses the shortcomings of the previous one. Telerik will be glad to assist you with upgrading to the new version. To get technical support, either contact Telerik support or post in the CommandBar Forum.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 15 Nov 2010
2 answers
174 views

I am trying to create a custom add page for appointments for telerik scheduler. I want my page to be displayed rather than the add appointment template built in the scheduler. I looked at the Advanced Insert Template but I don't think it allows redirecting to a custom page.

Richard Slade
Top achievements
Rank 2
 answered on 15 Nov 2010
2 answers
279 views
I am populating a RadGrid, and afterwards, I want to loop through the rows and change the backcolor based on the data in one of the columns.  I cannot make it work.  Any suggestions?  This is a VB.Net winforms application.

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 15 Nov 2010
3 answers
161 views

Hi

For example in Windows explorer there is nice functionality for selecting items (rows):
SHIFT + HOME (select items from first to current), SHIFT + END (select items from current to last item).

How can I enable this functionality in RadGridView for rows?
By default those shortcuts select first and last cell in current row.

Regards

Richard Slade
Top achievements
Rank 2
 answered on 15 Nov 2010
3 answers
473 views
Hi all,
I have the problem that the text inside the combobox after selection is right align ?!
(see screenshot)
I find similiar posts here but not really a solution.
Is it possible to set the alignment programmatically ?

ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ComboBox.aspx.cs" Inherits="ComboBox" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <rad:RadScriptManager ID="uxRadScriptManager" runat="server"></rad:RadScriptManager>  
    <rad:RadComboBox ID="RcbFarAway" runat="server" ></rad:RadComboBox>     
    </form> 
</body> 
</html> 
CS
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
public partial class ComboBox : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        RcbFarAway.Items.Clear(); 
        RcbFarAway.ID = "RcbFarAway"; 
        RcbFarAway.Width = Unit.Pixel(100); 
        RcbFarAway.DropDownWidth = 220; 
        RcbFarAway.AutoPostBack = false; 
        RcbFarAway.MarkFirstMatch = true; 
 
        for (int i = 0; i < 5; i++) { 
            RcbFarAway.Items.Add(new Telerik.Web.UI.RadComboBoxItem(i.ToString() + " Far far far far far away ...", i.ToString())); 
        } 
    } 
} 



Michael Fellmeth
Top achievements
Rank 1
 answered on 14 Nov 2010
3 answers
320 views
When I check my nodes, I get the events firing, but when I uncheck them nothing happens...and any additional click doesn't trigger an event....any idea why? :)

private void radTreeView1_NodeCheckedChanged(object sender, RadTreeViewEventArgs e) {
    foreach (RadTreeNode n in e.Node.Nodes){
        n.Checked = e.Node.Checked;
        this.ChangeCheck(n.Nodes, e.Node.Checked);
    }
 
    //Check to see if this entire node is unchecked, then uncheck the parent
    if (e.Node.Parent != null) {
        //If none are checked
        var checkCount = e.Node.Parent.Nodes.Count(x => x.Checked);
        if (checkCount == 0) {
            e.Node.Parent.Checked = false;
        }else if (checkCount == e.Node.Parent.Nodes.Count()){ //If all are checked
            e.Node.Parent.Checked = true;
        }
    }
 
}
 
private void ChangeCheck(RadTreeNodeCollection nodes, bool state){
    foreach (RadTreeNode n in nodes) {
        n.Checked = state;
        this.ChangeCheck(n.Nodes, state);
    }
}
Richard Slade
Top achievements
Rank 2
 answered on 14 Nov 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?