Hi, I've tried to create a radGridView control programmatically so I can host it inside of a radHostControl, I do believe the problem has nothing to do with hosting as it occurs before I host it. : When I create teh control using the following code, I give it a Datasource which has data, however the control reports that it has no columns in its properties. And continuing, the control actually shows the data and all the columns when the app is live; the problem being I can't access these columns as they apparently do not exist:
RadGridView gridView = new RadGridView();
Telerik.WinControls.UI.TableViewDefinition tableViewDefinition14 = new Telerik.WinControls.UI.TableViewDefinition();
gridView.BeginInit();
gridView.MasterTemplate.BeginInit();
gridView.Size = new Size(100, 300);
gridView.AutoGenerateColumns = true;
gridView.DataSource = blacklistProps;
getBlacklist();
gridView.MasterTemplate.AllowAddNewRow = false;
gridView.MasterTemplate.AllowColumnChooser = false;
gridView.MasterTemplate.AllowColumnHeaderContextMenu = false;
gridView.MasterTemplate.ShowColumnHeaders = false;
gridView.MasterTemplate.ShowFilteringRow = false;
gridView.MasterTemplate.ShowRowHeaderColumn = false;
gridView.MasterTemplate.ViewDefinition = tableViewDefinition14;
gridView.Name = "blacklistGridView";
gridView.RootElement.MinSize = new System.Drawing.Size(0, 0);
gridView.ShowGroupPanel = false;
//gridView.Size = new System.Drawing.Size(316, 381);
gridView.TabIndex = 0;
gridView.ContextMenuOpening += new Telerik.WinControls.UI.ContextMenuOpeningEventHandler(this.gridViewMappings_ContextMenuOpening);
gridView.MasterTemplate.EndInit();
gridView.EndInit();
if (e.CellElement.IsCurrent) { e.CellElement.DrawFill = false; e.CellElement.DrawBorder = false; } else { e.CellElement.ResetValue(LightVisualElement.DrawBorderProperty, Telerik.WinControls.ValueResetFlags.Local); e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, Telerik.WinControls.ValueResetFlags.Local); }
private void maskedTextBox1_Enter(object sender, EventArgs e) { if ((maskedTextBox1.Text.Trim()).Length == 0) { maskedTextBox1.Focus(); SendKeys.Send("{HOME}"); MessageBox.Show(maskedTextBox1.Focused.ToString()); } }

Hi!
Is there a way, maybe I'm missing something, to apply a DataTypeConverer to a DropDownList, the same as we are able to do with a column in a RadGridView?
The idea is that the DisplayMember I need to set is a collection of KeyValuePair. Depending on a key configured externally, I need to choose a specific value. This can be done for grid by applying a custom DataTypeConverter.
For example, let's say the data source is like the following:
var dataSource = new List<Entity>{
new Entity
{
int Id = 1;
string Name = "NameSample";
Dictionary<int, string> Descriptions = new Dictionary<int, string>
{
{0, "descriptionInEnglish"},
{1, "descriptionInGerman"}
};
}
};
I need to set the DisplayMember of the DropDownList to show the description in a language depending on an external setting.
Thanks!
I have a GridViewComboBoxColumn and while in edit mode I want the StretchVertically to be false so I use the following code:
this.radGridView1.CellBeginEdit += RadGridView1_CellBeginEdit;
private void RadGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
switch (e.Column.Name)
{
case "MyColumn":
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
if (editor != null)
{
editor.EditorElement.StretchVertically = false;
editor.EditorElement.Alignment = ContentAlignment.TopLeft;
}
But the dropdownlisteditor is still vertically centered in the cell. Is there a way to have it TopLeft?

Hi,
I defined item and dragged it to the radDiagram.
My question is how to find the items by ID?
When I found the IDs, I would connect two items programmatically. <Source and target are known>.
I used this code
MessageBox.Show(radDiagram1.Shapes[0].Name.ToString());
but nothing ...
But when I used this code
MessageBox.Show(radDiagram1.Shapes[0].Width.ToString());
the width was shown!
I need to find the items individually.
Thank you


Is there a way to change the button on the collapsible panel from a round button to a rectangle? I would have TEXT in the button instead of a UP/DOWN arrow?
TIA
grid.CurrentRow = grid.Rows[rowIndex];<br>grid.CurrentColumn = grid.Columns[fieldIndex];grid.CurrentRow = selectedRow.ViewInfo.ParentRow.ChildRows[rowIndex];grid.CurrentColumn = selectedRow.ViewInfo.ParentRow.ChildRows[rowIndex].ViewTemplate.Columns[fieldIndex];