to change input properties of Add or Edit Dialogs

Questionsto change input properties of Add or Edit Dialogs
toki asked 12 years ago

Hi,

Is it possible to reach and change input properties of Add or Edit Dialogs ?

Thanks

6 Answers
Abu Ghufran answered 12 years ago

Hello,

Set Add and Edit form dialog width. This can be used with combination of css customization of dialog forms.

$grid["add_options"] = array('width'=>'420');
$grid["edit_options"] = array('width'=>'420');

Just like width in dialog options, you can also set other for e.g.

$grid["add_options"] = array('width'=>'420',
"closeAfterEdit"=>true, // close dialog after add/edit
"top"=>"200", // absolute top position of dialog
"left"=>"200" // absolute left position of dialog
);

Set Form to position on center of screen

$grid["form"]["position"] = "center";

Enable form Prev | Next record navigation

$grid["form"]["nav"] = true;

Refer demos/appearence/dialog-layout.php for demo.

Abu Ghufran answered 12 years ago

I get it wrong again. Please ignore last reply.

I will be sending you in another email thread.

toki answered 12 years ago

Hi Abu,

Thank you very much for your reply.
Is it also possible to change color or format or with of field inputs in Add and Edit Form Dialog?

Regards…

toki answered 12 years ago

Hi Abu,

Thank you very much for your reply.
Is it also possible to change color or format or width of field inputs in Add and Edit Form Dialog?

Regards…

Abu Ghufran answered 12 years ago

Yes, you can set using css. for e.g.

<style>
.FormGrid .EditTable .FormData input.DataTD
{
width: 125px;
}
</style>

You can inspect more using firebug.

toki answered 12 years ago

Abu,

I will try to use it.

Thank you again.

Your Answer

10 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?