Length of colNames is not equal to colModel!

QuestionsLength of colNames is not equal to colModel!
Kelvin asked 10 years ago

Dear Sir/Madam,

After adding below script and execute the .php, I got popup window say
"Length of colNames <> colModel!", what does it mean? I tried to specify a specific column to be editable and readable only.

$col = array();
$col["name"] = "city";
$col["editable"] = true;
$cols[] = $col;
$g->set_columns($cols);

$col = array();
$col["name"] = "state";
$col["editable"] = false;
$cols[] = $col;
$g->set_columns($cols);

Is the above code correct? Or where I can find the sample.

Best regards,

Kelvin.

1 Answers
Abu Ghufran answered 10 years ago

You only need to call set_columns method at end. Remove the middle code line.

Your Answer

1 + 13 =

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?