As you see, rows can have multi-line text or just a single line. However, I only want the first line to be displayed on each row with a downward pointed arrow if it has multi-line text.The grid is non-editable.
Moreover , the data to populate this grid comes as a json
string from the controller. Currently, I have set the grid parameters as:
datatype: 'jsonstring',
datastr: jsonErrorGridData,
rowNum: '',
gridview: true,
onSelectRow: function (row_id) {
$("#errorList-grid").toggleSubGridRow(row_id);
}
This gives me a grid with all rows (rowNum: ''
), which in cases can be more than 1000. Additionally, how can I implement paging on client side and also include an option to download all the gird data?
Also, as you can see the column headers are not aligned properly. I display this grid as a pop-up dialog in a div:
<div id="displayError">
<table id="errorList-grid" style="table-layout: fixed"></table>
</div>