Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Multiselect toggle?
30/11/2011
20:51
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

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.

01/12/2011
00:11
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

I answerd just now here on the same question.

Best regards
Oleg 

01/12/2011
22:24
Avatar
Shift4SMS
Las Vegas, NV
Member
Members
Forum Posts: 15
Member Since:
03/12/2010
sp_UserOfflineSmall Offline

Thank you.

16/08/2012
12:19
Avatar
ravibontha
hyderabad
New Member
Members
Forum Posts: 1
Member Since:
16/08/2012
sp_UserOfflineSmall Offline

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.htmlEmbarassed

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.

  1.      
Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information