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

Lock/disable column

6 Answers 287 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Omar
Top achievements
Rank 1
Omar asked on 29 Sep 2016, 08:10 PM

Is it possible to lock/disable first two columns in my below code. Instead of cell lock I want to do column level lock.

@(Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Sheetsbar(false)
.Toolbar(x => x.Data(false).Insert(false))
.HtmlAttributes(new { style = "width:100%;" })
.Rows(5000)
.Events(e => e.ExcelImport("niinStockImport"))
.Sheets(sheets =>
{
sheets.Add()
.Name("NiinStock")
.DataSource<DynMRO.DTO.Logistics.Planning.NiinStockSearchResultDTO>(ds => ds
.Ajax()
.Batch(true)
.Read(r => r.Action("NiinStockBulkSearchResults", "Logistics").Data("getCriteria"))
.Update(u => u.Action("NiinStockBulkUpdate", "Logistics").Data("getCriteria"))
.Events(e => e.Change("onChange"))
.Model(m =>
{
m.Id(p => new { p.NiinStockID, p.ORGID });
})
)
.Columns(columns =>
{
columns.Add().Width(100);
columns.Add().Width(415);
columns.Add().Width(0);
columns.Add().Width(0);
columns.Add().Width(145);
})

;
})
)

6 Answers, 1 is accepted

Sort by
0
Eduardo Serra
Telerik team
answered on 30 Sep 2016, 05:38 PM
Hello Omar,

The feature you describe is not available at the moment of the latest release. I invite you to participate in the Kendo UI Feedback and Feature Request Portal so you can voice your opinion and it might get implemented in future releases; you can find the portal here.

I hope this helps!

Regards,
Eduardo Serra
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Markos
Top achievements
Rank 1
answered on 05 Dec 2017, 08:15 PM
Is the Spreadsheet column lock feature available now?
0
Eduardo Serra
Telerik team
answered on 06 Dec 2017, 04:20 PM
Hello Markos,

The Feature is not yet included in the Spreadsheet control.

Thank you for your understanding.

Regards,
Eduardo Serra
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Maxwell
Top achievements
Rank 1
answered on 23 Oct 2018, 05:47 PM
Any chance this is available yet?
0
Tsvetomir
Telerik team
answered on 24 Oct 2018, 09:49 AM
Hi Maxwell,

I am pleased to inform you that this feature is already available. In order to set frozen columns, use the frozenColumns property as follows: 

$("#spreadsheet").kendoSpreadsheet({
               sheets: [
               {
                   frozenColumns: 2,
                   name: "Orders"

If you have additional questions, feel free to contact us.


Kind regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Maxwell
Top achievements
Rank 1
answered on 24 Oct 2018, 01:23 PM
Thank you.
Tags
Spreadsheet
Asked by
Omar
Top achievements
Rank 1
Answers by
Eduardo Serra
Telerik team
Markos
Top achievements
Rank 1
Maxwell
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or