• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is is possible to have two input fields for one struts grid column?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to be able to view in the grid one total number, but when the user edits the column they see two input fields ( one for years and one for months ). I was curious if it is possible to have two input fields during edit mode in struts jqgrid but view only one total number in the column after editing is complete.

Should I create a custom function and use editoptions? Could I create a hidden column that is only viewable during edit mode and then add the hidden value to the non-hidden value when the user saves? Is that possible?

I'm still new to struts jqgrid so any bit of advice will help. Thanks!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts doesn't have a built-in grid component. Are you asking about jqGrid? or the Struts 2 jQuery plugin?
I'm thinking of moving this question to our JavaScript function unless there's some Struts-specific issue.
 
Savannah Gege
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Struts 2 jQuery plugin. My apologies if I put it in the wrong place.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Savannah Gege wrote:My apologies if I put it in the wrong place.



No worries. I think this question would be better served by our JavaScript experts since it sounds like more of a jQuery issue than a Struts issue.
reply
    Bookmark Topic Watch Topic
  • New Topic