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

Dissabling Column Ordering, Wrapping Text

7 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Guido Tapia
Top achievements
Rank 1
Guido Tapia asked on 21 Jan 2009, 03:29 AM
Hi,

I've just started looking at your WPF controls and have a few questions.

- How do I dissable column ordering?
- How do I have cells that show wrapped text?

Thanks

Guido Tapia

7 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 25 Jan 2009, 09:49 PM
Hello Guido Tapia,

Disabling column reordering is not currently possible, but it will be available in our upcoming Q1 release. Due to internal limitations it is not also possible to have cells that display wrapped text, but
I have managed to think of a workaround that you may try to use until we fix this problem.

I have attached a sample project that demonstrates how you can use a custom panel (ColumnWrapPanel) to enable text wrapping. You just have to define a custom style and template for the column that you would like to have wrapping and simply place a TextBlock element inside a ColumnWrapPanel.
Hope this will help.

Your feedback is greatly appreciated and your telerik points have been updated accordingly.

All the best,

Milan
the Telerik team

 


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Guido Tapia
Top achievements
Rank 1
answered on 18 Mar 2009, 01:49 AM
Hi,

Before I jump into Q1, I'd like to know if having wrapped text is now supported?  Can I get rid of this work around?  If not, will the work around work in Q1?

Another option is displaying tooltips on a row with the full content of a cell.  Is this supported?

Thanks in advance.

Guido
0
Nedyalko Nikolov
Telerik team
answered on 20 Mar 2009, 04:13 PM
Hi Guido Tapia,

Our GridView does not support wrapped text by default. It will be available with the next release or SP. The good news is that this workaround will work fine with Q1.2009.

About the tool tip for the GridViewCell you can take a look in this thread to get some ideas. Hope this helps!

Kind regards,
Nedyalko Nikolov
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
Brad
Top achievements
Rank 1
answered on 29 Jun 2009, 10:25 PM
This workaround doesn't work with 2009.1.312.35.  ColumnWidthConverter is not available in Controls. Is there another way to do it?
0
Nedyalko Nikolov
Telerik team
answered on 02 Jul 2009, 10:58 AM
Hello Brad,

Indeed with this specific release (2009.1.312.35) there are some API changes related to column resizing.
You actually do not need ColumnWidthConverter class, you need GridViewColumn.ActualWidth property.

I'm attaching a modified version of the example you already have with current official release (2009.1.526.35) binaries.

Don't hesitate to contact us if you have other question.


Regards,
Nedyalko Nikolov
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
Brad
Top achievements
Rank 1
answered on 02 Jul 2009, 07:15 PM
So.....this still doesn't work with the build I have (2009.1.312.35).  I can't really change the build right now. We are at the end of a dev cycle.  Is there any way to get this behavior with the build I have??
0
Nedyalko Nikolov
Telerik team
answered on 03 Jul 2009, 08:22 AM
Hello Brad,

With this particular release you can get value from the "PixelWidth" property using reflection. Be aware that this will work only within a desktop application, since reflection of internal properties is not allowed in xbap applications. 

I'm attaching a modified version of the example you already have for your reference.

P.S. Releases after 2009.1.312.35 changed PixelWidth property with more descriptive ActualWidth property which is already public.

Kind regards,
Nedyalko Nikolov
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.
Tags
GridView
Asked by
Guido Tapia
Top achievements
Rank 1
Answers by
Milan
Telerik team
Guido Tapia
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Brad
Top achievements
Rank 1
Share this question
or