Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
184 views

We are creating a Grid dynamically based upon an ad-hoc definition of selected columns and data sources by the end-user.   We have a number of columns which we need to offer the user "ToolTip" information which is database driven and specific to the value in the row.

I've been looking at building a new class which implements ITemplate and adds the field value (using a label) and attaches a RadToolTip to the label in the cell, but it seems like I have to implement the formatting/aggregates/etc on my own.

Another thought I had would be to use an BoundColumn, but override the DataBinding event (or to add an additional event to the firing of DataBind) and attach the tooltip there, but it seems like I can't.   We have source code access and I can see how it's done behind the scenes, but I'm just not sure where to do it and still use the released controls.

 

Right now our columns inherit from the base GridColumns (GridBoundColumn, GridHyperlinkColumn) and get their values on the fly from from our settings system.   Here's an example:

 

 

 

        public class BoundGridColumn : Telerik.Web.UI.GridBoundColumn  
    {  
 
        public BoundGridColumn()  
        {  
 
        }  
 
        public BoundGridColumn(string column)  
        {  
              
                this.DataField = column;  
                this.UniqueName = column;  
                this.SortExpression = column;  
                this.HeaderText = Utility.GetSetting(column + ".Header");  
              
 
                if (Utility.GetSetting(column + ".Width").Length > 0)  
                {  
 
                    int _width = Convert.ToInt32(Utility.GetSetting(column + ".Width"));  
 
                    this.HeaderStyle.Width = Unit.Pixel(_width);  
                    this.FooterStyle.Width = Unit.Pixel(_width);  
 
                    this.ItemStyle.Width = Unit.Pixel(_width);  
                }  
                else  
                {  
                    this.HeaderStyle.Width = Unit.Pixel(100);  
                    this.FooterStyle.Width = Unit.Pixel(100);  
                    this.ItemStyle.Width = Unit.Pixel(100);  
                }  
 
                if (Utility.GetSetting(column + ".Item.Align").Length > 0)  
                    this.ItemStyle.HorizontalAlign = (HorizontalAlign)Enum.Parse(typeof(HorizontalAlign) , (Utility.GetSetting(column + ".Item.Align")));  
 
                if (Utility.GetSetting(column + ".Footer.Align").Length > 0)  
                    this.FooterStyle.HorizontalAlign = (HorizontalAlign)Enum.Parse(typeof(HorizontalAlign) , (Utility.GetSetting(column + ".Footer.Align")));  
 
                if (Utility.GetSetting(column + ".Header.Align").Length > 0)  
                    this.HeaderStyle.HorizontalAlign = (HorizontalAlign)Enum.Parse(typeof(HorizontalAlign) , (Utility.GetSetting(column + ".Header.Align")));  
 
 
                // = Unit.Pixel(_width);  
 
                if (Utility.GetSetting(column + ".Visible").Length > 0)  
                    this.Visible = Convert.ToBoolean(Utility.GetSetting(column + ".Visible"));  
 
                this.DataFormatString = Utility.GetSetting(column + ".Format");  
                this.DataType = System.Type.GetType(Utility.GetSetting(column + ".DataType"));  
                if (Utility.GetSetting(column + ".Aggregate").Length > 0)  
                    this.Aggregate = (GridAggregateFunction)Enum.Parse(typeof(GridAggregateFunction) , Utility.GetSetting(column + ".Aggregate"));  
                if (Utility.GetSetting(column + ".AllowFiltering").Length > 0)  
                    this.AllowFiltering = Convert.ToBoolean(Utility.GetSetting(column + ".AllowFiltering"));  
 
                this.Groupable = true;  
                this.ItemStyle.Wrap = false;  
              
                  
 
            }  
 


So where/how can I attach a value specific tooltip to this column

 

Iana Tsolova
Telerik team
 answered on 25 Nov 2009
3 answers
153 views
We're using the WEB20 skin with the Q3 2009 release.  Did the font default to a smaller size with the latest release?
Dimo
Telerik team
 answered on 25 Nov 2009
9 answers
119 views
Hi,

I want to show tooltip for selected item in rad combo. I am binding the rad combo dynamically.

I found some post for tooltip for rad combo but they were not for the dynamic binding.



Thanks,
Awadh
Simon
Telerik team
 answered on 25 Nov 2009
4 answers
93 views
Hi,
I have a rad grid with only Add and Delete functionality. Please note that there is no "EDIT" button on the records.
when I click on "Add" the new row for adding a new record shows up but when the grid is in Add mode, I dont see "insert" and "cancel" buttons on the new row. This thing does not happen when I have "Edit" button on the grid. Please advice as to how can I have "insert" and "cancel" buttons on the new row when there is no edit button on the grid.

Thanks
DC
DC
Top achievements
Rank 1
 answered on 25 Nov 2009
1 answer
170 views
Hello
I have a RadioButtonList and a table named "TableDateCalendrierCroisement" in a form. When I select the value "2" (which is "oui") on my RadioButtonList, I want the table be visible, when I select the value "1" (which is "non") then I want my table.visible=false. I do it in code behind but I would like to do it with ajax. Is it possible?
Thanks you!
Shinu
Top achievements
Rank 2
 answered on 25 Nov 2009
2 answers
67 views
I keep getting the following error:

this._folderCache is undefined

It appears to be coming from the _changeCurrentFolder function: this line in the RadFileExplorer javascript:

if(this._folderCache[e]!=null&&!f){this._onCallbackResponse(this._folderCache[e],j);} 

Now, this perplexes me because it appears that the FileExplorer works correctly in all other regards except when I initiate some action that refreshes the left hand tree view pane. (Which by the way, loads correctly as I interact with opening folders...)

Deleting a file, folder, or even clicking the refresh icon causes the above error.

So my question is - How could this variable not be defined (it appears to be defined in the initialization of the object, javascript side)? Is there some way for me to debug this on my end that isn't apparent to me? I am using a custom content provider for this and so far I am happy with everything else other than this!

Thanks
Fiko
Telerik team
 answered on 25 Nov 2009
1 answer
89 views
Rich text editor doesnt work for safari browser. Can anyone help me on this?

Regards,
Pervez

Stanimir
Telerik team
 answered on 25 Nov 2009
1 answer
147 views
Hi everyone,

I've just installed the new release (Q3 2009) of the RadControls for ASP.NET Ajax, since the new version corrected the bug concerning changing the captcha textbox label programmatically, which work fine now.

But I just notice that it seems to have the same problem with the CaptchLinkButtonText property. I tried to change it programmatically in the page_Load event, but the change is not applied when the control is rendered. I need to be able to change it programmatically if I want to use this functionnality, since my web site is multi-language (english and french)

Is it a known problem or am I doing something wrong?

Thanks,
Pero
Telerik team
 answered on 25 Nov 2009
10 answers
218 views
Hi,

I have a function:

protected void scheduler_AppointmentInsert(Object sender, SchedulerCancelEventArgs e) 
... 

When using all of RadScheduler's default templates for inserting and such, RecurrenceRule always seems to be empty and RecurrenceState is always NotRecurring. I'm using e.Appointment.RecurrenceRule to try to access it. All of the other data is there (title, end time, start time)

As far as I know, we are currently using the most up-to-date patch (that isn't officially released yet). Is this a bug or am I doing something wrong?


T. Tsonev
Telerik team
 answered on 25 Nov 2009
1 answer
649 views
Hi,

WOuld you please tell any sample with telerik radgrid subtotal and total, and sub-header for each sub-total?

thanks

daniel
Princy
Top achievements
Rank 2
 answered on 25 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?