<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT北瓜 &#187; jqGrid</title>
	<atom:link href="http://imleeo.com/category/special-series/jqgrid/feed" rel="self" type="application/rss+xml" />
	<link>http://imleeo.com</link>
	<description>关注jQuery,关注java,关注计算机应用,关注生活...</description>
	<lastBuildDate>Tue, 06 Jul 2010 05:30:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>jqGrid 3.6.2版中grid.subgrid.js文件95行存在bug</title>
		<link>http://imleeo.com/jquery/bug-in-gridsubgrid-line-95.html</link>
		<comments>http://imleeo.com/jquery/bug-in-gridsubgrid-line-95.html#comments</comments>
		<pubDate>Thu, 24 Dec 2009 10:06:00 +0000</pubDate>
		<dc:creator>IT北瓜</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jqGrid]]></category>
		<category><![CDATA[专题]]></category>
		<category><![CDATA[应用实例]]></category>

		<guid isPermaLink="false">http://imleeo.com/?p=93</guid>
		<description><![CDATA[<p>jqGrid做得越来越强大了，并且完全结合了jQuery UI的界面，界面也很漂亮！最近正在做的一个项目中使用了这款表格插件！</p>
<p></p>
<p>今天再做subGrid的时候设置subgridtype为function，结果发现subGrid中的数据死活不出来，甚至url请求也并没有执行。在后发现grid.subgrid.js在对subgridtype进行判断的时候存在，具体位置在grid.subgrid.js文件95行，该行代码为：</p>
<p></p>
<p>ts.p.subgridtype = ts.p.subgridtype.toLowerCase();</p>
<p></p>
<p>当subgridtype为function的时候subgridtype不具备toLowerCase()方法，所以代码会终止执行。</p>
<p></p>
<p>解决方法：修改代码如下</p>
<p></p>
<p>第一步：</p>
<p></p>
<p>96行源代码：if($.isFunction(ts.p.subgridtype)) {ts.p.subgridtype(dp);}</p>
<p></p>
<p>改为：if($.isFunction(ts.p.subgridtype)) {ts.p.subgridtype(dp);}else{</p>
<p></p>
<p>第二步：</p>
<p></p>
<p>将95行的代码：ts.p.subgridtype = ts.p.subgridtype.toLowerCase();</p>
<p></p>
<p>放到97行代码：switch(ts.p.subgridtype) {</p>
<p></p>
<p>之前</p>
<p></p>
<p>第三步：</p>
<p></p>
<p>在115与116行之间加一个右大括号｝这样就可以了。</p>

<div class="posturl"><span><span class="r1"></span><span class="r2"></span><span class="r3"></span><span class="r4"></span></span><div class="posturl-content">
暂无关联文章！</div><span><span class="r4"></span><span class="r3"></span><span class="r2"></span><span class="r1"></span></span></div>]]></description>
			<content:encoded><![CDATA[<p>jqGrid做得越来越强大了，并且完全结合了jQuery UI的界面，界面也很漂亮！最近正在做的一个项目中使用了这款表格插件！</p>
</p>
<p>今天再做subGrid的时候设置subgridtype为function，结果发现subGrid中的数据死活不出来，甚至url请求也并没有执行。在后发现grid.subgrid.js在对subgridtype进行判断的时候存在，具体位置在grid.subgrid.js文件95行，该行代码为：</p>
</p>
<p>ts.p.subgridtype = ts.p.subgridtype.toLowerCase();</p>
</p>
<p>当subgridtype为function的时候subgridtype不具备toLowerCase()方法，所以代码会终止执行。</p>
</p>
<p>解决方法：修改代码如下</p>
</p>
<p>第一步：</p>
</p>
<p>96行源代码：if($.isFunction(ts.p.subgridtype)) {ts.p.subgridtype(dp);}</p>
</p>
<p>改为：if($.isFunction(ts.p.subgridtype)) {ts.p.subgridtype(dp);}else{</p>
</p>
<p>第二步：</p>
</p>
<p>将95行的代码：ts.p.subgridtype = ts.p.subgridtype.toLowerCase();</p>
</p>
<p>放到97行代码：switch(ts.p.subgridtype) {</p>
</p>
<p>之前</p>
</p>
<p>第三步：</p>
</p>
<p>在115与116行之间加一个右大括号｝这样就可以了。</p>


<div class="posturl"><span><span class="r1"></span><span class="r2"></span><span class="r3"></span><span class="r4"></span></span><div class="posturl-content"><p>暂无关联文章！</p></div><span><span class="r4"></span><span class="r3"></span><span class="r2"></span><span class="r1"></span></span></div>]]></content:encoded>
			<wfw:commentRss>http://imleeo.com/jquery/bug-in-gridsubgrid-line-95.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
