i want to show RadialGauge in Gridview in Telerik UI winform using in Desktop App but it's not working.
i need like this image
it is requested that help / guidance may be provided that how to radRadial gauge in Rad gridview cell in Winform.
Thanks
17 Answers, 1 is accepted
Hi Shah,
This can be achieved by using the following approach:
- Create your gauge at design time and save its layout to XML
- Create a custom cell and use the layout.
I have attached a project that shows how this can be implemented.
In addition, I have noticed that you have two more posts on the same. I have deleted them in order to avoid duplicate posts in our forum.
I hope this helps. Please let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Dear Sir
As a Dynamically how to show these static app
it is requested that help / guidance may be provided that how to radRadial gauge in Rad gridview cell in Winform
Hi Shah,
You can set the value directly. Here is an example:
private void T_Tick(object sender, EventArgs e)
{
radGridView1.Rows[0].Cells[0].Value = rnd.Next(100);
}
I hope this helps. Please let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Sir the value get from data base through sqldatareader which obtain in data table in row column
SqlCommand cmd = new SqlCommand("select*from Gauge", con);
SqlDataReader dataReader = cmd.ExecuteReader();
DataTable dt = new DataTable();
dt.Columns.Add("id");
dt.Columns.Add("per");
while (dataReader.Read())
{
DataRow row = dt.NewRow();
row[0] = dataReader["id"];
//if ((decimal)radGridView1.Rows[1].Cells["per"].Value ==10)
// radGridView1.Rows[5].Cells["column1"].Value = row[0];
//this.radGridView1.CurrentRow = this.radGridView1.Rows[1];
//this.radGridView1.CurrentColumn = this.radGridView1.Columns[1];
//this.Text = this.radGridView1.CurrentCell.Value.ToString();
radGridView1.Rows.Add(52);
row[1] = dataReader["per"];
dt.Rows.Add(row);
Hello,
Once the data is loaded to the table you can directly bind the grid. You need to set the FieldName of the column. I have attached an updated version of the project.
Please let me know if there is anything else I can help you with.
Regards,
Dimitar
Progress Telerik
thanks you sir For the Guide to me but one more Question
How Can I add Another Field Which is already in datatable but not show in gridview
Check the code please.................
radGridView1.TableElement.RowHeight = 100;
radGridView1.AllowAddNewRow = false;
var col = new GaugeColumn();
col.Width = 100;
col.FieldName = "GaugeData";
col.DataType = typeof(int);
radGridView1.Columns.Add(col);
dataTable.Columns.Add("GaugeData", typeof(int));
dataTable.Columns.Add("name");
dataTable.Columns.Add("class");
while (sqlDataReader.Read())
{
DataRow row = dataTable.NewRow();
row["GaugeData"] = sqlDataReader["GaugeData"];
row["name"] = sqlDataReader["name"];
row["class"] = sqlDataReader["class"];
dataTable.Rows.Add(row);
}
Hi Shah,
You can add a GridViewTextBoxColumn. Here is an example: GridViewTextBoxColumn.
If you set the data source before adding any columns they will be autogenerated according to the fileds data type.
Please let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Thanks for the the reply.
Sir One More Question......
I have add another Columns or Fields in same Gridview For RadialGauges Any possible Solution So To Please Sent me.....
Thank You!!!!!
Dear Sir
I have add another Columns or Fields in same Gridview For RadialGauges Any possible Solution So To Please Sent me.....
Thank You!!!!!
Hello Shah,
To add other columns use the same code and specify different column names. Make sure to set the FieldName as well.
Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Hello Sir I hope you are good!
1)I have a question can i use the radradial gauges as taking the user control and than we use in radgridview just like the above with xml.
2)one another question how can i set the specific column text to vertical in radgridview
Hi Shah,
1. I do not understand the question. Can you give an example of what you want to achieve in this case?
2. To have a vertical text you can set the AngleTransform property in the CellFormatting event handler:
private void RadGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.Column.Name == "Name")
{
e.CellElement.AngleTransform = 270;
}
else
{
e.CellElement.ResetValue(LightVisualElement.AngleTransformProperty, ValueResetFlags.Local);
}
}
I am looking forward to your reply.
Regards,
Dimitar
Progress Telerik
Hi Sir !
I have an issue in Kendo grid Search panel. i implement the code for search panel but it shows Search button instead of Search panel
in Asp.net Core
Note: UI version: telerik.ui.for.aspnet.core -Version 2019.3.917.
snapshot is attached
Hello, Shah,
I would like to note that this form is related to the Telerik UI for WinForms suite. However, your question seems to be related to another product.
Feel free to submit your technical inquires in the relevant forum and thus the appropriate community will gladly assist you: https://www.telerik.com/forums
Thank you for your understanding.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
many thanks for the replay but how to change the categories for the posting the tread
thank you
Hello, Shah,
Feel free to submit a new question in the relevant forum according to the product you are using. Open the following link: https://www.telerik.com/forums , then select the forum in which you want to post the inquiry and select the control for which you need assistance. THus, your question will reach the relevant community which will gladly assist you.
I hope this information helps.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik