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. Image for the cookie policy date
close icon

Can we delete a column in ASP.NET MVC Syncfusion grid?

Hi,
On right click of a column of a grid how to give an option to delete the same from the grid?

3 Replies

RD Rakesh D Syncfusion Team April 27, 2013 02:47 AM UTC

Hi Kedar,

 

Thank you for your interest in Syncfusion products.

 

Query : Can we delete a column in ASP.NET MVC Syncfusion grid?

 

To achieve your requirement we suggest you to use context Menu feature of Grid. To enable context menu call EnableContextMenu() method. Please refer below code snippet for further details.

 

[ cshtml ]

 

@(Html.Syncfusion().Grid<Student>("GenericListGrid")

    .Datasource(Model)

    .EnableSorting()

    . . . .

    .EnableContextMenu()

   )

 

For your convenience we have prepared a sample for the above scenario and it is attached below. Please refer to it.

 

Please let us know if you have any concerns.

 

Regards,

Rakesh D

 

 



Context Menu Grid_1bc4e4bd.zip


KK Kedar Kodlapur April 29, 2013 07:21 AM UTC

There is no option to delete the column in the example which you sent.
I can only hide.
Please tell me how to delete permanently?


RD Rakesh D Syncfusion Team May 3, 2013 01:38 PM UTC

Hi Kedar,

 

Thanks for your interest in Syncfusion products.

 

Query : Can we delete a column in ASP.NET MVC Syncfusion grid?

 

We have provided response to your query in the incident 107501. Could you please follow up with the incident.

 

Please let us know if you have any queries.

 

Regards,

Rakesh D

 


Loader.
Live Chat Icon For mobile
Up arrow icon