Remove modes add, edit, cancel details and delete

Talk about implementing of customized templates

Moderators: ne_moj, zewa

artoftea1974
Newbie
Newbie
Posts: 4
Joined: Dec 27th, '11, 23:07

Remove modes add, edit, cancel details and delete

Postby artoftea1974 » Dec 28th, '11, 23:59

How to remove filds and operations add, edit, cancel, details and delete to a datagrid and after have well datagrid center in the page?
Thank you.

administrator
Site Admin
Site Admin
Posts: 5943
Joined: Jan 7th, '09, 23:18
Contact:

Re: Remove modes add, edit, cancel details and delete

Postby administrator » Dec 29th, '11, 09:13

Explain please in more detail what do you mean?
All modes may be defined with this:

Code: Select all

 $modes = array(
        "add"     =>array("view"=>true, "edit"=>false, "type"=>"link",  "show_button"=>true, "show_add_button"=>"inside|outside"),
        "edit"     =>array("view"=>true, "edit"=>true,  "type"=>"link",  "show_button"=>true, "byFieldValue"=>""),
        "cancel"  =>array("view"=>true, "edit"=>true,  "type"=>"link",  "show_button"=>true),
        "details" =>array("view"=>true, "edit"=>false, "type"=>"link",  "show_button"=>true),
        "delete"  =>array("view"=>true, "edit"=>true,  "type"=>"image", "show_button"=>true)
    );
 $dgrid->SetModes($modes);

artoftea1974
Newbie
Newbie
Posts: 4
Joined: Dec 27th, '11, 23:07

Re: Remove modes add, edit, cancel details and delete

Postby artoftea1974 » Dec 29th, '11, 12:36

I would like to delete the edit, add, details, delete mode but has That the datagrid is well center in my page and the overhead of the columns is always alligne with the body of the columns. Thank you.

administrator
Site Admin
Site Admin
Posts: 5943
Joined: Jan 7th, '09, 23:18
Contact:

Re: Remove modes add, edit, cancel details and delete

Postby administrator » Jan 1st, '12, 09:14

Can you please show us this what happens on your page?
Send us a link, so we could understand.


Return to “Add/Edit/View Mode Templates Implementing”