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

Hide column in CardView

5 Answers 99 Views
CardView
This is a migrated thread and some comments may be shown as answers.
Omar
Top achievements
Rank 1
Omar asked on 29 Jan 2019, 06:19 PM

Hi,

Is there a way to hide the column header, for example, I want to  hide first column header and shift the item to the left. 

Many thanks,

Omar

5 Answers, 1 is accepted

Sort by
0
Omar
Top achievements
Rank 1
answered on 31 Jan 2019, 06:25 AM

OK, managed to do that now.

But if the text too long it will cut of, is there a way to wrap the text?

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Feb 2019, 10:54 AM
Hello, Omar,       

I am glad that the initial problem you were facing is now resolved. Your other question has already been answered in the other thread you have opened on the same topic. Please, see our answer there for more information.
We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

Thank you for your understanding.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Omar
Top achievements
Rank 1
answered on 02 Feb 2019, 08:29 PM

Many thanks.

 

0
john
Top achievements
Rank 1
answered on 01 Jun 2019, 10:02 PM

Hi,

Could you maybe detail on how you managed to hide the column headers?

Thank.you!

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Jun 2019, 09:11 AM
Hello, John,      
 
You can handle the VisualItemFormatting and hide the headers as follows:

private void radCardView1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    CardListViewVisualItem item = e.VisualItem as CardListViewVisualItem;
    CardViewGroupItem groupItem = item.CardContainer.FindDescendant<CardViewGroupItem>();
    if (groupItem==null)
    {
        return;
    }
    foreach (RadElement el in groupItem.ContainerElement.Children)
    {
        CardViewItem viewItem = el as CardViewItem;
        if (viewItem != null)
        {
            viewItem.DrawText = false;
        }
    }
}



I hope this information helps.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
CardView
Asked by
Omar
Top achievements
Rank 1
Answers by
Omar
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
john
Top achievements
Rank 1
Share this question
or