Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
how to enable tooltip in mvc controller
posted

Hi ,

How to enable tooltip feature in dynamically created column in the controller

foreach (var year in Years)
                    {
                        col = new GridColumn()
                        {
                            HeaderText = years,
                            Key = years,
                            DataType = "double",
                           
                        };
                        Genyr.Columns.Add(col);
                        ColumnUpdatingSetting colUpdate = new ColumnUpdatingSetting();
                        colUpdate.ColumnKey = years;
                        colUpdate.DefaultValue = "0.00";
                        colUpdate.Required = true;

                        lsColumnSettings.Add(colUpdate);
                  
                    }
                    GridTooltips g = new GridTooltips();
                    g.Name = "tooltip";

                    GridUpdating update= new GridUpdating() { ColumnSettings = lsColumnSettings,EnableAddRow = false};
                    Genyr.Features.Add(update);