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

Formatting with window teleric grid

1 Answer 246 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 13 May 2013, 04:48 AM
Hi,

We are using .NET framework as 4.0 with c# window application.We want below functionalities into the grid :
1) Parent & child grid (multiple bands)
2) Formatting :
     (a) copy data from any source (like mirosoft word) to grid column, its formatting(bold,italic,underline,font size,color etc) should not change and user should be able to save same data with same formatting into database i.e while retrieving same data from database to display into grid, it should display into same format (bold,italic,underline,font size,color etc)
(b) There can be multiple buttons on window form screen like (bold,italic,underline,font size,color etc) .
      User can select multiple row(s)/column(s)/single column of a row from grid and click on any button.Format should be apply on all 
       selected row(s)/column(s) .
(c) User can select some text from single column of a row and click on any button of the screen (like bold,italic,underline,font size,color etc).Formatting should be apply only on selected text

3) Automatic sorting,filtering ,grouping and hiding/unhiding the columns without writing any extra heavy code
4) Developer should be able to create all type of column (like checkbox,dropdown,editable/non-editable column etc ) by chaging the property of column without writing any extra heavy code
5) EditorControl property should be applicable for all column i.e. if there is date column in grid and user click on it.Calander should be display .Developer should be able to do this without writing any extra heavy code
6) show week no in calender control

Please let me know which abobe functionalities can be implemented/ not implemented by using telerik grid ?

1 Answer, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 16 May 2013, 05:11 AM
Hi Nitin,

Thank you for writing.

In regards to your questions:

1. Yes, this can be achieved with RadGridView. You can read more about grid with hierarchy in our online documentation here and/or you can take a look at our demo application in section GridView >> Hierarchy >> Hierarchy First Look to see it in action.

2. No, the described functionality in a,b and c points is not supported by RadGridView. RadGridView is supporting some base formatting functionality of the cells, like fonts, colors and etc, but does not have so rich formatting functionality like MS word. More information about the formatting abilities of RadGridView can be found here: http://www.telerik.com/help/winforms/gridview-cells-formatting-cells.html.

3. Yes, this can be achieved with RadGridView. You can take a look at our documentation in the relevant sections.
4. Yes, this can be achieved with RadGridView. You can read more about the columns in RadGridView in our online documentation: http://www.telerik.com/help/winforms/gridview-columns.html

5. Yes, this default behavior of RadGridView. By design the default editor for columns from type GridViewDateTimeColumn is RadDateTimeEditor that displays calendar.

6. Yes, this can be achieved by subscribing to the CellEditorInitialized event of RadGridView. Consider the following example:
void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    RadDateTimeEditor editor = this.radGridView1.ActiveEditor as RadDateTimeEditor;
    
    if (editor != null)
    {
        RadDateTimeEditorElement dataTimeElement = ((RadDateTimeEditor)this.radGridView1.ActiveEditor).EditorElement as RadDateTimeEditorElement;
 
        if (dataTimeElement != null)
        {
            RadDateTimePickerCalendar calendarBehavior = dataTimeElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
            RadCalendar calendar = calendarBehavior.Calendar as RadCalendar;
            calendar.ShowRowHeaders = true;               
        }
    }  
}

I hope this information helps.

Regards,
Anton
the Telerik team
RadChart for WinForms is obsolete. Now what?
Tags
General Discussions
Asked by
Nitin
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or