Show (focus)cell data as selected

2 posts, 0 answers
  1. Syed
    Syed avatar
    36 posts
    Member since:
    Sep 2013

    Posted 16 Oct 2013 Link to this post

    Hi,
    iam working with pivot grid.
    In my pivot grid iam displaying the result as Gantt view now everything is fine.
    in my grid cell bound i check the result date with today if its today i sed the cell back color as red.
    till this it works fine .
    now my need is after binding i want to focus the cell which is equal to today.
    check the image attached
    In this Img1 i have loaded the data .
    But i need the selected column or cell to be focused for todays data as in Img2 .
  2. Syed
    Syed avatar
    36 posts
    Member since:
    Sep 2013

    Posted 16 Oct 2013 Link to this post

    Hi,
    I have done this in Celldatabound

     int cellwidth=Convert.ToInt32(cell.Field.CellStyle.Width.Value);
                    if (todayes == DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd"))
                    {
                        cell.BackColor = Color.Red;
                        //cell.Focus();

                        //cell.Field.Show();

                        RadPivotGrid1.ClientSettings.Scrolling.ScrollLeft = Convert.ToString(cell.ColumnIndex * cellwidth+60);
                    }

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top