Private
Sub
RadMenuItem1_Click(sender
As
Object
, e
As
EventArgs)
Handles
RadMenuItem1.Click
'Small
'RadPanorama1.SuspendUpdate()
tileBig.ColSpan = 1
tileBig.RowSpan = 1
tileBig.Size =
New
Size(200, 200)
'RadPanorama1.ResumeUpdate()
RadPanorama1.Refresh()
'
ReArrange()
End
Sub
Private
Sub
RadMenuItem3_Click(sender
As
Object
, e
As
EventArgs)
Handles
RadMenuItem3.Click
'Large
tileBig.ColSpan = 2
tileBig.RowSpan = 2
' tileBig.Size = New Size(400, 400)
RadPanorama1.Refresh()
'
ReArrange()
End
Sub
ToolWindow tool = new ToolWindow();
tool.Text = form.Text;
this.radDock1.FloatWindow(tool, new Rectangle(new Point(this.DesktopBounds.X + this.DesktopBounds.Width / 2 - formWidth / 2,
this.DesktopBounds.Y + this.DesktopBounds.Height / 2 - formHeight / 2), new Size(formWidth, formHeight)));
form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
form.TopLevel = false;
form.Dock = DockStyle.Fill;
form.Show();
foreach(DockWindow dock in this.radDock1.DockWindows)
{
if(GesHelper.Equals(dock.Name, tool.Name))
{
dock.Controls.Add(form);
dock.CloseAction = DockWindowCloseAction.CloseAndDispose;
break;
}
}
private
DataTable dataTable;
public
Form1()
{
InitializeComponent();
radGridView1.AutoSizeRows =
false
;
radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
radGridView1.RowFormatting += radGridView1_RowFormatting;
radGridView1.ReadOnly =
true
;
radGridView1.ShowRowHeaderColumn =
false
;
radGridView1.VerticalScrollState = ScrollState.AlwaysShow;
radGridView1.ThemeName =
"Office2010Black"
;
dataTable =
new
DataTable();
dataTable.Columns.Add(
"number"
,
typeof
(
int
));
dataTable.Columns.Add(
"descriptions"
,
typeof
(
string
));
radGridView1.DataSource = dataTable;
}
void
radGridView1_RowFormatting(
object
sender, RowFormattingEventArgs e)
{
e.RowElement.RowInfo.Height = 120;
}
private
void
radButton1_Click(
object
sender, EventArgs e)
{
radGridView1.Enabled =
false
;
Random rnd =
new
Random((
int
)DateTime.Now.Ticks);
dataTable.Clear();
for
(
int
i = 0; i < rnd.Next(1000); i++)
{
DataRow row = dataTable.NewRow();
row[0] = i + 1;
row[1] =
"description"
+ i.ToString();
dataTable.Rows.Add(row);
}
radGridView1.Enabled =
true
;
}
Hello,
I am new to Telerik WinControl. I’m using version 2012.3.1017.40.
I was looking for a control for displaying a chart-diagram in a Windows Forms application. I found the controls “RadChart” and “RadChartView”. Because of the advice of use the control “RadChartView” in your documentation I was making first experiences with this control the last days. As I can see so far, this control seems to be a powerful tool. Having created, configured this control and bound data to it I am looking for the possibility to print out the content of this control. In the documentation I have read that RadChartView does not support the functionality to export its content to a file. I would like to get to know if it is possible to print out the content of a “RadChartView” control anyway.
Karim el Safadi
Hi,
I am working on the hierarchical grid and displaying data using self references.
My requirement is when i refresh the grid then the selectd row should be selected and the scroll bar
position should be at the same location but now when i refresh the scroll bar is moved to top of the grid.
could you please help me on the above requirement?
Thanks & Regards
Muralidhar Dasari
Code Snippet for refresh:-
using (radGridView1.DeferRefresh())
{
this.radGridView1.TableElement.Update(GridUINotifyAction.DataChanged);
this.radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);
}
foreach
(Telerik.WinControls.StyleRepository repository
in
theme.Repositories)
{
if
(repository.ItemType ==
"Image"
)
{
foreach
(Telerik.WinControls.PropertySetting setting
in
repository.Settings)
{
if
(setting.Name ==
"Image"
)
{
Bitmap bmp = GetBitMap(repository.Key);
setting.Value = bmp
}
}
}
}