Is it possible to add an unbound column to GroupSettings?

Hello,

how can I drag and drop an unbound column to Grouping area?

It seems not working..can you provide an example?

Thanks.

Claudio

1 Reply

VA Venkatesh Ayothi Raman Syncfusion Team July 21, 2017 06:49 AM UTC

Hi Claudio, 

Thanks for contacting Syncfusion support. 

The Grid actions such as Grouping, sorting and filtering can be performed based on that corresponding field. We suspect that your requirement is to grouping the unbound column without mentioned field name of that column. This is the cause of the issue and please refer to the following Help documentation, 

Please refer to the following code example for unbound column, 
@Grid 
 
 
@(Html.EJ().Grid<EmployeeView>("CustomGrid") 
        .Datasource((IEnumerable<object>)ViewBag.datasource) 
        .AllowPaging() 
        .AllowGrouping() 
        .Columns(col => 
        { 
            .  .  . 
            col.Field("LastName").HeaderText("Employee Details").Commands(command => 
            { 
                command.Type("detail") 
                       .ButtonOptions(new Syncfusion.JavaScript.Models.ButtonProperties() 
                       { 
                           Text = "Details", 
                           Width = "100px", 
                           Click = "onClick" 
                       }).Add(); 
            })             
            .TextAlign(TextAlign.Left) 
            .Width(150) 
            .Add(); 
        }) 
 
Note: Here grouping can be performed based on “LastName” field. 
Regards, 
Venkatesh Ayothiraman. 


Loader.
Up arrow icon