jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: first click row datatable first click row datatable #84491

    temjack
    Participant

    Hello gabocu,
    I tell you,they CAN’T solve your problem.I ask the same question long time ago and the answer is the same as yours.
    Now I give you a way to solve this problem:set selectionMode: “custom”


    temjack
    Participant

    Thank you for your answer. But maybe I was not describe this clear.
    Here I release my code:

    function initDataTable() {       	
    			var docSource =
    			{
    				dataType: "json",
    				dataFields: [
    					{ name:'Id',type: 'int'},
    					{ name:'TITLE',type: 'string'}
                                            { name:'ISREDTITLE',type: 'int'}
    				]
    			};
    
    			var dataAdapter = new $.jqx.dataAdapter(docSource, { loadComplete: function () {
    				}
    			});
    			
    			dataAdapter.dataBind();
    
    			$("#sDataTable").jqxDataTable(
    			{
    				width: '100%',
    				source: dataAdapter,
    				pageable: true,
    				altRows: true,
    				pagerMode: 'advanced',
    				pageSizeOptions: ['5','10'],
    				columnsResize: true,
    				autoRowHeight: false,
    				theme: 'metro',
    				localization: getLocalization(),
    				columns: [
    							{text:'Id',dataField:'Id', align: "center", cellsalign: 'center', width: '5%'},
    							{text:'TITLE',dataField:'TITLE', align: "center", cellsalign: 'left', 
    							cellsRenderer:function(row, column, value, rowData) {
    								var colorStr="";
    								var anchor="";
    								if(rowData.ISREDTITLE==1){
    									colorStr="style='color:red'";
    								}
    								  anchor += "<a href='/operation/gov-publish-recvProcsForm.do?bpmProcessId=" + rowData.Id
    								  +"' target='_blank' title='"+rowData.TITLE+"' "+colorStr+">" + rowData.TITLE ;
    								  anchor += "</a>";
    								  return anchor;
    							  }
    							}}
    						]
    			});		
    		}

    I want to use Grid not Datatable to write it.

Viewing 2 posts - 1 through 2 (of 2 total)