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

Displaying the Radgrid Header Column ToolTip

20 Answers 1170 Views
GridView
This is a migrated thread and some comments may be shown as answers.
naveen kumar
Top achievements
Rank 1
naveen kumar asked on 07 Oct 2008, 09:37 AM
Hi Team,

    1). I want display Radgrid Header Column ToolTip. It is not displaying if  i give the value to ToolTip Property using xaml applications.

    2). I want to change the radgrid datacolumn border ro RedColor in error message( how Infopath forms will display when an error occurs) using xaml applications.

    Please help me.

   Thanks in Advance.

Regards,
Naveen Kumar.

20 Answers, 1 is accepted

Sort by
0
Dimitar Dobrev
Telerik team
answered on 09 Oct 2008, 09:06 AM
Hello Naveen,

1) The attached archive of "ColumnTooltip" contains a solution which displays a tab control. We were not able to determine if you would like to see tool tips for the header cells or for the data cells. So we made two examples (displayed in their own tabs in the tab control) and we hope that at least one of them fulfills your requirements. In the first tab you will see a RadGridView control that displays tool tips whenever the header cells are hovered. The second tab shows a tool tip when your mouse enters a data cell.

2) To set a border of an element to your desired colour when validation fails, you should handle the GridViewCell.PreviewValidate event, as you will see in the second example, named "RedErrorBorder". In the handler for this event, after sample validation is performed, the cell containing the invalid data gets a red border. If, by chance, we misunderstood you and you'd like to have a red border on the whole column, to which the invalid cell belongs, please write back to us and it will be a pleasure for us to send you an additional example.

Yours,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
naveen kumar
Top achievements
Rank 1
answered on 10 Oct 2008, 01:12 PM
Hi Dimitar,
Thanks for replying it.

1). For ToolTip it's working properly, but i need customize it.
     Means i want to give my own value. Not the Header Value.

2). On a Single Mouse Click on RadGridView particular row i want it to be
      in edit mode and whenever i press TAB it should go to the next cell    
      and that should also in edit mode.
      Now this is running properly with Double MouseClick.

3). How the Tab MoveNavigation is achieved in the RadGrid.
0
Dimitar Dobrev
Telerik team
answered on 13 Oct 2008, 01:17 PM
Hello Naveen,

1) we set the header text to be displayed just as an example; you can show any value you want. You just need to replace our binding in the sample style we sent you:

<Style TargetType ="{x:Type telerik:GridViewHeaderCell}"
    <Setter Property="ToolTip" Value="{Binding Content, RelativeSource={RelativeSource Self}}"/> 
</Style> 

with your desired value;

2) we do not support this feature yet in our service pack. However, in our next release we will have a decent implementation of this feature. If you'd like, we can send you a pre-release build of our Q3 release so that you can test if the feature works well enough for you;

3) we are not sure if we fully understand this question. To be able to answer you correctly, we'd like kindly to ask you to be a little more specific as to what exactly interests you.

Thank you for your question. Please, feel free to continue your communication with us.

Sincerely yours,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
naveen kumar
Top achievements
Rank 1
answered on 13 Oct 2008, 02:29 PM
Hello Dimitar,

Thanks for your reply.

I have a very urgent requirement

1). ToolTip is Ok.

2). Can u send that  pre-release build of your Q3 release, so i can try with that.

3). Whenever I Press TAB,  it should move to the next cell in the same row
      with editable feature.

4). How can we get the default textbox, whenever we double click the 
     particular cell.(i.e., GridViewDataColumn). 
      Can we change this textbox to other control like dropdown or any other.

         Very Urgent Please.
Thanks in Advance,
Kumar.
0
Dimitar Dobrev
Telerik team
answered on 14 Oct 2008, 06:53 AM
Hello Naveen,

To receive your build, please open a new support ticket. Regarding your 4th point, in our sample application you can see an example, called "Editors". There you can see different columns using different types of editors, including a drop-down editor.

Please let us know if you need additional help.

Best wishes,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
naveen kumar
Top achievements
Rank 1
answered on 14 Oct 2008, 07:06 AM
Hi Team,

With Tab MoveNavigation, how to set the next cell in editable.

It is focusing the next cell, but whenever i select 1st column with edit mode and
if i press TAB, then it should move to the next cell with editable mode only.

presently it is moving to the next cell, but not in editable mode.

please help me.

Thanking You,
Kumar.
0
Dimitar Dobrev
Telerik team
answered on 14 Oct 2008, 08:45 AM
Hi Naveen,

We will be glad to send you our pre-release build. To do that, you need to open a new support ticket, since we are not able to post the build in the public forum. Thank you for your understanding and your patience.

Regards,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
naveen kumar
Top achievements
Rank 1
answered on 14 Oct 2008, 05:34 PM
Hi Dimitar,

1). I didn't find Ticket, where can i found it.

2). I want to set to size of the column width automatically( i.e., when the   column has lenghty data , then column should be lenghty otherwise column should be small).There is property ColumnWidthMode but it is giving extra space with column.

3).  How to change the Column HeaderCellStyle (Bold,Italics,Regular ........)

4). When the parent Grid has child Grid, i want to reduce the gap between the 2 Grids. Now it is giving some gap , i want to reduce it.

5). I want to set GroupPanel for Parent and not to Child.
      when i set GroupPanel True  to Parent and for Child to False. it is not 
       coming.
6). Setting Column Length for parent is working properly but not working 
       to child.

7).  For dragging the column line (which  we have set the by coding.) it is working properly in parent in child   ,  it is not  working .

   send as early as possible.

Thanks in Advance.
Kumar.



0
Dimitar Dobrev
Telerik team
answered on 17 Oct 2008, 12:01 PM
Hello, Naveen,

1. To open a support ticket, please take the following steps:
    - log in your client profile;
    - from the menu to the left, click "My Support Tickets";
    - on the new page, click "Submit a support ticket" at the bottom;
    - from the list on the new page, click "RadControls for WPF" from the "Product" column;
    - find the row that begins with "RadGridView for WPF" and click "New Support Ticket" in that row;

2. Unfortunately, we do not currently support automatic width of the whole RadGridView when the columns are automatically sized. This feature is scheduled for one of our future releases;

3. In ColumnFont.zip you can find an example of styling the headers of columns. We use the GridViewColumn.HeaderCellStyle property to set some sample font settings. Of course, you can set any other properties for the header cell in these styles;

4. We assume that by "gap" you mean the group panel. Hiding the group panel is available in our Q3 release. You will receive this feature in a custom build when you open your support ticket;

5. Please refer to point 4;

6. We do not fully understand what you mean by "Column Length"; if you have in mind the width mode of the columns, you can set it by using a control template for ChildDataControlsPresenter. You can find a sample in HierarchyWidthMode.zip;

7. This is unfortunately a bug in our product; we are working on fixing it as soon as possible.

Regards,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ralph
Top achievements
Rank 1
answered on 18 Jan 2009, 09:43 PM
How about suppling zips that containt vb.net sln
0
Lawrence Bredehoeft
Top achievements
Rank 1
answered on 23 Oct 2009, 04:08 PM
At this time can we make the RadGridView enter edit mode on a single mouse click?

Thanks
0
Nedyalko Nikolov
Telerik team
answered on 26 Oct 2009, 11:44 AM
Hi Lawrence Bredehoeft,

There is a property EditTriggers available both for RadGridView and GridView...Column. The usage of this property is something like this:

<telerik:RadGridView x:Name="radGridView" EditTriggers="Default, CellClick" .../>

Best wishes,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Twistur
Top achievements
Rank 1
answered on 12 Dec 2011, 11:51 PM
I use the following mark up but it's not working

<Style TargetType ="{x:Type telerik:GridViewHeaderCell}"
    <Setter Property="ToolTip" Value="{Binding Content, RelativeSource={RelativeSource Self}}"/> 
</Style> 


The type GridViewHeaderCell is no longer there. What is the new target type? Will this also work on dynamically-added columns - the ones done in code behind?

Thanks,
0
Maya
Telerik team
answered on 13 Dec 2011, 09:02 AM
Hello Gio,

Actually, the target type is still GridViewHeaderCell. However, its Content is of type object. What I would suggest is to define your ToolTip similar to:

GridViewDataColumn column = new GridViewDataColumn() {DataMemberBinding = new Binding("Name")};
            TextBlock txtBlock = new TextBlock() { Text = column.DataMemberBinding.Path.Path, ToolTip = column.DataMemberBinding.Path.Path };
            column.Header = txtBlock;
            this.clubsGrid.Columns.Add(column);


Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Twistur
Top achievements
Rank 1
answered on 13 Dec 2011, 07:22 PM
Maya, could you please provide me a markup equivalent of the codes you just provided?

Thanks,
0
Maya
Telerik team
answered on 14 Dec 2011, 07:35 AM
Hello Gio,

You can define the same column in xaml as follows:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Name" ToolTip="My NameColumn ToolTip" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 


All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Johnny
Top achievements
Rank 1
answered on 01 Mar 2012, 04:28 AM
Hi, I tried the above tooltip example, but I got an error for not finding the corrected referenced assemblies.
"The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. "
However, I have compared line by line to the provided example and make sure that I have
"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" "
in my xaml code. However, the x:Type wasn't there when I tried to use it. Am I missing some other directories?

Thanks


0
Maya
Telerik team
answered on 01 Mar 2012, 08:51 AM
Hello Johnny,

The approach you are referring to (using x:Type) targets WPF platform. Could you verify which version of RadGridView you are working with - for Silverlight or for WPF ? 

Regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Johnny
Top achievements
Rank 1
answered on 01 Mar 2012, 08:13 PM
I am working on a silverlight project and I would like to have the tooltip functionatlity add to the grid header column, so that user can get more details whenever he/she move the mouse over.
0
Johnny
Top achievements
Rank 1
answered on 02 Mar 2012, 07:32 PM
I can't use tooltip for silverlight project?
Tags
GridView
Asked by
naveen kumar
Top achievements
Rank 1
Answers by
Dimitar Dobrev
Telerik team
naveen kumar
Top achievements
Rank 1
ralph
Top achievements
Rank 1
Lawrence Bredehoeft
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Twistur
Top achievements
Rank 1
Maya
Telerik team
Johnny
Top achievements
Rank 1
Share this question
or