[Seaside] jqGrid loadComplete select row question

Sabine Knöfel sabine.knoefel at gmail.com
Thu Sep 26 16:10:49 UTC 2013


Hi,

I use jQGrid and want that after loadComplete a certain row is selected,
(the row is set in my model). 
If I test this with a), it works, but it is always the same object/row
selected (7864354): 

a)
html table
	script:
		(html jQuery this grid
			onSelectRow:...
			loadComplete: (JSStream on:
'jQuery("#gridID").setSelection(''7864354'');');
...
		
									
For selecting the object from my model, I have to pass the number of the
object to select.

But if I try this b), it does not work.

...
loadComplete: (html jQuery ajax
	callback: [:script |   
		 JSStream on: ('jQuery("#gridID").setSelection(''{1}'');' format: {
script})  ]
	value: (self reloadButtonJavaScriptObject)) ;

If I inspect the result of
 ('jQuery("#gridID").setSelection(''{1}'');' format: { script}) 
this is fine, as in a), 
==> ('jQuery("#gridID").setSelection(''7864354'');')

But there must be something wrong with the kind I call it.

Can anyone give me a hint?

Regards
Sabine



--
View this message in context: http://forum.world.st/jqGrid-loadComplete-select-row-question-tp4710581.html
Sent from the Seaside General mailing list archive at Nabble.com.


More information about the seaside mailing list