Dropdown makes the whole page blank

QuestionsDropdown makes the whole page blank
caloyiv asked 5 years ago

Hello Mr. Abu. I just bought your developer version. But when I tried to integrate the dropdown option to the page. it loads a blank page, when i tried to comment these lines ->

$col["edittype"] = "select"; // render as select
# fetch data from database, with alias k for key, v for value
$str = $g->get_dropdown_values("select distinct salesman_id as k, salesman_name as v from salesman");
$col["editoptions"] = array("value"=>":;".$str);
$col["formatter"] = "select"; // display label, not value

the page loads normally.

pastebin link -> http://pastebin.com/EjFU9JzP

1 Answers
Abu Ghufran answered 5 years ago

You have set:

$grid = new jqgrid();

So, you should replace $g with $grid, all over the code.

Your Answer

20 + 16 =

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 / 5. Vote count:

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

Let us improve this post!