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
How to use surl in Edit row
18/10/2008
07:57
Avatar
shibaji
Member
Members
Forum Posts: 14
Member Since:
18/10/2008
sp_UserOfflineSmall Offline

I have use the following code

jQuery(document).ready(function(){

       
    jQuery("#editgrid").jqGrid({       
    url:'a.jsp?q=1',
        datatype: "xml",
        colNames:['Select','UserID','First Name', 'Last Name', 'User Created Date','User Created By','Last Modification Date','Password','Status','Group'],
       colModel:[
           {name:'id',index:'id', width:55,editable:false,editoptions:{readonly:true,size:10}},
            {name:'uid',index:'uid', width:55,editable:true,editoptions:{size:10}},
            {name:'uname',index:'uname', width:80,editable:true,editoptions:{size:25}},
           {name:'lname',index:'lname', width:90,editable:true,editoptions:{size:25}},
        {name:'ucreatedate',index:'ucreatedate', width:60,sortable:true, align:"right",editable:true,editoptions:{size:10}},
        {name:'ucreatedby',index:'ucreatedby', width:60, align:"right",editable:true,editoptions:{size:10}},       
        {name:'ldate',index:'ldate', width:60,align:"right",editable:true,editoptions:{size:10}},
       
        {name:'pass',index:'pass', width:60,align:"right",editable:true,edittype:"password",editoptions:{size:10}},
        {name:'status',index:'status', width:100, sortable:false,editable: true,edittype:"select",editoptions:{value:"Active:Active;InActive:InActive"}},
        {name:'group',index:'group', width:100, sortable:false,editable: true,edittype:"select",surl:"b.jsp",search:true},

       ],
       rowNum:6,
       rowList:[6,12,15],
      
       pager: jQuery('#pagered'),
    imgpath: 'themes/basic/images',
    sortname: 'id',
    viewrecords: true,
    sortorder: "desc",
    caption:"GRID",
    editurl:"edit.jsp"
    });
    jQuery("#editgrid").navGrid('#pagered',
    {}, //options
    {height:280,reloadAfterSubmit:false, url:"edit.jsp?yes=1" }, // edit options
    {height:280,reloadAfterSubmit:true,url:"edit.jsp?yes=2"}, // add options
    {reloadAfterSubmit:true,url:"edit.jsp?yes=3"}, // del options
    {} // search options
);

b.jsp output

<select> <option  value="0">    Choose One   </option>
<option value="t1"> T1</option>
<option value="t2">T2</option>
</select>

it gives the javascript error option value undefined

please reply
19/10/2008
07:52
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Currently you can use surl option onli in cell editing module and

not in form and inline edit. Also please read carefully the docs.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

20/10/2008
12:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I apologize for this post - It is wrong Sorry.

The right is:

Currently you can use surl option only in filterGrid method.

Sorry again

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

21/10/2008
00:18
Avatar
softcore
Kostroma, Russia
Member
Members
Forum Posts: 17
Member Since:
28/07/2008
sp_UserOfflineSmall Offline

I think it could be a good idea to add a possibility to use surl in editing like in filterGrid

21/10/2008
01:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I will try to implement this having a option to refresh the list every time or only once.

Thanks

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

21/10/2008
05:46
Avatar
softcore
Kostroma, Russia
Member
Members
Forum Posts: 17
Member Since:
28/07/2008
sp_UserOfflineSmall Offline

Yes, option to refresh the list every time is very wellcome! Thanks, Tony!

15/11/2008
17:12
Avatar
Renso
PA
Member
Members
Forum Posts: 118
Member Since:
11/09/2008
sp_UserOfflineSmall Offline

Tony just to add my 10c worth.

Scenario: list of products:

column1: edittype: select, list of products

column2: edittype:select, list of pricing schemes for that selected product

On selecting the first cell with list of products, the options in list of pricing schemes meeds to be adjusted automatically via an ajax call to the server that passes ni the select product as parm and get the schemes for it. I was thinking of custom building it but seems to be a catch 22 since you can do a cell edit but cannot do setColProp for the second column or some other method as the second column is active. On selectRow it also has issues with this it seems. Will be great to have surl for this kind of scenario.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 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