AutoWidth:false not working if column contents URL link as data.

AutoWidth:false not working if column contents URL link as data.

shivdhagatshivdhagat Posts: 1Questions: 1Answers: 0

If column data has URL value and its width is more than specified width than default width is applied on that.
How to overcome with this problem ?
Ex:
table = $("#tblCMMiProjectReport").DataTable({
"pageLength": '@PMSApp.Common.AppConfig.GridPageSize',
"processing": false,
"searching": false,
"serverSide": true,
"AutoWidth": false,
"ajax": {
url: '@Url.Action("GetCMMiProjectReport", "MyOfficeReports")',
type: "post",
data: BuildSearchCriteria()
},
"columns": [
{ "title": "#", "data": "RowNumber", "width": "1%", "bSortable": false },
{ "title": "Project Name", "data": "ProjectName", "width": "8%" },
{ "title": "Project Code", "data": "ProjectCode", "width": "8%" },
{ "title": "Project Tech", "data": "ProjectTechnology" , "width": "5%"},
{ "title": "Est Hours", "data": "EstimatedHours", "width": "6%" },
{ "title": "Started On", "data": "FromDateString", "width": "7%","iDataSort": 16 },
{ "title": "End Date", "data": "ToDateString", "width": "7%","iDataSort": 17 },
{ "title": "Team Size", "data": "TeamSize", "width": "5%" },
{ "title": "Approach", "data": "Approach", "width": "6%" },
{ "title": "SDLC Method", "data": "SDLCMethodology", "width": "7%" },
{ "title": "PM", "data": "PM", "width": "7%" },
{ "title": "Project Status", "data": "ProjectStatus", "width": "6%" },
{ "title": "SQA", "data": "SQA", "width": "7%" },
{ "title": "SVN Path", "data": "SvnPath", "width": "6%" },
{ "title": "No Of Reports", "data": "NoOfReports", "width": "5%" },
{ "title": "Last NC Date", "data": "LastNCDateString", "width": "6%","iDataSort": 18 },
{ "title": "hiddenstartdate", "data": "StartDate", "visible": false, "width": "1%" }, //16
{ "title": "hiddenenddate", "data": "EndDate", "visible": false, "width": "1%" }, //17
{ "title": "hidlastncdate", "data": "LastNCDate", "visible": false, "width": "1%" } //18
],
"aaSorting": [[1, 'asc']]
});

Here SvnPath has a URL of SVN folder ,which has the width problem Other column working fine with this.

Answers

  • KingRiderKingRider Posts: 1Questions: 0Answers: 0

    Problem version =( .. try 1.10.xx old is work... Because of today the version 1.10.12 is not work... its situation bad developer are no default parameter and various modified.

  • allanallan Posts: 63,262Questions: 1Answers: 10,423 Site admin

    "AutoWidth": false,

    There is no parameter of that name - it is autoWidth (note the case - Javascript is case sensitive).

    If it isn't working for you with 1.10.12, please link to a test case showing the issue so I can help to debug it.

    Allan

This discussion has been closed.