Hello,
I am developing design studio component based on the sapui5 table. I am trying to get the column freeze enabled but its not seems to be working. I have tried the following ways. Any suggestions or thoughts?
I have tried in contribution.xml by specifying it as property and gave default value. And also tried with setEnablecoulmnfreeze property in javascript while initializing the table.
init : function() {
sap.ui.table.Table.prototype.init.apply(this,arguments);
this.attachRowSelectionChange(this.rowChangeHandler,this);
try {
this.setEnableColumnFreeze(true);
}
catch(err)
{
alert(err);
}
},
rowChangeHandler : function(oControlEvent){
alert("You clicked " + oControlEvent.getParameter("rowIndex"));
this.fireDesignStudioEvent("onclick");
},
Its throwing error "Object does not support property or method setEnableColumnFreeze". In contribution.xml , I have tried like this
<property type="ScriptText" title="On Click" group="Events" id="onclick"/>
<property type="boolean" title="enableColumnFreeze" id="enableColumnFreeze"></property>
<property type="ResultSet" title="Result Set" id="resultset" visible="false"/>
<initialization>
<defaultValue property="enableColumnFreeze">true</defaultValue>
<defaultValue property="HEIGHT">100</defaultValue>
<defaultValue property="WIDTH">200</defaultValue>
</initialization>