gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Using your own Form during Add and Update record. #939

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Gurus,

Any chance on how to do this? When I click the + or the edit button, It should 
go to my own Form? 
I had tried to use this but it don't work.
  <s:url id="editurl" action="ProductInitialise"/>
 <sjg:grid
            id="gridtable"
            caption="Product Maintenance"
            dataType="json"
            href="%{remoteurl}"
            pager="true"
            gridModel="gridModel"
            rowList="10,15,20"
            rowNum="10"
            rownumbers="true"
            editurl="%{editurl}"  

.....................

Original issue reported on code.google.com by triumph1...@gmail.com on 16 Jan 2013 at 2:31

GoogleCodeExporter commented 9 years ago
Thank you for the help.

Original comment by triumph1...@gmail.com on 16 Jan 2013 at 2:31

GoogleCodeExporter commented 9 years ago
Simply disable the defaults and add extra navigator buttons.

        <sjg:grid
            id="sample"
            ...
            navigator="true"
            navigatorEdit="false"
            navigatorAdd="false"
            navigatorExtraButtons="{ 
                seperator: { title : 'seperator' }, 
                addbutton : { title : 'Add Entry', icon: 'ui-icon-plus', topic: 'openUserTopic'},
                editbutton : { title : 'Edit Entry', icon: 'ui-icon-pencil', topic: 'openEditTopic'}
            }"
        >

Original comment by johgep on 21 Jan 2013 at 12:46

GoogleCodeExporter commented 9 years ago
thans guru, it worked :)

Original comment by triumph1...@gmail.com on 1 Feb 2013 at 9:42

GoogleCodeExporter commented 9 years ago
Hi, Do you have any documents on how to use this topic? topic:
'openUserTopic' and topic: 'openEditTopic? I am looking for basics on this
one but i could not find any.. maybe you have some documents or basic
samples?

Original comment by triumph1...@gmail.com on 1 Mar 2013 at 11:09