Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
wiki:navigator [2010/05/04 11:32]
tony
wiki:navigator [2010/05/04 12:38]
tony
Line 96: Line 96:
     * //​parameters//​ - an array of settings, defined below     * //​parameters//​ - an array of settings, defined below
     * prmEdit, prmAdd, prmDel, prmSearch, prmView are objects which holds the parameters and events for a particular action in [[Form editing]]     * prmEdit, prmAdd, prmDel, prmSearch, prmView are objects which holds the parameters and events for a particular action in [[Form editing]]
 +
 +<note tip>​Additionally to every particular module defined with prmEdit, prmAdd, prmDel, prmSearch, prmView a id parameter can be passed in order to identify the id of the button in the navigator. If this id is not defined we use the combination of a prefix and the grid id. See below.</​note>​
 +
 +If the id of the button is not set we use the following rule: \\
 +For the add button we use "​add_"​ + the id of the grid \\
 +For the edit button we use "​edit_"​ + the id of the grid \\
 +For the delete button we use "​del_"​ + the id of the grid \\
 +For the view button we use "​view_"​ + the id of the grid \\
 +For the search button we use "​search_"​ + the id of the grid \\ 
 +For the refresh button we use "​refresh_"​ + the id of the grid \\
 +
 +The code below defines a edit button with id myedit.
 +
 +<code javascript>​
 +<​script>​
 +...
 +jQuery("#​grid_id"​).jqGrid({
 +...
 +   pager : '#​gridpager',​
 +...
 +}).navGrid('#​gridpager',​{},​ {id:'​myedit'​});​
 +...
 +</​script>​
 +</​code>​
 +
 +<note tip>If a class ui-state-disabled is added to some of these buttons we disable not only the button, but the click action too </​note>​
  
 ===== Parameters ===== ===== Parameters =====

QR Code
QR Code wiki:navigator (generated for current page)