<commit_before><%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

    <s:url var="ordersurl" action="json-orders" />
    <s:url var="orderdetailsurl" action="json-orderdetails" />
    <s:url var="subgridthreelevelurl" action="grid-subgrid-three-level" />

    <h2>Grid with Subgrid</h2>
    
    <p>Try out <sj:a href="%{subgridthreelevelurl}" targets="main_content" cssStyle="font-style:bold;">Subgrid with 3 Level.</sj:a></p>
    
    <sjg:grid 
    	id="orderstable" 
    	caption="Orders with Orderdetails Subgrid" 
    	dataType="json" 
    	href="%{ordersurl}" 
    	pager="true" 
    	toppager="true"
    	navigator="true"
    	navigatorEdit="false"
    	navigatorAdd="false"
    	navigatorView="true"
    	navigatorDelete="false"
    	navigatorCloneToTop="true"
    	gridModel="gridModel"
    	rowList="10,15,20"
    	rowNum="15"
    	viewrecords="true"
    >
	    <sjg:grid 
	    	id="orderssubgridtable" 
	    	subGridUrl="%{orderdetailsurl}"
	    	gridModel="gridModel"
	    	rowNum="-1"
	    	footerrow="true"
	    	userDataOnFooter="true"
	    >
	    	<sjg:gridColumn name="productcode" key="true" title="Product Code" width="300" hidden="true"/>
	    	<sjg:gridColumn name="productname" title="Product" width="300"/>
	    	<sjg:gridColumn name="quantityordered" title="Quantity" formatter="integer" align="center"/>
	    	<sjg:gridColumn name="priceeach" title="Price" formatter="currency" align="right"/>
	    </sjg:grid>
    	<sjg:gridColumn name="ordernumber" 
    		index="ordernumber" 
    		key="true" 
    		title="Order" 
    		formatter="integer" 
    		sortable="true" 
    		search="true" 
    		searchoptions="{sopt:['eq','ne','lt','gt']}"<commit_msg>Disable cloneToTop until Bug is fixed in jqGrid base<commit_after><%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

    <s:url var="ordersurl" action="json-orders" />
    <s:url var="orderdetailsurl" action="json-orderdetails" />
    <s:url var="subgridthreelevelurl" action="grid-subgrid-three-level" />

    <h2>Grid with Subgrid</h2>
    
    <p>Try out <sj:a href="%{subgridthreelevelurl}" targets="main_content" cssStyle="font-style:bold;">Subgrid with 3 Level.</sj:a></p>
    
    <sjg:grid 
    	id="orderstable" 
    	caption="Orders with Orderdetails Subgrid" 
    	dataType="json" 
    	href="%{ordersurl}" 
    	pager="true" 
    	toppager="true"
    	navigator="true"
    	navigatorEdit="false"
    	navigatorAdd="false"
    	navigatorView="true"
    	navigatorDelete="false"
    	navigatorCloneToTop="false"
    	gridModel="gridModel"
    	rowList="10,15,20"
    	rowNum="15"
    	viewrecords="true"
    >
	    <sjg:grid 
	    	id="orderssubgridtable" 
	    	subGridUrl="%{orderdetailsurl}"
	    	gridModel="gridModel"
	    	rowNum="-1"
	    	footerrow="true"
	    	userDataOnFooter="true"
	    >
	    	<sjg:gridColumn name="productcode" key="true" title="Product Code" width="300" hidden="true"/>
	    	<sjg:gridColumn name="productname" title="Product" width="300"/>
	    	<sjg:gridColumn name="quantityordered" title="Quantity" formatter="integer" align="center"/>
	    	<sjg:gridColumn name="priceeach" title="Price" formatter="currency" align="right"/>
	    </sjg:grid>
    	<sjg:gridColumn name="ordernumber" 
    		index="ordernumber" 
    		key="true" 
    		title="Order" 
    		formatter="integer" 
    		sortable="true" 
    		search="true" 
    		searchoptions="{sopt:['eq','ne','lt','gt']}"
{'fraction_non_alphanumeric': 0.16907675194660735, 'fraction_numerical': 0.010011123470522803, 'mean_word_length': 3.6775032509752927, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5834495', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1290, 'n_words': 185}