This question is locked. New answers and comments are not allowed.
So I see the GridViewHeaderCell style points to GridViewHeaderCellTemplate. Where do I find this template to proplery edit a copy of it? Currently I find if I alter the template for a header cell that I lose the VSM actions. I also lost the filter and sort indicators yet the click appears to work.
Why do you not let the style (and template) be editable through blends Edit Other Styles? I am finding it much more time consuming to modify the look (and maintain functionality) of the telerik controls then the microsoft ones.
On another note, why do you use DataMemberBinding instead of Binding?
Why do you not let the style (and template) be editable through blends Edit Other Styles? I am finding it much more time consuming to modify the look (and maintain functionality) of the telerik controls then the microsoft ones.
On another note, why do you use DataMemberBinding instead of Binding?
10 Answers, 1 is accepted
0
Accepted
Hello Tyree,
As for the editing of the template of the header cell there is a nice tutorial on how you can go about it here. As for the EditOtherStyles blend menu - we will consider implementing it in one of the weekly releases after Q2 hits the shelves.
As for the naming of the DataMemberBinding - we do not believe to be a big issue as long as it provides the same functionality.
Best wishes,
Kalin Milanov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
As for the editing of the template of the header cell there is a nice tutorial on how you can go about it here. As for the EditOtherStyles blend menu - we will consider implementing it in one of the weekly releases after Q2 hits the shelves.
As for the naming of the DataMemberBinding - we do not believe to be a big issue as long as it provides the same functionality.
Best wishes,
Kalin Milanov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tim
Top achievements
Rank 1
answered on 28 Oct 2009, 09:16 PM
I basically have one of the same questions as Tyree but want to make the changes without using Blend.
I have altered the GridViewHeaderCell ControlTemplate in the XAML so that I can wrap the text. However, I have now lost the filtering and sorting icons (though the sorting functionality via click does still work). How do I restore the filter functionality & icon and the sort visualization in my style? Thanks. I currently have:
I have altered the GridViewHeaderCell ControlTemplate in the XAML so that I can wrap the text. However, I have now lost the filtering and sorting icons (though the sorting functionality via click does still work). How do I restore the filter functionality & icon and the sort visualization in my style? Thanks. I currently have:
xmlns:tGridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
<Style x:Key="tGridViewHeaderSharedStyle" TargetType="tGridView:GridViewHeaderCell">
<Setter Property="Template" >
<Setter.Value>
<ControlTemplate TargetType="tGridView:GridViewHeaderCell">
<tGridView:AlignmentContentPresenter TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" />
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="Gray" />
</Style>
0
Hi Tim,
In later versions of RadGridView for scenarios such as yours we have introduced some improvements.
The Header property of the column is of type object. By default it is a string and shows the header caption. However you may set it to any UI element. Header is rendered besides the sorting and filtering UI .This means you may customize the header , without affecting the whole header cell thus retaining basic column features ( sorting indicator and filtering funnel) .
The following XAML sets the header to a textbox :
Now this thread indicates an old version 2008.1.526 . of the dlls. Please download some of the latest internal builds to able to use this approach. There is also an official Q3 release coming these days.
Kind regards,
Pavel Pavlov
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.
In later versions of RadGridView for scenarios such as yours we have introduced some improvements.
The Header property of the column is of type object. By default it is a string and shows the header caption. However you may set it to any UI element. Header is rendered besides the sorting and filtering UI .This means you may customize the header , without affecting the whole header cell thus retaining basic column features ( sorting indicator and filtering funnel) .
The following XAML sets the header to a textbox :
<telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="ID" /> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn>Now this thread indicates an old version 2008.1.526 . of the dlls. Please download some of the latest internal builds to able to use this approach. There is also an official Q3 release coming these days.
Kind regards,
Pavel Pavlov
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
Tim
Top achievements
Rank 1
answered on 03 Nov 2009, 03:00 PM
Hi, Pavel.
Thanks for your response. Shortly after I posted that message, I did find another thread that explained the new functionality and the convenience of the Header object. The change that I made worked perfectly for allowing the default filtering and sorting (actually, I HAD to make that change since the Q3 Beta 2 now creates an OnApplyTemplate() error with the old way of applying the custom HeaderCell template that I was doing before). However, it has caused other problems. Most notably, it appears that there is some odd behavior with regard to frozen columns and the height of those cell headers when I use the horizontal scroll.
I don't want to hijack this thread for that problem since I've already asked about it in another thread. if you would, please take a look at my post at the end of the thread HERE which is a follow-up message to someone else who also had to switch to the Header object due to the error in the Q3 Beta 2. If you think that providing my solution in the other thread might help you help me, please let me know.
Thanks!
-Tim
Thanks for your response. Shortly after I posted that message, I did find another thread that explained the new functionality and the convenience of the Header object. The change that I made worked perfectly for allowing the default filtering and sorting (actually, I HAD to make that change since the Q3 Beta 2 now creates an OnApplyTemplate() error with the old way of applying the custom HeaderCell template that I was doing before). However, it has caused other problems. Most notably, it appears that there is some odd behavior with regard to frozen columns and the height of those cell headers when I use the horizontal scroll.
I don't want to hijack this thread for that problem since I've already asked about it in another thread. if you would, please take a look at my post at the end of the thread HERE which is a follow-up message to someone else who also had to switch to the Header object due to the error in the Q3 Beta 2. If you think that providing my solution in the other thread might help you help me, please let me know.
Thanks!
-Tim
0
Hi Tim,
The problem has been identified and I will personally take care for the fix. It will be available for download in the next week internal build ( Friday.13 th).
Kind regards,
Pavel Pavlov
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.
The problem has been identified and I will personally take care for the fix. It will be available for download in the next week internal build ( Friday.13 th).
Kind regards,
Pavel Pavlov
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
Tim
Top achievements
Rank 1
answered on 10 Nov 2009, 05:05 PM
Thanks, Pavel!
0
Tim
Top achievements
Rank 1
answered on 13 Nov 2009, 07:10 PM
Hi, Pavel.
My understanding is that an internal build is due out today? When will it be available, and where can I get it? Also, will it be available to me since I'm currently still using the trial (we are going to purchase, but we're waiting on paperwork to go through on our side in the meantime)?
Thanks.
-Tim
My understanding is that an internal build is due out today? When will it be available, and where can I get it? Also, will it be available to me since I'm currently still using the trial (we are going to purchase, but we're waiting on paperwork to go through on our side in the meantime)?
Thanks.
-Tim
0
Tim
Top achievements
Rank 1
answered on 13 Nov 2009, 07:30 PM
Pavel,
I may have spoken too soon. I just returned to the internal build page and found one there where there was not one a little while ago. The date on it is 11/09, though, and not 11/13. I'll assume that this is the build that was released today even though it has Monday's date. Please let me know if I'm mistaken.
Thanks!
I may have spoken too soon. I just returned to the internal build page and found one there where there was not one a little while ago. The date on it is 11/09, though, and not 11/13. I'll assume that this is the build that was released today even though it has Monday's date. Please let me know if I'm mistaken.
Thanks!
0
Hi Tim,
The internal build has been delayed for some critical fixes. We are doing our best to prepare it and make it available for dwonload later today.
Please excuse us for the inconvenience caused.
Kind regards,
Pavel Pavlov
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.
The internal build has been delayed for some critical fixes. We are doing our best to prepare it and make it available for dwonload later today.
Please excuse us for the inconvenience caused.
Kind regards,
Pavel Pavlov
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
Tim
Top achievements
Rank 1
answered on 16 Nov 2009, 08:54 PM
Thanks for the heads-up regarding the build. I'll just check back periodically.