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

Grid with no outer border

3 Answers 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Subha
Top achievements
Rank 1
Subha asked on 25 Feb 2011, 07:30 PM
Hi,

I am trying to create a grid with no outer border and inner grid lines, but could not suppress outer border. Is there a specific property that I can use to remove that?

Also, I am trying to create attached screen with telerik controls, any sample code with regard to showing combobox (both in edit and display mode) would be much appreciated.  I need to add a new search row to the end, when user clicks on '+' button and delete the existing row when user clicks on '-' button.


Thanks,
subha

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 28 Feb 2011, 02:55 PM
Hi Subha,

The easiest way to achieve this result is by setting some properties of RadGridView and by defining the appropriate CellTemplate for each column. Please find attached sample project that demonstrates a possible approach to achieve similar result with minimum effort.

In case you need any further assistance, let me know.


Best wishes,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Subha
Top achievements
Rank 1
answered on 02 Mar 2011, 08:24 PM
Hi,

Thank you Pavlova for the code example.

I am trying to extend this to show combo boxes in first two columns by using GridviewCombobox column.  They are showing combo box only when grid goes into edit mode.  Is there a way to leave all the rows in the grid editable like excel all the time?  If there is a way, could you please help me with a sample?

Thanks,
Subha

0
Vanya Pavlova
Telerik team
answered on 09 Mar 2011, 09:24 AM
Hi Subha,

The GridViewComboBoxColumn provides a RadComboBox for editing cell values, however you can override this behavior in different scenarios. For example if you need to show the dropdown on a click just set the EditTriggers of ComboBoxColumn to CellClick and set the OpenDropDownOnFocus property of RadComboBox as a default editor within a style, as shown below:

Copy Code
Copy Code
Copy Code
Copy Code
Copy Code
Copy Code
<telerik:GridViewComboBoxColumn...>
  <telerik:GridViewComboBoxColumn.EditorStyle>
    <Style TargetType="telerik:RadComboBox">
      <Setter Property="OpenDropDownOnFocus" Value="True" />
    </Style>
  </telerik:GridViewComboBoxColumn.EditorStyle>
</telerik:GridViewComboBoxColumn>


Regarding your second question with the current implementation of RadGridView you cannot edit multiple rows at a time.

In case you need any further assistance, please let me know.


Best wishes,
Vanya Pavlova 
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st andbook your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Subha
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Subha
Top achievements
Rank 1
Share this question
or