Forum
20:51
03/12/2010
Is there a way to toggle the multiselect option of a grid?
Changing the multiselect parameter of the grid and calling for a reload has the side-effect of leaving the header behind when disabling or not creating the header column if multiselect was not TRUE upon the grid creation.
The closest I have come is setting multiselect to TRUE upon grid creation and using showCol and hideCol to toggle: $('#grid').showCol('cb').trigger('reloadGrid');
This has a side effect of changing the grid width when toggled. It appears the cb column width is reserved when it is not hidden.
Basically I'm attempting to create a grid with a "edit/cancel" button to toggle the multiselect -- very similar to how the iPhone/iPad handles deleting multiple mail or text messages.
Thank you in advance.
00:11
10/08/2009
I answerd just now here on the same question.
Best regards
Oleg
22:24
03/12/2010
12:19
16/08/2012
hello,
iam new to jquery frid to perform (edit,add,search..etc)operations.
i will show my code what i did...
- <div id="col3_content" class="clearfix">
- <s:url id="Editurl" action="bbinfo"/>
- <s:url id="remoteurl" action="jsontable"/>
- <s:form>
- <sjg:grid
- id="gridmultitable"
- caption="Customers Examples (Editable/Multiselect)"
- dataType="json"
- href="%{remoteurl}"
- multiboxonly="true"
- pager="true"
- editurl="%{Editurl}"
- navigator="true"
- navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
- navigatorAddOptions="{height:280,reloadAfterSubmit:true}"
- navigatorEditOptions="{height:280,reloadAfterSubmit:false}"
- multiselect="false"
- rownumbers= "true"
- altRows="true"
- rowNum="15"
- rowList="10,15,20"
- gridModel="gridModel" onSuccessTopics="handleJsonResult"
<sjg:gridColumn name="id" index="id" title="ID" width="30" editrules="true" formatter="integer" editable="false" sortable="false" search="true" required="true" searchoptions="{sopt:['eq','ne','lt','gt']}"/>
<sjg:gridColumn name="name" index="name" title="Name" width="250" editable="true" edittype="text" required="true" sortable="true" search="true"/>
<sjg:gridColumn name="address" index="address" title="address" sortable="false" hidden="false" required="true" editable="true"/>
</sjg:grid>
</s:form>
</div>
and here i have one file "grid.locale.en.js" integrated as
<script src="js/grid.locale-en.js" type="text/javascript"></script>(this contains all (add,delete ...etc)operations java script code.
after running successfully..
i clicked on add button.
after i entered values..when i clicked in submit button...NO operation performing...
as u can see figure in give url..
http://fiame47.blogspot.in/2012/06/fiame.html
http://fiame47.blogspot.in/2012/06/fiame.html
so tell me
how <script src="js/grid.locale-en.js" type="text/javascript"></script>
interacts with my actual my grid jsp page.
pls help me by having some patience on it.
iam trying to solve for 1 week.
thanks in advance.
Most Users Ever Online: 715
Currently Online:
31 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66