Few issues

QuestionsFew issues
Mukti asked 10 years ago

Dear Abu,

1.Going through excel view,like other edit, i need something like $grid["reloadedit"] = true;, which reloads after cells being editted and saved.

2. the edit box(not inline) goes off the screen due to too many fields to edits. even i tried this:
$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
);

3. i could not centered the text of group header. i used
$grid["form"]["position"] = "center";

Regards

1 Answers
Abu Ghufran answered 10 years ago

1) Add following to reload grid after saving cell:
$grid["afterSaveCell"] = "function() { jQuery(this).trigger('reloadGrid'); }";
$g->set_options($grid);

2) You may split the fields in 2/3 columns. Refer demos/editing/dialog-layout.php
e.g. $col["formoptions"] = array("rowpos"=>"2", "colpos"=>"1");

3) Add this css:
<style>.ui-th-column-header {text-align:center;}</style>

Your Answer

15 + 5 =

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?