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

MultiColumnComboBox - Turn off grid lines

12 Answers 43 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 21 Feb 2014, 09:17 PM
How can I turn off the grid lines in a MultiColumnComboBox?

Thanks,

David

12 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 24 Feb 2014, 07:50 AM
Hello Paul,

Thank you for writing. 

To do that you can use the ViewCellFormatting event of the inner grid:
radMultiColumnComboBox1.EditorControl.ViewCellFormatting += EditorControl_ViewCellFormatting;
 
void EditorControl_ViewCellFormatting(object sender, CellFormattingEventArgs e)
        {
            e.CellElement.DrawBorder = false;
        }

I hope this helps. 

Regards,
Stefan
Telerik
0
Paul
Top achievements
Rank 1
answered on 24 Feb 2014, 02:19 PM
Thanks Stefan, that did the trick!
0
Paul
Top achievements
Rank 1
answered on 06 Mar 2014, 09:27 PM
How about if I'd like to only show the vertical lines?
0
Stefan
Telerik team
answered on 07 Mar 2014, 11:14 AM
Hello Paul,

Here you are:
void EditorControl_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    e.CellElement.BorderTopWidth = 0;
    e.CellElement.BorderBottomWidth = 0;
}

I hope this helps.

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

0
Paul
Top achievements
Rank 1
answered on 07 Mar 2014, 02:21 PM
Stefan,

Using that code, my dropdown still has horizontal lines.  Sample attached.
0
Paul
Top achievements
Rank 1
answered on 07 Mar 2014, 02:21 PM
Sample
0
Paul
Top achievements
Rank 1
answered on 07 Mar 2014, 02:22 PM
Let's try this attachment again.
0
Paul
Top achievements
Rank 1
answered on 07 Mar 2014, 02:25 PM
Well, just like Telerik's products, their website refuses to work properly.  Here's a link to the sample.

http://rxcmpd.com/downloads/Clipboard01.jpg
0
Stefan
Telerik team
answered on 07 Mar 2014, 03:13 PM
Hi Paul,

Different themes have different styling for the borders. My previous reply was based on the default theme for the suite. I did not know that you were using the TelerikMetroBlue theme. The latter is using a single border for the cells, rather than four borders, hence the previous snippet did not work for it. Please give the following approach a try:
void EditorControl_ViewCellFormatting(object sender, CellFormattingEventArgs e)
 {
     e.CellElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
 
     e.CellElement.BorderTopWidth = 0;
     e.CellElement.BorderBottomWidth = 0;
 
     e.CellElement.BorderLeftColor = e.CellElement.BorderColor;
     e.CellElement.BorderRightColor = e.CellElement.BorderColor;
 }

In addition, may I please ask you what are the difficulties you had experienced with the site. What file (extension) you were trying to attach? How big was it?

I am looking forward to your reply. 

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

0
Paul
Top achievements
Rank 1
answered on 07 Mar 2014, 03:38 PM
Thanks Stefan, that works great.  I am using a custom theme, not the default.

I tried to upload a 7kb png file and a 7kb jpg file.  I received an error when posting, but the message did post, but without the attachment.
0
Stefan
Telerik team
answered on 10 Mar 2014, 03:16 PM
Hi Paul,

I am glad everything is OK with this case on your end now. 

In regards to the attachment issue, I have informed the responsible division and they will look into this case. If needed, they will contact you for additional information.

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

0
Iva
Telerik team
answered on 14 Mar 2014, 09:30 AM
Hello Paul,

We apologize for the caused inconveniece! Unfortunately, we were not able to reproduce the problem with attaching a .jpg file to the forum post. Could you please provide us some additional information about the problem, for example the file you`ve tried to attach, the browser you used. Thank you for the cooperation!
 
Regards,
Iva
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
MultiColumn ComboBox
Asked by
Paul
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Paul
Top achievements
Rank 1
Iva
Telerik team
Share this question
or