We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to add an unbound column to GroupSettings?

Thread ID:

Created:

Updated:

Platform:

Replies:

131628 Jul 20,2017 08:44 AM UTC Jul 21,2017 06:49 AM UTC ASP.NET MVC 1
loading
Tags: Grid
CLAUDIO RICCARDI
Asked On July 20, 2017 08:44 AM UTC

Hello,

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

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

Thanks.

Claudio

Venkatesh Ayothi Raman [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;