Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8540

How to enable SAPUI5 Column freeze property ?

$
0
0

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>


Viewing all articles
Browse latest Browse all 8540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>