or
private
void
listView_DragEnter(
object
sender, DragEventArgs e)
{
MessageBox.Show(
"DragEnter"
);
}
private
void
listView_DragDrop(
object
sender, DragEventArgs e)
{
MessageBox.Show(
"DragDrop"
);
}
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Text;
using
System.Windows.Forms;
using
Telerik.WinControls;
namespace
DragFromDesktop
{
public
partial
class
DragFromDesktopForm : Telerik.WinControls.UI.RadForm
{
public
DragFromDesktopForm()
{
InitializeComponent();
}
private
void
DragFromDesktopForm_Load(
object
sender, EventArgs e)
{
}
private
void
closeButton_Click(
object
sender, EventArgs e)
{
this
.Close();
}
private
void
listView_DragEnter(
object
sender, DragEventArgs e)
{
//MessageBox.Show("DragEnter");
}
private
void
listView_DragDrop(
object
sender, DragEventArgs e)
{
MessageBox.Show(
"DragDrop"
);
}
}
}
public
static
void
SetGridFilterComposite(RadGridView gridView, Dictionary<
string
, List<
int
>> filterValues)
{
CompositeFilterDescriptor mainDescriptor =
new
CompositeFilterDescriptor();
List<
int
> values =
null
;
if
(filterValues ==
null
|| filterValues.Count == 0)
return
;
ClearGridFilterColumns(gridView);
foreach
(
string
column
in
filterValues.Keys)
{
CompositeFilterDescriptor columnDescriptor =
new
CompositeFilterDescriptor();
if
(gridView.Columns.Contains(column))
{
values = filterValues[column];
FilterDescriptor filterDescriptor =
new
FilterDescriptor();
foreach
(
int
value
in
values)
{
filterDescriptor.PropertyName = column;
filterDescriptor.Operator = FilterOperator.IsEqualTo;
filterDescriptor.Value = value;
columnDescriptor.FilterDescriptors.Add(filterDescriptor);
}
columnDescriptor.LogicalOperator = FilterLogicalOperator.Or;
mainDescriptor.FilterDescriptors.Add(columnDescriptor);
}
}
mainDescriptor.LogicalOperator = FilterLogicalOperator.And;
mainDescriptor.IsFilterEditor =
true
;
gridView.FilterDescriptors.Add(mainDescriptor);
}
Posted 9 hours ago (permalink)
Hi again... :-)
I have read the FAQ : Redistributing Telerik RadControls for WinForms
But have some doubts regarding it.
There are two approaches right ? One is to make a single EXE file by merging the assemblies and the EXE of the program. And the other is to merge the assemblies into a single assembly. Am I right ?
If I want to go for the second approach, from where should I get the ILMerge program ?
Thanks in advance..
PS: Special thanks to Richard Slade for the continuous help he had provided to me. Really appreciate it... :-)
private
void
radGridView1_CellFormatting(
object
sender, CellFormattingEventArgs e)
{
.
.
.
RadProgressBarElement ProgressBarOne =
new
RadProgressBarElement();
ProgressBarOne.Click +=
new
EventHandler(ProgressBarOne_Click);
.
.
}
void
ProgressBarOne_Click(
object
sender, EventArgs e)
{
MessageBox.Show(
"somethings"
);
}
private
void
InitializeComponent()
{
this
.radTrackBar1 =
new
Telerik.WinControls.UI.RadTrackBar();
((System.ComponentModel.ISupportInitialize)(
this
.radTrackBar1)).BeginInit();
this
.SuspendLayout();
//
// radTrackBar1
//
this
.radTrackBar1.Location =
new
System.Drawing.Point(13, 13);
this
.radTrackBar1.Maximum = 200F;
this
.radTrackBar1.Minimum = 20F;
this
.radTrackBar1.Name =
"radTrackBar1"
;
this
.radTrackBar1.Size =
new
System.Drawing.Size(150, 17);
this
.radTrackBar1.TabIndex = 0;
this
.radTrackBar1.TickStyle = Telerik.WinControls.Enumerations.TickStyles.None;
this
.radTrackBar1.Value = 100F;
//
// Form1
//
this
.AutoScaleDimensions =
new
System.Drawing.SizeF(6F, 13F);
this
.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this
.ClientSize =
new
System.Drawing.Size(292, 273);
this
.Controls.Add(
this
.radTrackBar1);
this
.Name =
"Form1"
;
this
.Text =
"Form1"
;
((System.ComponentModel.ISupportInitialize)(
this
.radTrackBar1)).EndInit();
this
.ResumeLayout(
false
);
this
.PerformLayout();
}