Hi,
I’m trying to move the alingment of the collapsible column.
I tried defining the last main grid column as sub_row but when it’s rendered the content is hidden
Below the code I’m testing
HTML Page:
[code]
Grid Test html, body { width: 100%; /*provides the correct work of a full-screen layout*/ height: 100%; /*provides the correct work of a full-screen layout*/ /*overflow: hidden; /*hides the default body's space*/ /*margin: 0px; /*hides the body's scrolls*/ }<div id="srSection"style="width: 100%; height: 100%;">
<h2>Service Request</h2>
<div id="srGridbox" style="width: 100%; height: 100%;"></div>
</div>
<script type="text/javascript">
mygrid = new dhtmlXGridObject('srGridbox');
mygrid.setImagePath("./dhtmlx/imgs/"); //the path to images required by grid
mygrid
.setHeader("Service Request ID,SR Type,Creation Date,Closure Date,Status, ");//the headers of columns
mygrid
.setColumnIds("srId,srType,creationDate,closureDate,status,sub"); //the ids of the columns
mygrid.setInitWidthsP("15,28,15,15,25,2"); //the widths of columns
mygrid.setColAlign("left,center,center,center,center,center"); //the alignment of columns
mygrid.setColTypes("ro,ro,ro,ro,ro,sub_row_grid"); //the types of columns`
mygrid.init(); //finishes initializatio and renders the grid on the page
mygrid.loadXML("./dhtmlx/srGrid.xml");
</script>
[/code]
srGrid.xml
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<row>
<cell> 123456789 </cell>
<cell> SIM Stealing </cell>
<cell> 20/03/2015</cell>
<cell> 25/03/2015</cell>
<cell> Resolved</cell>
<cell> ./dhtmlx/srDetailGrid01.xml</cell>
</row>
</rows>
reDetailGrid01.xml:
[code]<?xml version="1.0"?>
Attachment
Description
%
<beforeInit>
<call command="enableMultiline">
<param>true</param>
</call>
</beforeInit>
</head>
<row id="1">
<cell>test.zip</cell>
<cell>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
euismod
bibendum laoreet. Proin gravida dolor sit amet lacus accumsan
et
viverra justo commodo. Proin sodales pulvinar tempor.
</cell>
</row>
[/code]
Is there any function I’m missing to show the collapsed item on the left side of the column?
Thanks in advance for your help.
Regards,
Ugo