This is a migrated thread and some comments may be shown as answers.

RadialGauge on Gridview

17 Answers 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shah
Top achievements
Rank 1
shah asked on 20 Oct 2019, 02:53 PM
Dear sir,
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

Sort by
0
Accepted
Dimitar
Telerik team
answered on 21 Oct 2019, 10:09 AM

Hi Shah,

This can be achieved by using the following approach:

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 21 Oct 2019, 02:19 PM
Thanks Sir Get the work
0
shah
Top achievements
Rank 1
answered on 22 Oct 2019, 10:24 AM

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

0
Accepted
Dimitar
Telerik team
answered on 22 Oct 2019, 12:51 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 22 Oct 2019, 02:03 PM

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);

 

0
Dimitar
Telerik team
answered on 23 Oct 2019, 09:34 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 23 Oct 2019, 05:03 PM

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);
            }

0
Dimitar
Telerik team
answered on 24 Oct 2019, 08:08 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 27 Oct 2019, 02:41 PM

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!!!!!

0
shah
Top achievements
Rank 1
answered on 28 Oct 2019, 09:09 AM

Dear Sir

I have add another Columns or Fields in same Gridview For RadialGauges Any possible Solution So To Please Sent me.....
Thank You!!!!!

0
Dimitar
Telerik team
answered on 28 Oct 2019, 11:10 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 05 Nov 2019, 11:09 AM

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

0
Dimitar
Telerik team
answered on 05 Nov 2019, 02:13 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 09 Dec 2019, 01:07 PM

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

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Dec 2019, 01:29 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
shah
Top achievements
Rank 1
answered on 11 Dec 2019, 01:01 PM

many thanks for the replay but how to change the categories for the posting the tread

thank you

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Dec 2019, 01:28 PM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
shah
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
shah
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or