Hi,
I have a RadTreeView with some items inside and want to drag and drop items to a custom control derived from RadControl (which is inside a DocumentWindow in a RadDock).
I tried to attach TreeViewElement.DragDropService.PreviewDragOver event but it does not fire for my custom control. (Have set AllowDrop to true and tried to implement ISupportDrop interface but no luck)
Any help would be appreciated.
Hi,
we got a pretty infuriating problem with Telerik for WinForms. We don't know why but the project started to producing errors when renaming RadControls: "Property value is not valid." (see attached screenshot). The renaming is still done, but the code for the old name is still left behind in the designer. So if I add a checkbox, it gets the name "radCheckBox1" and rename it to "radCheckBoxUser", the error will pop up and code for both will stay in the designer code. Also, if I create an event via the property window in VS for radCheckBoxUser, it will still reference the old checkbox and create a "radCheckBox1_ToggleStateChanged" event. So almost every time we add or change a control, we have to clean up designer code and code behind, which is too time consuming.
Can anybody give us a clue as to why this behavior occurs and help us to solve this problem? It would be really appreciated.
Thanks and regards,
Steve.
RadDropDownList1.ListElement.AutoSizeItems =
True
RadDropDownList1.ListElement.ItemHeight = 34
RadDropDownList1.DropDownListElement.ItemHeight = 34
RadDropDownList1.DropDownListElement.AutoSize =
True
RadDropDownList1.DropDownListElement.AutoSizeItems =
True
There's a step property in the RadTimePicker, which I up untill this point believed set the amount of hours / minutes to step when the buttons in the timepicker were clicked, this however, doesn't seem to be the case. Why is there no step property for hours and minutes?
To explain further: I want the user to only be able to step by one hour or by 30 minutes, is there no way of achieving this with the given properties existing within the Timepicker?
I make a query to a database SQL attempt to bring the result to a radGridView .... I add the row but no data as it should?
private void radButton1_Click(object sender, EventArgs e)
{
if(txtNro.Text=="")
MessageBox.Show("DEBE INGRESAR UN NRO DE ORDEN", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
else
if (txtNro.Text != "")
{
conexion.Open();
SqlCommand consulta = new SqlCommand("select Convert(varchar(10),fecIni,103) as fecIni ,Convert(Varchar(10),fecFin,103) as fecFin from ordenes where nro_orden=@nro", conexion);
consulta.Parameters.AddWithValue("@nro", Convert.ToInt32(txtNro.Text));
SqlDataReader registro = consulta.ExecuteReader();
if (registro.Read())
{
labelIni.Text = Convert.ToString(registro["fecIni"]);
labelFinal.Text = Convert.ToString(registro["fecFin"]);
}
else
{
MessageBox.Show("NO SE ENCONTRO EL NUMERO DE ORDEN INGRESADO", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
labelIni.Text = "";
labelFinal.Text = "";
}
conexion.Close();
DataTable dt = new DataTable();
conexion.Open();
SqlCommand consulta2 = new SqlCommand("select medicamento,cantidad,programa,precioUnit,precioFin from DetalleOrden where nro_orden=@nro",conexion);
consulta2.Parameters.AddWithValue("@nro", Convert.ToInt32(txtNro.Text));
SqlDataAdapter da = new SqlDataAdapter(consulta2);
da.Fill(dt);
rgv.DataSource = dt;
conexion.Close();
}
}
Input string in TextBox then use RadTreeView.FindNodes(string) to search, how can I do that can auto select the result node and focus on the result node?
very appreciated!!
Hi, I am using a GridViewMaskBoxColumn to edit and display a 12 character long string as follows: "AAAA-AAAA-AAAA"
I am using standard mask type and mask as ">LLLL-LLLL-LLLL" which forces all input characters to uppercase.
The editor works fine when inputing the string in the cell, displaying correctly the prompt characters ("_") and seperation literals ("-").
However, the text after editing is finished appears in the grid as "AAAAAAAAAAAA" instead of the desired "AAAA-AAAA-AAAA" of the mask format, which incidently is the default behavior of the maskededitbox editor I use in other parts of my application.
Can you please suggest why the desired text format behavior of the maskededitbox is not implemented in the gridview, or a way to go around this problem?
Regards,
George